Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich E committed Jan 22, 2012
0 parents commit 7f8d0af
Show file tree
Hide file tree
Showing 7 changed files with 944 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oscbank~.pd_darwin
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Copyright (c) 2012, Richie Eakin
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the <organization> nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
62 changes: 62 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# ----------------------- LINUX i386 -----------------------

pd_linux: oscbank~.pd_linux



.SUFFIXES: .pd_linux

LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
-Wall -W -Wshadow -Wstrict-prototypes -Werror \
-Wno-unused -Wno-parentheses -Wno-switch

LINUXINCLUDE = -I /usr/local/src/pd

.c.pd_linux:
cc $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
ld --export-dynamic -shared -o $*.pd_linux $*.o -lc -lm
strip --strip-unneeded $*.pd_linux
rm $*.o


# ----------------------- Mac OSX -----------------------

pd_darwin: oscbank~.pd_darwin

.SUFFIXES: .pd_darwin

DARWINCFLAGS = -g -DPD -Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch

DARWIN_INCLUDE = -I /Applications/Pd-extended.app/Contents/Resources/include/

.c.pd_darwin:
cc -arch i386 $(DARWINCFLAGS) $(DARWIN_INCLUDE) -o $*.o -c $*.c
cc -arch i386 -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o
rm -f $*.o

# ----------------------- NT -----------------------

pd_nt: oscbank~.dll

.SUFFIXES: .obj .dll

PDNTCFLAGS = /W3 /WX /DNT /DPD /nologo
VC="D:\Program Files\Microsoft Visual Studio\Vc98"

PDNTINCLUDE = /I. /I\tcl\include /I..\..\src /I$(VC)\include

PDNTLDIR = $(VC)\lib
PDNTLIB = $(PDNTLDIR)\libc.lib \
$(PDNTLDIR)\oldnames.lib \
$(PDNTLDIR)\kernel32.lib \
..\..\bin\pd.lib

.c.dll:
cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c
link /dll /export:$*_setup $*.obj $(PDNTLIB)

# override explicitly for tilde objects like this:
dspobj~.dll: dspobj~.c;
cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c
link /dll /export:dspobj_tilde_setup $*.obj $(PDNTLIB)
31 changes: 31 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
-----------------------------------------------------------------------------
oscbank~: for additive synthesis
-----------------------------------------------------------------------------

This is a plugin (aka 'external') for Miller Pucketter's PureData
("pd"). It was written in order to synthesize sinusoidal models that
consist of hundreds of partial sinewave components. The external takes three
control-rate parameters for each partial: index(unique), frequency, and
amplitude. It stores this information in a bank and synthesizes earch partial
by interpolating between frames. Please see the included oscbank~-help.pd for
details.

installation (from this directory):
-----------------------------------------------------------------------------
linux: make pd_linux
mac: make pd_darwin
windows: make pd_nt

mac note: there is also an xcode project included, although it uses the same
Makefile as for other platforms

author:
-----------------------------------------------------------------------------
Richie Eakin < reakinator [at] gmail [dot] com
with the kind help of Tom Erbe.

history:
-----------------------------------------------------------------------------
10-15-2007 - v0.1
- The code has been sitting around for a while with a bunch of bugs,
finally got around to fixing them all. So here is the first version.
Loading

0 comments on commit 7f8d0af

Please sign in to comment.