SequenceItem : SeqChordNote


Adds grace note representation to SeqChordNote. Grace notes are different from chord notes in that they precede the main sequence note, whereas chord notes follow the main note.


SequenceItem preserves the array of chord notes from SeqChordNote, and adds a second array for grace notes. For grace notes in a purely melodic context, the chord note array may be nil.


*new(freq, dur, length, args, graceNotes, chordNotes)


graceNotes and chordNotes are arrays of SequenceNote objects. When streaming, the grace notes will be streamed first, then the main note, followed by any chord notes that might be there.


add(note)

++ notes


These methods inherit from SeqChordNote and add chord notes only. To add grace notes, use addGraceNotes.


addGraceNotes


Add the supplied grace notes to the existing SequenceItem object (preserving the chord notes as well).


asPlayableNote


All chord notes will be compacted into one SequenceNote as in SeqChordNote. Grace notes are dropped from the result. This is because the playable note destroys the temporal relationships between the chord notes, resulting in a block chord. This is okay for chords, but grace notes are meaningless without time information; thus they are not preserved.


asNoteArray


A flattened representation, not useful for streaming. Note order is preserved.


See SeqChordNote for other applicable methods.