Render a Note's mark, where mark is one of the following: MARK_ACCENT MARK_STACCATO MARK_TENUTO
MARK_WEDGE MARK_ACCENT_STACCATO MARK_ACCENT_TENUTO MARK_WEDGE_STACCATO MARK_FERMATA MARK_HARMONIC
MARK_TRILL MARK_TRILL_FLAT MARK_TRILL_SHARP MARK_NATURAL MARK_MORDANT
Given a source MusicShape where dimension 0 stores absolute times for events (as opposed to relative durations),
pull out a subset of the MusicShape that fall within a measure's time window.
MIDIFileToMusicShape Parse a MidiFile and build a ParallelCollection of MusicShape
If the MidiFile is Type 1 (which includes Track chunks), one MusicShape will be created for each
track.
MidiListener.java
Any class that wishes to receive notification of Midi input events must implement this
interface and register itself with MidiParser.
Input is a Midi style pitch (ex 60 for middle C)
Translate to pitch name & octave
Example 60 -> "C4", 61 -> "C#4" With setAccPrefSharp(false), 61 -> "Db4"
Build a simple Score with a JavaSound Midi orchestra
If the Java installation that is running this applet does not have a JavaSound MIDI soundbank,
your classes folder (ie your applet's codebase) must contain a folder called javasound containing
a soundbank called soundbank-min.gm (or call subfolder and the soundbank whatever you want and
change the name in the initJavaSoundMidi() method below
Use a SequentialCollection to ABAB "song form" with Midi piano
If the Java installation that is running this applet does not have a JavaSound MIDI soundbank, your classes folder
(ie your applet's codebase) must contain a folder called javasound containing a soundbank called soundbank-min.gm
(or call subfolder and the soundbank whatever you want and change the name in the initJavaSoundMidi() method below
Play a MusicShape repeatedly with a JSyn instrument, each repeat scramble the order of its
elements
Also demonstrates how to add a PlayLurker which is notified of elements being played by
MusicShape.
MutationMeanTransform
The resulting melody is the pitch mean and duration mean of the two sources, specifically:
the pitch of the resulting Noten = mean pitch of Aux1Noten and Aux2Noten
the duration of the resulting Noten = mean duration of Aux1Noten and Aux2Noten