Next |
Prev |
Up |
Top
|
REALSIMPLE Top
As discussed in the Faust intro [15], we can create an
8-voiced MIDI synthesizer for pd via the following shell commands
on a Linux system with faust installed:
faust -xml -a puredata.cpp -o ks_pd.cpp ks.dsp
g++ -DPD -Wall -g -shared -Dmydsp=ks -o ks~.pd_linux ks_pd.cpp
faust2pd -s -n 8 ks.dsp.xml
The first line compiles ks.dsp to produce
- ks_pd.cpp -- the pd external C++ source code, and
- ks.dsp.xml -- an XML description of its user interface.
The second line compiles the C++ source, to produce
- ks~.pd_linux -- the loadable binary pd external module.
The last line generates
- ks_pd.pd -- the pd plugin-wrapper with ``graph-on-parent'' controls.
As also discussed in the Faust intro, faust2pd comes with the
pd abstraction midi-in.pd that maps MIDI key-number to
Faust parameter freq, MIDI velocity to gain, and
MIDI note-on/off to gate. Additional parameters are
brought out as sliders et al. in the pd patch, but in this case, there
are no additional parameters.
Next |
Prev |
Up |
Top
|
REALSIMPLE Top
Download faust_strings.pdf