Sign in

username:

password:



Not a member?

Search Online Books



Search tips

Free Online Books



Chapters

Chapter Contents:

Search Physical Audio Signal Processing

  

Book Index | Global Index


Would you like to be notified by email when Julius Orion Smith III publishes a new entry into his blog?

  

MIDI Control of the KS Digitar in PD

As discussed in the Faust intro [464], 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.


Order a Hardcopy of Physical Audio Signal Processing

Previous: Exciting the Digitar String
Next: Extended Karplus-Strong Algorithm