SynthNoteAllPortsInstrumentSP adds a method with the following signature:
public void addSignalSource(Object signalSource);... permitting you to take any JSyn SynthOutput and process it. Playing a MusicShape with a signal processing instrument permits you to change its processing parameters over time, completely independently of the signal sources!
Here we present a simple delay line SynthNote designed in Wire. See the patch diagram below.
IMPORTANT: A SynthNote, by definition, must have a "frequency" and an "amplitude" input port. JMSL's use of SynthNote assumes you follow this convention, so you must use this exact spelling. Of course you may name your other input ports anything you like.
The essential code follows.
// signal source
ins = new SynthNoteAllPortsInstrument(8, "com.softsynth.jsyn.circuits.FilteredSawtoothBL");
// signal processor
insSP = new SynthNoteAllPortsInstrumentSP(8, signalProcessingSynthNoteClassName); // connect the signal source to the processor insSP.addSignalSource( ins.getOutput() ); // NOTE: any JSyn SynthOutput will work here!
View complete source
|Previous||Tutorial Index||Tutorial Contents||Next|
(C) 1997 Phil Burk and Nick Didkovsky, All Rights Reserved JMSL is based upon HMSL (C) Phil Burk, Larry Polansky and David Rosenboom.