Save a MusicShape to a file
PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("foo.out")));
First line is number of dimensions, followed by dimension names, one per line, followed by
data, one element per line *
Called immediately before ScoreCanvas draws the completed offscreen display image to the
canvas's graphics context in paint() (awt) or paintComponent() (Swing).
Static repository of ScoreCommand classes
Provides clones of ScoreCommands that were added
Maintains hashtable with KeyCode ints hashed to Score Command Classes
Torture Score's ability to match arbitrary duration.
This simply uses addNote(dur)
It is *not* a test of the more sophisticated transcriber
Add notes with increasing Myhill ratio ...
Export a JScore to a TextArea in San Andreas Press's SCORE file format
Enter notes into the score, then select menu Score -> Export -> San Andreas
Score and see output in TextArea
Enumerate through all Notes displayed on a page
Reads left to right, top staff to bottom staff, enumerating all notes that
would belong to a contiguous "melody".
SelectionBuffer is a temporary place to copy selected elements, to enumerate
through and delete for example, or to parse out into a new ScoreCollection
Object.
After notifying listener where the mouse was pressed, listener may respond by telling the
cursor where to draw itself according to the context of what is being drawn (ie between two
notes, drawn to the height of the staff - stuff that's unknown to the canvas)
Set the Interpolator to be used if x sent to interp() does not fall in the range of any added Interpolators
Only practical reason to use this is if the default interpolator should be something other than a
LinearInterpolator (in which case just use setInterp() )
drawingAnchor is the (x,y) point at top left of drawable object, set by layout manager,
changes as measures stretch, compress, realign, etc
Note that drawingAnchor's location is copied from the location of the argument.
Set two endpoints points on the desired curve, to be shaped as f(x)=1/exp(x)
on (0,1)..(32,)
so (x1, y1) corresponds to (0,1) which is (0, 1/e^0) and (x2, y2) basically corresponds to
at what point do you want x to give a value close to 0.
Demonstrates how a JMSL Score can have one instrument in one staff apply
signal processing to the output of other instrument(s) on other staff/ves
Here two instruments (FilteredSawtoothBL and RingModBell) are bussed to an
instrument with an interpolating delay line.
Signal Processing JMSL Score example
Staff 1 performs signal processing on staff 0
Play a rich resonant drone in staff 1
Band Pass filter in staff 2
Notice that pitches of bandpass "melody" are fractional, and are mapped onto the frequency of the filter
Read in an XML file that describes an Object, and recreate the object with values found for all
matching get/set methods that handle primitive types (String, boolean, int, double),
Example, Class com.widgits.City below has matching get/set methods for popuation
Write out an XML file that describes an Object, with values for all matching get/set methods that
handle primitive types (String, boolean, int, double), the class name, and tag of your choice.
Control the playback speed of a ParallelCollection of MusicJobs that play
JSyn Instruments using timeStretch
Also shows how to manage data as frequencies and use
com.softsynth.jmsl.util.FrequencyToPitchTranslator to convert to pitch right
before handing double[] to Instrument which expect pitch
Speedy() -
Constructor for class jmslexamples.jsyn.Speedy
The class name passed into the constructor *must* be a JSyn SynthNote
that, besides amplitude and frequency ports, has a public input port
named "input"