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.Accidental
An adjustment to the frequency of a Pitch: a Flat
, a Sharp
, or a Natural
.
Parameters
-
shift
-
the shift from the base frequency caused by the accidental (in semitones). A positive number means a higher frequency, a negative number a lower one.
-
symbol
-
a symbol describing the accidental: "#", "♭", or the empty string
Attributes
-
Graph
-
-
Supertypes
-
Members list
Marks a flat note. Assigning this accidental to a Pitch makes it one semitone lower.
Marks a flat note. Assigning this accidental to a Pitch makes it one semitone lower.
Attributes
Marks an unchanged, natural note (neither Sharp nor Flat).
Marks an unchanged, natural note (neither Sharp nor Flat).
Attributes
Marks a sharp note. Assigning this accidental to a Pitch makes it one semitone higher.
Marks a sharp note. Assigning this accidental to a Pitch makes it one semitone higher.
Attributes