Next  |  Prev  |  Up  |  Top  |  REALSIMPLE Top

MIDI Control of the KS Digitar in PD

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 The second line compiles the C++ source, to produce The last line generates 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

``Making Virtual Electric Guitars and Associated Effects Using Faust'', by Julius O. Smith III,
REALSIMPLE Project — work supported in part by the Wallenberg Global Learning Network .
Released 2013-08-22 under the Creative Commons License (Attribution 2.5), by Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA