diff options
Diffstat (limited to 'externals/grill/flext/tutorial')
-rwxr-xr-x | externals/grill/flext/tutorial/adv1/main.cpp | 6 | ||||
-rw-r--r-- | externals/grill/flext/tutorial/attr1/attr1.dsp | 2 | ||||
-rw-r--r-- | externals/grill/flext/tutorial/attr2/attr2.dsp | 2 | ||||
-rw-r--r-- | externals/grill/flext/tutorial/attr2/main.cpp | 8 | ||||
-rw-r--r-- | externals/grill/flext/tutorial/lib1/lib1.dsp | 14 | ||||
-rw-r--r-- | externals/grill/flext/tutorial/signal2/main.cpp | 8 |
6 files changed, 16 insertions, 24 deletions
diff --git a/externals/grill/flext/tutorial/adv1/main.cpp b/externals/grill/flext/tutorial/adv1/main.cpp index 9b8acb79..7e1047ce 100755 --- a/externals/grill/flext/tutorial/adv1/main.cpp +++ b/externals/grill/flext/tutorial/adv1/main.cpp @@ -12,8 +12,8 @@ This is an example of a simplified prepend object #include <flext.h> -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 400) -#error You need at least flext version 0.4.0 +#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 401) +#error You need at least flext version 0.4.1 #endif @@ -85,7 +85,7 @@ void adv1::m_any(const t_symbol *s,int argc,t_atom *argv) // if anything is no "list" or "float" then append it to result list if(s != sym_list && s != sym_float -#ifdef MAXMSP +#if FLEXT_SYS == FLEXT_SYS_MAX && s != sym_int // in Max integers are system data types #endif ) diff --git a/externals/grill/flext/tutorial/attr1/attr1.dsp b/externals/grill/flext/tutorial/attr1/attr1.dsp index 725b55ab..478e1015 100644 --- a/externals/grill/flext/tutorial/attr1/attr1.dsp +++ b/externals/grill/flext/tutorial/attr1/attr1.dsp @@ -53,7 +53,7 @@ BSC32=bscmake.exe # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib /nologo /dll /machine:I386 -# ADD LINK32 kernel32.lib user32.lib pd.lib flext-pdwin.lib /nologo /dll /machine:I386 /out:"../msvc/attr1.dll" /libpath:"..\..\pd-msvc" +# ADD LINK32 kernel32.lib user32.lib pd.lib flext-pdwin.lib /nologo /dll /machine:I386 /out:"../pd-msvc/attr1.dll" /libpath:"..\..\pd-msvc" !ELSEIF "$(CFG)" == "attr1 - Win32 Debug" diff --git a/externals/grill/flext/tutorial/attr2/attr2.dsp b/externals/grill/flext/tutorial/attr2/attr2.dsp index f93781ba..d95a55ab 100644 --- a/externals/grill/flext/tutorial/attr2/attr2.dsp +++ b/externals/grill/flext/tutorial/attr2/attr2.dsp @@ -53,7 +53,7 @@ BSC32=bscmake.exe # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib /nologo /dll /machine:I386 -# ADD LINK32 kernel32.lib user32.lib pd.lib flext-pdwin.lib /nologo /dll /machine:I386 /out:"../msvc/attr2.dll" /libpath:"..\..\pd-msvc" +# ADD LINK32 kernel32.lib user32.lib pd.lib flext-pdwin.lib /nologo /dll /machine:I386 /out:"../pd-msvc/attr2.dll" /libpath:"..\..\pd-msvc" !ELSEIF "$(CFG)" == "attr2 - Win32 Debug" diff --git a/externals/grill/flext/tutorial/attr2/main.cpp b/externals/grill/flext/tutorial/attr2/main.cpp index f02a6014..b1536117 100644 --- a/externals/grill/flext/tutorial/attr2/main.cpp +++ b/externals/grill/flext/tutorial/attr2/main.cpp @@ -21,8 +21,8 @@ This is an example of an object doing various float operations #include <flext.h> // check for appropriate flext version -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 400) -#error You need at least flext version 0.4.0 +#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 401) +#error You need at least flext version 0.4.1 #endif #include <math.h> @@ -137,7 +137,7 @@ void attr2::m_trigger(float f) } break; case op_pow: res = (float)pow(f,arg); break; -#ifdef _DEBUG +#ifdef FLEXT_DEBUG default: ERRINTERNAL(); // operation not defined #endif } @@ -158,7 +158,7 @@ void attr2::opget(const t_symbol *&s) const case op_mul: s = sym_mul; break; case op_div: s = sym_div; break; case op_pow: s = sym_pow; break; -#ifdef _DEBUG +#ifdef FLEXT_DEBUG default: ERRINTERNAL(); // operation not defined #endif } diff --git a/externals/grill/flext/tutorial/lib1/lib1.dsp b/externals/grill/flext/tutorial/lib1/lib1.dsp index 82656d07..b661aeb4 100644 --- a/externals/grill/flext/tutorial/lib1/lib1.dsp +++ b/externals/grill/flext/tutorial/lib1/lib1.dsp @@ -5,17 +5,17 @@ # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 CFG=lib1 - Win32 Debug -!MESSAGE Dies ist kein gŸltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE -!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und fŸhren Sie den Befehl +!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl !MESSAGE !MESSAGE NMAKE /f "lib1.mak". !MESSAGE -!MESSAGE Sie kšnnen beim AusfŸhren von NMAKE eine Konfiguration angeben +!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben !MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: !MESSAGE !MESSAGE NMAKE /f "lib1.mak" CFG="lib1 - Win32 Debug" !MESSAGE -!MESSAGE FŸr die Konfiguration stehen zur Auswahl: +!MESSAGE Für die Konfiguration stehen zur Auswahl: !MESSAGE !MESSAGE "lib1 - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library") !MESSAGE "lib1 - Win32 Debug" (basierend auf "Win32 (x86) Dynamic-Link Library") @@ -43,7 +43,7 @@ RSC=rc.exe # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /YX /FD /c -# ADD CPP /nologo /W3 /GR- /GX- /O2 /I "..\..\source" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "NT" /D "PD" /YX /FD /c +# ADD CPP /nologo /W3 /O2 /I "..\..\source" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "NT" /D "PD" /YX /FD /c # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0xc07 /d "NDEBUG" @@ -53,7 +53,7 @@ BSC32=bscmake.exe # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib /nologo /dll /machine:I386 -# ADD LINK32 kernel32.lib user32.lib pd.lib flext-pdwin.lib /nologo /dll /machine:I386 /out:"../msvc/lib1.dll" /libpath:"..\..\pd-msvc" +# ADD LINK32 kernel32.lib user32.lib pd.lib flext-pdwin.lib /nologo /dll /machine:I386 /out:"../pd-msvc/lib1.dll" /libpath:"..\..\pd-msvc" !ELSEIF "$(CFG)" == "lib1 - Win32 Debug" @@ -69,7 +69,7 @@ LINK32=link.exe # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /YX /FD /GZ /c -# ADD CPP /nologo /W3 /Gm /GR- /GX- /ZI /Od /I "..\..\source" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "NT" /D "PD" /Fr /YX /FD /GZ /c +# ADD CPP /nologo /W3 /Gm /ZI /Od /I "..\..\source" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "NT" /D "PD" /Fr /YX /FD /GZ /c # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0xc07 /d "_DEBUG" diff --git a/externals/grill/flext/tutorial/signal2/main.cpp b/externals/grill/flext/tutorial/signal2/main.cpp index 3876a0ca..661625b2 100644 --- a/externals/grill/flext/tutorial/signal2/main.cpp +++ b/externals/grill/flext/tutorial/signal2/main.cpp @@ -36,9 +36,6 @@ public: protected: void m_bang(); // method for bang - // this virtual function is obligatory for objects derived from flext_dsp -// virtual void m_signal(int n, float *const *in, float *const *out); - private: FLEXT_CALLBACK(m_bang); // callback for method "m_bang" }; @@ -70,8 +67,3 @@ void signal2::m_bang() ToOutInt(3,ChannelsOut()); } -/* -void signal2::m_signal(int, float *const *, float *const *) -{ -} -*/ |