aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/tutorial/sndobj1
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/tutorial/sndobj1')
-rw-r--r--externals/grill/flext/tutorial/sndobj1/Makefile.am51
-rw-r--r--externals/grill/flext/tutorial/sndobj1/main.cpp101
-rw-r--r--externals/grill/flext/tutorial/sndobj1/package.txt2
-rw-r--r--externals/grill/flext/tutorial/sndobj1/sndobj1.mcpbin101183 -> 0 bytes
-rw-r--r--externals/grill/flext/tutorial/sndobj1/sndobj1.vcproj177
5 files changed, 0 insertions, 331 deletions
diff --git a/externals/grill/flext/tutorial/sndobj1/Makefile.am b/externals/grill/flext/tutorial/sndobj1/Makefile.am
deleted file mode 100644
index 40dcd384..00000000
--- a/externals/grill/flext/tutorial/sndobj1/Makefile.am
+++ /dev/null
@@ -1,51 +0,0 @@
-#
-# automake template
-# added by tim blechmann
-#
-
-NAME = sndobj1
-
-BUILT_SOURCES = main.cpp
-
-EXTRA_DIST = main.cpp \
- $(NAME).mcp \
- $(NAME).vcproj
-
-CXXFLAGS = @CXXFLAGS@ \
- @OPT_FLAGS@ \
- @INCLUDEDIR@ \
- -I../../source \
- $(DEFS) \
- -DFLEXT_SHARED
-
-LDFLAGS = @DYNAMIC_LDFLAGS@ @LDFLAGS@ \
- $(patsubst %,-framework %,$(FRAMEWORKS))
-
-LIBS = @LIBS@ -lflext-pd
-
-FRAMEWORKS = @FRAMEWORKS@
-
-TARGETDIR = @TARGETDIR@
-
-TARGET =$(NAME).@EXTENSION@
-
-OBJECTS = $(patsubst %.cpp,./%.@OBJEXT@,$(BUILT_SOURCES))
-
-SYSDIR = @SYSDIR@
-
-
-# ----------------------------- targets --------------------------------
-
-all-local: $(OBJECTS)
- $(CXX) $(LDFLAGS) ./*.@OBJEXT@ $(LIBS) -o ../$(TARGETDIR)/$(TARGET)
- strip --strip-unneeded ../$(TARGETDIR)/$(TARGET)
-
-./%.@OBJEXT@ : %.cpp
- $(CXX) -c $(CXXFLAGS) $< -o $@
-
-clean-local:
- rm -f ../$(TARGETDIR)/$(TARGET)
- rm -f ./$(OBJECTS)
-
-install-exec-local:
- install ../$(TARGET) $(SYSDIR)extra
diff --git a/externals/grill/flext/tutorial/sndobj1/main.cpp b/externals/grill/flext/tutorial/sndobj1/main.cpp
deleted file mode 100644
index d5587c73..00000000
--- a/externals/grill/flext/tutorial/sndobj1/main.cpp
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
-flext tutorial - sndobj 1
-
-Copyright (c) 2002-2006 Thomas Grill (gr@grrrr.org)
-For information on usage and redistribution, and for a DISCLAIMER OF ALL
-WARRANTIES, see the file, "license.txt," in this distribution.
-
--------------------------------------------------------------------------
-
-This is an example of an external using the SndObj library.
-See http://www.may.ie/academic/music/musictec/SndObj/
-
-The SndObj library should be compiled multithreaded.
-
-This external features simple stereo pitch shifting.
-
-*/
-
-#define FLEXT_ATTRIBUTES 1
-
-#include <flsndobj.h>
-
-#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 401)
-#error You need at least flext version 0.4.1 with sndobj support
-#endif
-
-
-class sndobj1:
- public flext_sndobj
-{
- FLEXT_HEADER_S(sndobj1,flext_sndobj,Setup)
-
-public:
- sndobj1();
-
- // these are obligatory!
- virtual bool NewObjs();
- virtual void FreeObjs();
- virtual void ProcessObjs();
-
- // space for a few sndobjs
- Pitch *obj1,*obj2;
-
- float sh1,sh2;
-
-private:
- static void Setup(t_classid c);
-
- FLEXT_ATTRVAR_F(sh1)
- FLEXT_ATTRVAR_F(sh2)
-};
-
-FLEXT_NEW_DSP("sndobj1~",sndobj1)
-
-
-sndobj1::sndobj1():
- sh1(1),sh2(1),
- obj1(NULL),obj2(NULL)
-{
- AddInSignal(2); // audio ins
- AddOutSignal(2); // audio outs
-}
-
-void sndobj1::Setup(t_classid c)
-{
- FLEXT_CADDATTR_VAR1(c,"shL",sh1);
- FLEXT_CADDATTR_VAR1(c,"shR",sh2);
-}
-
-// construct needed SndObjs
-bool sndobj1::NewObjs()
-{
- // set up objects
- obj1 = new Pitch(.1f,&InObj(0),sh1,Blocksize(),Samplerate());
- obj2 = new Pitch(.1f,&InObj(1),sh2,Blocksize(),Samplerate());
- return true;
-}
-
-// destroy the SndObjs
-void sndobj1::FreeObjs()
-{
- if(obj1) delete obj1;
- if(obj2) delete obj2;
-}
-
-// this is called on every DSP block
-void sndobj1::ProcessObjs()
-{
- // set current pitch shift
- obj1->SetPitch(sh1);
- obj2->SetPitch(sh2);
-
- // do processing here!!
- obj1->DoProcess();
- obj2->DoProcess();
-
- // output
- *obj1 >> OutObj(0);
- *obj2 >> OutObj(1);
-}
-
diff --git a/externals/grill/flext/tutorial/sndobj1/package.txt b/externals/grill/flext/tutorial/sndobj1/package.txt
deleted file mode 100644
index 21948caa..00000000
--- a/externals/grill/flext/tutorial/sndobj1/package.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-NAME=sndobj1~
-SRCS=main.cpp
diff --git a/externals/grill/flext/tutorial/sndobj1/sndobj1.mcp b/externals/grill/flext/tutorial/sndobj1/sndobj1.mcp
deleted file mode 100644
index 8385296a..00000000
--- a/externals/grill/flext/tutorial/sndobj1/sndobj1.mcp
+++ /dev/null
Binary files differ
diff --git a/externals/grill/flext/tutorial/sndobj1/sndobj1.vcproj b/externals/grill/flext/tutorial/sndobj1/sndobj1.vcproj
deleted file mode 100644
index 013442b4..00000000
--- a/externals/grill/flext/tutorial/sndobj1/sndobj1.vcproj
+++ /dev/null
@@ -1,177 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="7.10"
- Name="sndobj1"
- SccProjectName="sndobj1"
- SccAuxPath=""
- SccLocalPath="."
- SccProvider="MSSCCI:Jalindi Igloo">
- <Platforms>
- <Platform
- Name="Win32"/>
- </Platforms>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory=".\msvc-debug"
- IntermediateDirectory=".\msvc-debug"
- ConfigurationType="2"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="FALSE"
- CharacterSet="2">
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="c:\programme\audio\pd\src,..\..\source,f:\prog\audio\sndobj\include"
- PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PD"
- BasicRuntimeChecks="3"
- RuntimeLibrary="5"
- UsePrecompiledHeader="2"
- PrecompiledHeaderFile=".\msvc-debug/sndobj1.pch"
- AssemblerListingLocation=".\msvc-debug/"
- ObjectFile=".\msvc-debug/"
- ProgramDataBaseFileName=".\msvc-debug/"
- BrowseInformation="1"
- BrowseInformationFile=".\msvc-debug/"
- WarningLevel="3"
- SuppressStartupBanner="TRUE"
- DebugInformationFormat="4"
- CompileAs="0"/>
- <Tool
- Name="VCCustomBuildTool"/>
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="pd.lib flext_d-pdwin.lib sndobj.lib"
- OutputFile="msvc-debug/sndobj1~.dll"
- LinkIncremental="1"
- SuppressStartupBanner="TRUE"
- AdditionalLibraryDirectories="..\..\pd-msvc,f:\prog\audio\sndobj\lib"
- GenerateDebugInformation="TRUE"
- ProgramDatabaseFile=".\msvc-debug/sndobj1~.pdb"
- ImportLibrary=".\msvc-debug/sndobj1~.lib"
- TargetMachine="1"/>
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="TRUE"
- SuppressStartupBanner="TRUE"
- TargetEnvironment="1"
- TypeLibraryName=".\msvc-debug/sndobj1.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>
- <Configuration
- Name="Release|Win32"
- OutputDirectory=".\msvc"
- IntermediateDirectory=".\msvc"
- ConfigurationType="2"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="FALSE"
- CharacterSet="2">
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- InlineFunctionExpansion="1"
- AdditionalIncludeDirectories="c:\programme\audio\pd\src,..\..\source,f:\prog\audio\sndobj\include"
- PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PD"
- StringPooling="TRUE"
- RuntimeLibrary="4"
- EnableFunctionLevelLinking="TRUE"
- UsePrecompiledHeader="2"
- PrecompiledHeaderFile=".\msvc/sndobj1.pch"
- AssemblerListingLocation=".\msvc/"
- ObjectFile=".\msvc/"
- ProgramDataBaseFileName=".\msvc/"
- WarningLevel="3"
- SuppressStartupBanner="TRUE"
- CompileAs="0"/>
- <Tool
- Name="VCCustomBuildTool"/>
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="pd.lib flext-pdwin.lib sndobj.lib"
- OutputFile="../pd-msvc/sndobj1~.dll"
- LinkIncremental="1"
- SuppressStartupBanner="TRUE"
- AdditionalLibraryDirectories="..\..\pd-msvc,f:\prog\audio\sndobj\lib"
- ProgramDatabaseFile=".\msvc/sndobj1~.pdb"
- ImportLibrary=".\msvc/sndobj1~.lib"
- TargetMachine="1"/>
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="TRUE"
- SuppressStartupBanner="TRUE"
- TargetEnvironment="1"
- TypeLibraryName=".\msvc/sndobj1.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>
- </Configurations>
- <References>
- </References>
- <Files>
- <File
- RelativePath="main.cpp">
- <FileConfiguration
- Name="Debug|Win32">
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;PD;$(NoInherit)"
- BasicRuntimeChecks="3"
- BrowseInformation="1"/>
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32">
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;PD;$(NoInherit)"/>
- </FileConfiguration>
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>