diff --git a/.gitignore b/.gitignore index e2d249b..ab5d749 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ .DS_Store *.tgz +/chugins.opt +/chugins.ncb diff --git a/ABSaturator/.gitignore b/ABSaturator/.gitignore new file mode 100644 index 0000000..76932e2 --- /dev/null +++ b/ABSaturator/.gitignore @@ -0,0 +1,5 @@ +/*.plg +/*.ncb +/*.opt +/Debug +/Release diff --git a/Bitcrusher/.gitignore b/Bitcrusher/.gitignore new file mode 100644 index 0000000..76932e2 --- /dev/null +++ b/Bitcrusher/.gitignore @@ -0,0 +1,5 @@ +/*.plg +/*.ncb +/*.opt +/Debug +/Release diff --git a/MagicSine/.gitignore b/MagicSine/.gitignore new file mode 100644 index 0000000..76932e2 --- /dev/null +++ b/MagicSine/.gitignore @@ -0,0 +1,5 @@ +/*.plg +/*.ncb +/*.opt +/Debug +/Release diff --git a/MagicSine/MagicSine.dsp b/MagicSine/MagicSine.dsp new file mode 100644 index 0000000..de8bab9 --- /dev/null +++ b/MagicSine/MagicSine.dsp @@ -0,0 +1,117 @@ +# Microsoft Developer Studio Project File - Name="MagicSine" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +CFG=MagicSine - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "MagicSine.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "MagicSine.mak" CFG="MagicSine - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "MagicSine - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "MagicSine - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "MagicSine - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# 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" /D "MAGICSINE_EXPORTS" /Yu"stdafx.h" /FD /c +# ADD CPP /nologo /MT /W3 /GX /O2 /I "..\chuck\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "__PLATFORM_WIN32__" /D "__WINDOWS_DS__" /FD /c +# SUBTRACT CPP /YX /Yc /Yu +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 /out:"Release/MagicSine.chug" + +!ELSEIF "$(CFG)" == "MagicSine - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# 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" /D "MAGICSINE_EXPORTS" /Yu"stdafx.h" /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "..\chuck\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "__PLATFORM_WIN32__" /D "__WINDOWS_DS__" /FD /GZ /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /out:"Debug/MagicSine.chug" /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "MagicSine - Win32 Release" +# Name "MagicSine - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\MagicSine.cpp + +!IF "$(CFG)" == "MagicSine - Win32 Release" + +!ELSEIF "$(CFG)" == "MagicSine - Win32 Debug" + +# ADD CPP /D "__WINDOWS_DS__" + +!ENDIF + +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/MagicSine/MagicSine.dsw b/MagicSine/MagicSine.dsw new file mode 100644 index 0000000..f77941d --- /dev/null +++ b/MagicSine/MagicSine.dsw @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "MagicSine"=.\MagicSine.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/chuginate/bootstrap.py b/chuginate/bootstrap.py old mode 100755 new mode 100644 index a8c9f88..5d42370 --- a/chuginate/bootstrap.py +++ b/chuginate/bootstrap.py @@ -1,31 +1,31 @@ -#!/usr/bin/python - -import re -import sys - -marker = dict() -template = dict() - -marker['cpp'] = "\%\(CPP_CODE\)\%" -marker['makefile'] = "\%\(MAKEFILE_CODE\)\%" -marker['makefile.osx'] = "\%\(MAKEFILEOSX_CODE\)\%" -marker['makefile.linux'] = "\%\(MAKEFILELINUX_CODE\)\%" -marker['makefile.win32'] = "\%\(MAKEFILEWIN32_CODE\)\%" -marker['.dsw'] = "\%\(DSW_CODE\)\%" -marker['.dsp'] = "\%\(DSP_CODE\)\%" - -template['cpp'] = "template/ChuGin.cpp" -template['makefile'] = "template/makefile" -template['makefile.osx'] = "template/makefile.osx" -template['makefile.linux'] = "template/makefile.linux" -template['makefile.win32'] = "template/makefile.win32" -template['.dsw'] = "template/ChuGin.dsw" -template['.dsp'] = "template/ChuGin.dsp" - -code = sys.stdin.read() - -for key in marker: - f = open(template[key], 'r') - code = re.sub(marker[key], f.read(), code) - -sys.stdout.write(code) +#!/usr/bin/python + +import re +import sys + +marker = dict() +template = dict() + +marker['cpp'] = "\%\(CPP_CODE\)\%" +marker['makefile'] = "\%\(MAKEFILE_CODE\)\%" +marker['makefile.osx'] = "\%\(MAKEFILEOSX_CODE\)\%" +marker['makefile.linux'] = "\%\(MAKEFILELINUX_CODE\)\%" +marker['makefile.win32'] = "\%\(MAKEFILEWIN32_CODE\)\%" +marker['.dsw'] = "\%\(DSW_CODE\)\%" +marker['.dsp'] = "\%\(DSP_CODE\)\%" + +template['cpp'] = "template/ChuGin.cpp" +template['makefile'] = "template/makefile" +template['makefile.osx'] = "template/makefile.osx" +template['makefile.linux'] = "template/makefile.linux" +template['makefile.win32'] = "template/makefile.win32" +template['.dsw'] = "template/ChuGin.dsw" +template['.dsp'] = "template/ChuGin.dsp" + +code = sys.stdin.read() + +for key in marker: + f = open(template[key], 'r') + code = re.sub(marker[key], f.read(), code) + +sys.stdout.write(code) diff --git a/chuginate/chuginate b/chuginate/chuginate old mode 100755 new mode 100644 diff --git a/chuginate/chuginate.py b/chuginate/chuginate.py old mode 100755 new mode 100644 index c3a197f..ca91443 --- a/chuginate/chuginate.py +++ b/chuginate/chuginate.py @@ -1,74 +1,74 @@ -#!/usr/bin/python - -import sys -import re -import os -import io - -if len(sys.argv) != 2 and len(sys.argv) != 3: - print "usage: chugerate chugin_name [destination_directory]" - sys.exit(-1) - -chugin_name = sys.argv[1] -if len(sys.argv) >= 3: - dest_dir = sys.argv[2] -else: - dest_dir = sys.argv[1] - os.mkdir(dest_dir) - -chugin_lcname = chugin_name.lower() -chugin_ucname = chugin_name.upper() -chugin_initials = re.sub('[a-z]', '', chugin_name).lower() -if len(chugin_initials) == 0: - chugin_initials = chugin_name[0]; - -def substitute(text): - global chugin_name, chugin_lcname, chugin_ucname, chugin_initials - text = re.sub('\%\(CHUGIN_NAME\)\%', chugin_name, text) - text = re.sub('\%\(CHUGIN_LCNAME\)\%', chugin_lcname, text) - text = re.sub('\%\(CHUGIN_UCNAME\)\%', chugin_ucname, text) - text = re.sub('\%\(CHUGIN_INITIALS\)\%', chugin_initials, text) - return text - -# print "name: %s lc: %s initials: %s" % (chugin_name, chugin_lcname, chugin_initials) - -code = dict() -filepath = dict() -newlines = dict() - -code['cpp'] = u'''%(CPP_CODE)%''' -code['makefile'] = u'''%(MAKEFILE_CODE)%''' -code['makefile.osx'] = u'''%(MAKEFILEOSX_CODE)%''' -code['makefile.linux'] = u'''%(MAKEFILELINUX_CODE)%''' -code['makefile.win32'] = u'''%(MAKEFILEWIN32_CODE)%''' -code['.dsw'] = u'''%(DSW_CODE)%''' -code['.dsp'] = u'''%(DSP_CODE)%''' - -filepath['cpp'] = "%s/%s.cpp" % (dest_dir, chugin_name) -filepath['makefile'] = "%s/makefile" % (dest_dir) -filepath['makefile.osx'] = "%s/makefile.osx" % (dest_dir) -filepath['makefile.linux'] = "%s/makefile.linux" % (dest_dir) -filepath['makefile.win32'] = "%s/makefile.win32" % (dest_dir) -filepath['.dsw'] = "%s/%s.dsw" % (dest_dir, chugin_name) -filepath['.dsp'] = "%s/%s.dsp" % (dest_dir, chugin_name) - -newlines['.dsw'] = '\r\n' -newlines['.dsp'] = '\r\n' - -code['cpp'] = substitute(code['cpp']) -code['makefile'] = substitute(code['makefile']) -code['.dsw'] = substitute(code['.dsw']) -code['.dsp'] = substitute(code['.dsp']) - -for key in code: - if key in newlines: - nl = newlines[key] - else: - nl = '\n' - f = io.open(filepath[key], "wt", newline=nl) - f.write(code[key]) - f.close() - - - - +#!/usr/bin/python + +import sys +import re +import os +import io + +if len(sys.argv) != 2 and len(sys.argv) != 3: + print "usage: chugerate chugin_name [destination_directory]" + sys.exit(-1) + +chugin_name = sys.argv[1] +if len(sys.argv) >= 3: + dest_dir = sys.argv[2] +else: + dest_dir = sys.argv[1] + os.mkdir(dest_dir) + +chugin_lcname = chugin_name.lower() +chugin_ucname = chugin_name.upper() +chugin_initials = re.sub('[a-z]', '', chugin_name).lower() +if len(chugin_initials) == 0: + chugin_initials = chugin_name[0]; + +def substitute(text): + global chugin_name, chugin_lcname, chugin_ucname, chugin_initials + text = re.sub('\%\(CHUGIN_NAME\)\%', chugin_name, text) + text = re.sub('\%\(CHUGIN_LCNAME\)\%', chugin_lcname, text) + text = re.sub('\%\(CHUGIN_UCNAME\)\%', chugin_ucname, text) + text = re.sub('\%\(CHUGIN_INITIALS\)\%', chugin_initials, text) + return text + +# print "name: %s lc: %s initials: %s" % (chugin_name, chugin_lcname, chugin_initials) + +code = dict() +filepath = dict() +newlines = dict() + +code['cpp'] = u'''%(CPP_CODE)%''' +code['makefile'] = u'''%(MAKEFILE_CODE)%''' +code['makefile.osx'] = u'''%(MAKEFILEOSX_CODE)%''' +code['makefile.linux'] = u'''%(MAKEFILELINUX_CODE)%''' +code['makefile.win32'] = u'''%(MAKEFILEWIN32_CODE)%''' +code['.dsw'] = u'''%(DSW_CODE)%''' +code['.dsp'] = u'''%(DSP_CODE)%''' + +filepath['cpp'] = "%s/%s.cpp" % (dest_dir, chugin_name) +filepath['makefile'] = "%s/makefile" % (dest_dir) +filepath['makefile.osx'] = "%s/makefile.osx" % (dest_dir) +filepath['makefile.linux'] = "%s/makefile.linux" % (dest_dir) +filepath['makefile.win32'] = "%s/makefile.win32" % (dest_dir) +filepath['.dsw'] = "%s/%s.dsw" % (dest_dir, chugin_name) +filepath['.dsp'] = "%s/%s.dsp" % (dest_dir, chugin_name) + +newlines['.dsw'] = '\r\n' +newlines['.dsp'] = '\r\n' + +code['cpp'] = substitute(code['cpp']) +code['makefile'] = substitute(code['makefile']) +code['.dsw'] = substitute(code['.dsw']) +code['.dsp'] = substitute(code['.dsp']) + +for key in code: + if key in newlines: + nl = newlines[key] + else: + nl = '\n' + f = io.open(filepath[key], "wt", newline=nl) + f.write(code[key]) + f.close() + + + + diff --git a/chuginate/template/ChuGin.dsp b/chuginate/template/ChuGin.dsp old mode 100755 new mode 100644 index 8efcb96..0921f59 --- a/chuginate/template/ChuGin.dsp +++ b/chuginate/template/ChuGin.dsp @@ -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" /D "%(CHUGIN_UCNAME)%_EXPORTS" /Yu"stdafx.h" /FD /c -# ADD CPP /nologo /MT /W3 /GX /O2 /I "..\..\chuck\src" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "__PLATFORM_WIN32__" /D "__WINDOWS_DS__" /FD /c +# ADD CPP /nologo /MT /W3 /GX /O2 /I "..\chuck\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "__PLATFORM_WIN32__" /D "__WINDOWS_DS__" /FD /c # SUBTRACT CPP /YX /Yc /Yu # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 @@ -70,7 +70,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" /D "%(CHUGIN_UCNAME)%_EXPORTS" /Yu"stdafx.h" /FD /GZ /c -# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "..\..\chuck\src" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "__PLATFORM_WIN32__" /D "__WINDOWS_DS__" /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "..\chuck\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "__PLATFORM_WIN32__" /D "__WINDOWS_DS__" /FD /GZ /c # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "_DEBUG" diff --git a/chuginate/template/ChuGin.dsw b/chuginate/template/ChuGin.dsw old mode 100755 new mode 100644 diff --git a/chugins.dsw b/chugins.dsw new file mode 100644 index 0000000..f495627 --- /dev/null +++ b/chugins.dsw @@ -0,0 +1,65 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "ABSaturator"=.\ABSaturator\ABSaturator.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "Bitcrusher"=.\Bitcrusher\Bitcrusher.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "KasFilter"=.\KasFilter\KasFilter.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "MagicSine"=.\MagicSine\MagicSine.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### +