Generated with
This document is part of the ebook for O1 (aka CS-A1110 Programming 1), a course at Aalto University.
This document is part of the ebook for O1 (aka CS-A1110 Programming 1), a course at Aalto University.
o1.sound.midi.Note
Each instance of this class represents a single musical note at a set pitch.
Parameters
isStaccato
whether the note should be played staccato so that sound is shorter than its duration
length
the duration of the note: how long it takes to play it
pitch
the pitch of the note
Attributes
Graph
Reset zoom Hide graph Show graph
Supertypes
Members list
the duration that the note is audible. This equals the length
of the note except for staccato notes whose audible length is half their length
the duration that the note is audible. This equals the length
of the note except for staccato notes whose audible length is half their length
Attributes
Returns a string description of the note.
Returns a string description of the note.
Attributes
Definition Classes
the volume the note should be played at. The Note
class selects between HighVolume
and MediumVolume
on the basis of the letter case of the note’s Pitch .
the volume the note should be played at. The Note
class selects between HighVolume
and MediumVolume
on the basis of the letter case of the note’s Pitch .
Attributes