MKNote ClassA MKNote consists of:
a noteType and a
noteTag
a set of parameters
an optional timeTag and duration
There are 5 types of MKNotes, represented by
the noteType:
noteOn - start of a musical phrase or
rearticulation
noteOff - end of a musical
phrase
noteDur - a noteOn
with a duration
noteUpdate - update to a running
musical phrase(s)
mute - none of the above
(in an MusicKit program, a prefix is
required, as in MK_noteOn)
The noteTag groups a series of
noteOns and noteUpdates
with a single noteOff. This is called a
phrase.
noteTag is essential for
noteOn and noteOff
noteTag is optional for
noteDur and noteUpdate
noteTag is not used for
mute
A noteUpdate without a
noteTag applies to all running patches and is
“sticky”.
A noteDur represents a
noteOn/noteOff pair. If
another noteOn with the same
noteTag appears before the duration is
expended, the implied noteOff is canceled.
The timeTag refers to the location of the
MKNote in a MKPart and
is only used in that context. Its value is in beats.