aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/xsample
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-06-13 02:45:16 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-06-13 02:45:16 +0000
commitc0c7359304c7bb54d794c74b260d9b0bd18f02ae (patch)
treec16ff1091eb663e4483e6fffe8f2db1abc152d28 /externals/grill/xsample
parentd1f912c93aef58acb6b69b16576792bbcd608399 (diff)
""
svn path=/trunk/; revision=701
Diffstat (limited to 'externals/grill/xsample')
-rw-r--r--externals/grill/xsample/pd-ex/xplaydemo.pd79
-rw-r--r--externals/grill/xsample/pd-ex/xsampledemo.pd71
-rw-r--r--externals/grill/xsample/readme.txt8
-rw-r--r--externals/grill/xsample/source/main.h4
-rw-r--r--externals/grill/xsample/xsample.vcproj278
-rw-r--r--externals/grill/xsample/xsample.vcproj.vspscc10
6 files changed, 449 insertions, 1 deletions
diff --git a/externals/grill/xsample/pd-ex/xplaydemo.pd b/externals/grill/xsample/pd-ex/xplaydemo.pd
new file mode 100644
index 00000000..c2bb0478
--- /dev/null
+++ b/externals/grill/xsample/pd-ex/xplaydemo.pd
@@ -0,0 +1,79 @@
+#N canvas 126 119 739 716 12;
+#N canvas 0 0 450 300 graph2 0;
+#X array loop1 220000 float 0;
+#X coords 0 0.5 219999 -0.5 200 140 1;
+#X restore 449 285 graph;
+#N canvas 0 0 450 300 graph3 0;
+#X array loop2 220000 float 0;
+#X coords 0 0.5 219999 -0.5 200 140 1;
+#X restore 450 429 graph;
+#X obj 131 309 xplay~ loop1;
+#X obj 151 459 xplay~ loop2;
+#X obj 32 697 dac~;
+#X msg 16 240 start;
+#X msg 15 267 stop;
+#N canvas 0 0 450 300 graph1 0;
+#X array loop3 220000 float 0;
+#X coords 0 0.5 219999 -0.5 200 140 1;
+#X restore 450 575 graph;
+#X obj 242 623 xplay~ loop3;
+#X msg 103 232 print;
+#X msg 161 232 help;
+#X msg 13 364 start;
+#X msg 13 390 stop;
+#X msg 9 498 start;
+#X msg 11 524 stop;
+#X obj 180 136 xrecord~ loop1;
+#X msg 126 60 set loop2;
+#X msg 42 60 set loop1;
+#X msg 48 108 start;
+#X msg 49 136 stop;
+#X msg 209 60 set loop3;
+#X msg 305 57 append 0;
+#X obj 306 33 loadbang;
+#X text 5 -59 Demo of xplay~ to play synchronized loops;
+#X text 40 43 Click to choose loop to record;
+#X obj 333 95 adc~;
+#X obj 289 264 *~ 220000;
+#X obj 290 226 phasor~ 0.2;
+#X text 156 692 each loop array holds 220000 samples recorded at 44khz
+;
+#X text 5 91 record;
+#X text 78 -34 Record something in each of the three loop arrays. Choose
+(set) the loop to record \, then press start. There's room for up to
+5 seconds in each loop.;
+#X text 17 183 After you have recorded something into each loop \,
+you can play them selectively using the start/stop controls;
+#X text 389 224 <= this generates the position signal that xplay requires
+at the proper rate for this sample size.;
+#X text 379 48 <= We record from the beginning of the array each time.
+;
+#X text 370 96 <= Audio will be recorded from your sound card input
+(e.g. microphone);
+#X text 350 -60 (by Glenn Meader);
+#X connect 2 0 4 0;
+#X connect 2 0 4 1;
+#X connect 3 0 4 1;
+#X connect 3 0 4 0;
+#X connect 5 0 2 0;
+#X connect 6 0 2 0;
+#X connect 8 0 4 0;
+#X connect 8 0 4 1;
+#X connect 9 0 2 0;
+#X connect 10 0 2 0;
+#X connect 11 0 3 0;
+#X connect 12 0 3 0;
+#X connect 13 0 8 0;
+#X connect 14 0 8 0;
+#X connect 16 0 15 0;
+#X connect 17 0 15 0;
+#X connect 18 0 15 0;
+#X connect 19 0 15 0;
+#X connect 20 0 15 0;
+#X connect 21 0 15 0;
+#X connect 22 0 21 0;
+#X connect 25 0 15 0;
+#X connect 26 0 2 0;
+#X connect 26 0 3 0;
+#X connect 26 0 8 0;
+#X connect 27 0 26 0;
diff --git a/externals/grill/xsample/pd-ex/xsampledemo.pd b/externals/grill/xsample/pd-ex/xsampledemo.pd
new file mode 100644
index 00000000..d6962311
--- /dev/null
+++ b/externals/grill/xsample/pd-ex/xsampledemo.pd
@@ -0,0 +1,71 @@
+#N canvas 242 109 738 686 12;
+#X text 13 3 xsample~ demo;
+#N canvas 0 0 452 302 graph5 0;
+#X array loop1 440000 float 0;
+#X coords 0 0.2 439999 -0.2 200 140 1;
+#X restore 516 184 graph;
+#X obj 244 262 xrecord~ loop1;
+#X msg 74 233 start;
+#X msg 75 265 stop;
+#X obj 111 108 adc~;
+#X msg 225 158 help;
+#X msg 237 184 print;
+#X msg 165 122 append 0;
+#X obj 246 297 snapshot~;
+#X obj 218 279 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 165 96 loadbang;
+#X floatatom 249 337 10 0 0 1 looplength - -;
+#X text 4 214 Click to start recording;
+#X text 24 294 need to send bang upon stop;
+#X text 273 156 Click help prints info;
+#X text 236 98 start from the beginning of the array each time;
+#X obj 147 579 xgroove~ loop1;
+#X msg 121 449 print;
+#X msg 135 472 help;
+#X msg 15 536 start;
+#X msg 16 565 stop;
+#X floatatom 172 526 8 0 0 2 speed - -;
+#X floatatom 208 624 8 0 0 3 startsample - -;
+#X floatatom 311 623 10 0 0 3 endsample - -;
+#X obj 134 631 dac~;
+#X obj 185 448 loadbang;
+#X msg 188 470 1;
+#X text 2 515 play the loop;
+#X text 244 525 negative numbers play sample backwards;
+#X text 259 356 The xrecord object puts out the current position so
+we take a snapshot of it when we stop recording to get the number of
+samples we have recorded.;
+#X text 262 556 use the last sample number as the max position so loop
+is played the right length;
+#X text 78 23 This demo records sound coming from your sound card input
+(e.g. microphone). It stores the sample in the array "loop1". The array
+has 440000 elements so it can store a max of 10 seconds \, recording
+at 44khz.;
+#X text 285 182 print current status;
+#X text 25 428 Playback of the sample stored in loop1 using the xgroove
+object:;
+#X text 136 4 (by Glenn Meader);
+#X connect 2 0 9 0;
+#X connect 3 0 2 0;
+#X connect 4 0 2 0;
+#X connect 4 0 10 0;
+#X connect 5 0 2 0;
+#X connect 6 0 2 0;
+#X connect 7 0 2 0;
+#X connect 8 0 2 0;
+#X connect 9 0 12 0;
+#X connect 10 0 9 0;
+#X connect 11 0 8 0;
+#X connect 12 0 17 2;
+#X connect 17 0 25 0;
+#X connect 17 0 25 1;
+#X connect 17 2 23 0;
+#X connect 17 3 24 0;
+#X connect 18 0 17 0;
+#X connect 19 0 17 0;
+#X connect 20 0 17 0;
+#X connect 21 0 17 0;
+#X connect 22 0 17 0;
+#X connect 26 0 27 0;
+#X connect 27 0 22 0;
diff --git a/externals/grill/xsample/readme.txt b/externals/grill/xsample/readme.txt
index 427c9327..4d035fc9 100644
--- a/externals/grill/xsample/readme.txt
+++ b/externals/grill/xsample/readme.txt
@@ -20,6 +20,14 @@ Hence it will be loaded at Max startup.
----------------------------------------------------------------------------
+IMPORTANT INFORMATION for all PD users:
+
+xsample is a library containing several external objects. You should load it at PD startup
+by adding "-lib xsample" to the PD command line.
+(If you forgot to do that, you can load the library by creating an [xsample] dummy object.
+
+----------------------------------------------------------------------------
+
You will need the flext C++ layer for PD and Max/MSP externals to compile this.
see http://www.parasitaere-kapazitaeten.net/ext
diff --git a/externals/grill/xsample/source/main.h b/externals/grill/xsample/source/main.h
index 0ffc021b..6dce2711 100644
--- a/externals/grill/xsample/source/main.h
+++ b/externals/grill/xsample/source/main.h
@@ -28,7 +28,9 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#if defined(_MSC_VER)
// MS VC 6.0 can't handle <int,int> templates?! -> no optimization
-// #define TMPLOPT
+ #if _MSC_VER >= 1300
+ #define TMPLOPT
+ #endif
#elif defined(__BORLANDC__)
// handles all optimizations
#define TMPLOPT
diff --git a/externals/grill/xsample/xsample.vcproj b/externals/grill/xsample/xsample.vcproj
new file mode 100644
index 00000000..3efa5161
--- /dev/null
+++ b/externals/grill/xsample/xsample.vcproj
@@ -0,0 +1,278 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="7.10"
+ Name="xsample"
+ SccProjectName="xsample"
+ SccAuxPath=""
+ SccLocalPath=".."
+ SccProvider="MSSCCI:Jalindi Igloo">
+ <Platforms>
+ <Platform
+ Name="Win32"/>
+ </Platforms>
+ <Configurations>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory=".\pd-msvc\r"
+ IntermediateDirectory=".\pd-msvc\r"
+ ConfigurationType="2"
+ UseOfMFC="0"
+ ATLMinimizesCRunTimeLibraryUsage="FALSE"
+ CharacterSet="2">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ InlineFunctionExpansion="1"
+ OptimizeForProcessor="2"
+ AdditionalIncludeDirectories="c:\programme\audio\pd\src,f:\prog\max\flext\source"
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;FLEXT_SYS=2"
+ StringPooling="TRUE"
+ RuntimeLibrary="4"
+ EnableFunctionLevelLinking="TRUE"
+ UsePrecompiledHeader="2"
+ PrecompiledHeaderFile=".\pd-msvc\r/xsample.pch"
+ AssemblerListingLocation=".\pd-msvc\r/"
+ ObjectFile=".\pd-msvc\r/"
+ ProgramDataBaseFileName=".\pd-msvc\r/"
+ WarningLevel="3"
+ SuppressStartupBanner="TRUE"
+ CompileAs="0"/>
+ <Tool
+ Name="VCCustomBuildTool"/>
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="pd.lib flext-pdwin.lib"
+ OutputFile="pd-msvc\xsample.dll"
+ LinkIncremental="1"
+ SuppressStartupBanner="TRUE"
+ AdditionalLibraryDirectories="c:\programme\audio\pd\bin,..\flext\pd-msvc\"
+ ProgramDatabaseFile=".\pd-msvc\r/xsample.pdb"
+ ImportLibrary=".\pd-msvc\r/xsample.lib"
+ TargetMachine="1"/>
+ <Tool
+ Name="VCMIDLTool"
+ PreprocessorDefinitions="NDEBUG"
+ MkTypLibCompatible="TRUE"
+ SuppressStartupBanner="TRUE"
+ TargetEnvironment="1"
+ TypeLibraryName=".\pd-msvc\r/xsample.tlb"
+ HeaderFileName=""/>
+ <Tool
+ Name="VCPostBuildEventTool"/>
+ <Tool
+ Name="VCPreBuildEventTool"/>
+ <Tool
+ Name="VCPreLinkEventTool"/>
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="NDEBUG"
+ Culture="3079"/>
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"/>
+ <Tool
+ Name="VCXMLDataGeneratorTool"/>
+ <Tool
+ Name="VCWebDeploymentTool"/>
+ <Tool
+ Name="VCManagedWrapperGeneratorTool"/>
+ <Tool
+ Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+ </Configuration>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory=".\pd-msvc\d"
+ IntermediateDirectory=".\pd-msvc\d"
+ ConfigurationType="2"
+ UseOfMFC="0"
+ ATLMinimizesCRunTimeLibraryUsage="FALSE"
+ CharacterSet="2">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ OptimizeForProcessor="2"
+ AdditionalIncludeDirectories="c:\programme\audio\pd\src,f:\prog\max\flext\source"
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;FLEXT_SYS=2"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="5"
+ UsePrecompiledHeader="2"
+ PrecompiledHeaderFile=".\pd-msvc\d/xsample.pch"
+ AssemblerListingLocation=".\pd-msvc\d/"
+ ObjectFile=".\pd-msvc\d/"
+ ProgramDataBaseFileName=".\pd-msvc\d/"
+ BrowseInformation="1"
+ WarningLevel="3"
+ SuppressStartupBanner="TRUE"
+ DebugInformationFormat="4"
+ CompileAs="0"/>
+ <Tool
+ Name="VCCustomBuildTool"/>
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="pd.lib flext_d-pdwin.lib"
+ OutputFile=".\pd-msvc\d/xsample.dll"
+ LinkIncremental="1"
+ SuppressStartupBanner="TRUE"
+ AdditionalLibraryDirectories="c:\programme\audio\pd\bin\,..\flext\pd-msvc\"
+ GenerateDebugInformation="TRUE"
+ ProgramDatabaseFile=".\pd-msvc\d/xsample.pdb"
+ ImportLibrary=".\pd-msvc\d/xsample.lib"
+ TargetMachine="1"/>
+ <Tool
+ Name="VCMIDLTool"
+ PreprocessorDefinitions="_DEBUG"
+ MkTypLibCompatible="TRUE"
+ SuppressStartupBanner="TRUE"
+ TargetEnvironment="1"
+ TypeLibraryName=".\pd-msvc\d/xsample.tlb"
+ HeaderFileName=""/>
+ <Tool
+ Name="VCPostBuildEventTool"/>
+ <Tool
+ Name="VCPreBuildEventTool"/>
+ <Tool
+ Name="VCPreLinkEventTool"/>
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="_DEBUG"
+ Culture="3079"/>
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"/>
+ <Tool
+ Name="VCXMLDataGeneratorTool"/>
+ <Tool
+ Name="VCWebDeploymentTool"/>
+ <Tool
+ Name="VCManagedWrapperGeneratorTool"/>
+ <Tool
+ Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="doc"
+ Filter="">
+ <File
+ RelativePath="make-files.txt">
+ </File>
+ <File
+ RelativePath="readme.txt">
+ </File>
+ </Filter>
+ <File
+ RelativePath="source\groove.cpp">
+ <FileConfiguration
+ Name="Release|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;FLEXT_SYS=2;$(NoInherit)"/>
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;FLEXT_SYS=2;$(NoInherit)"
+ BasicRuntimeChecks="3"
+ BrowseInformation="1"/>
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="source\inter.cpp">
+ <FileConfiguration
+ Name="Release|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;FLEXT_SYS=2;$(NoInherit)"/>
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;FLEXT_SYS=2;$(NoInherit)"
+ BasicRuntimeChecks="3"
+ BrowseInformation="1"/>
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="source\inter.h">
+ </File>
+ <File
+ RelativePath="source\main.cpp">
+ <FileConfiguration
+ Name="Release|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;FLEXT_SYS=2;$(NoInherit)"/>
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;FLEXT_SYS=2;$(NoInherit)"
+ BasicRuntimeChecks="3"
+ BrowseInformation="1"/>
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="source\main.h">
+ </File>
+ <File
+ RelativePath="source\play.cpp">
+ <FileConfiguration
+ Name="Release|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;FLEXT_SYS=2;$(NoInherit)"/>
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;FLEXT_SYS=2;$(NoInherit)"
+ BasicRuntimeChecks="3"
+ BrowseInformation="1"/>
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="source\record.cpp">
+ <FileConfiguration
+ Name="Release|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;FLEXT_SYS=2;$(NoInherit)"/>
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;FLEXT_SYS=2;$(NoInherit)"
+ BasicRuntimeChecks="3"
+ BrowseInformation="1"/>
+ </FileConfiguration>
+ </File>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/externals/grill/xsample/xsample.vcproj.vspscc b/externals/grill/xsample/xsample.vcproj.vspscc
new file mode 100644
index 00000000..d0c6b59f
--- /dev/null
+++ b/externals/grill/xsample/xsample.vcproj.vspscc
@@ -0,0 +1,10 @@
+""
+{
+"FILE_VERSION" = "9237"
+"ENLISTMENT_CHOICE" = "NEVER"
+"PROJECT_FILE_RELATIVE_PATH" = "relative:xsample"
+"NUMBER_OF_EXCLUDED_FILES" = "0"
+"ORIGINAL_PROJECT_FILE_PATH" = ""
+"NUMBER_OF_NESTED_PROJECTS" = "0"
+"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
+}