cozmo.song¶
Song related classes, functions, events and values.
Classes
NoteDurations |
The possible values for a NoteDuration. |
NoteTypes |
The possible values for an NoteType. |
SongNote ([noteType, id, noteDuration, id]) |
Represents on element in a song. |
-
class
cozmo.song.
NoteTypes
¶ The possible values for an NoteType.
A pitch between C2 and C3_Sharp can be specified, as well as a rest (for timed silence), giving cozmo a vocal range of slightly more than one octave.
B_Flat and E_Flat are represented as their corresponding sharps.
-
A2
= _NoteType(name='A2', id=9)¶
-
A2_Sharp
= _NoteType(name='A2_Sharp', id=10)¶
-
B2
= _NoteType(name='B2', id=11)¶
-
C2
= _NoteType(name='C2', id=0)¶
-
C2_Sharp
= _NoteType(name='C2_Sharp', id=1)¶
-
C3
= _NoteType(name='C3', id=12)¶
-
C3_Sharp
= _NoteType(name='C3_Sharp', id=13)¶
-
D2
= _NoteType(name='D2', id=2)¶
-
D2_Sharp
= _NoteType(name='D2_Sharp', id=3)¶
-
E2
= _NoteType(name='E2', id=4)¶
-
F2
= _NoteType(name='F2', id=5)¶
-
F2_Sharp
= _NoteType(name='F2_Sharp', id=6)¶
-
G2
= _NoteType(name='G2', id=7)¶
-
G2_Sharp
= _NoteType(name='G2_Sharp', id=8)¶
-
Rest
= _NoteType(name='Rest', id=14)¶
-
-
class
cozmo.song.
NoteDurations
¶ The possible values for a NoteDuration.
-
Half
= _NoteDuration(name='Half', id=2)¶
-
Quarter
= _NoteDuration(name='Quarter', id=3)¶
-
ThreeQuarter
= _NoteDuration(name='ThreeQuarter', id=1)¶
-
Whole
= _NoteDuration(name='Whole', id=0)¶
-
-
class
cozmo.song.
SongNote
(noteType=_NoteType(name='C2', id=0), noteDuration=_NoteDuration(name='Whole', id=0))¶ Represents on element in a song. Consists of a
cozmo.song.NoteTypes
which specifies either a pitch or rest, and acozmo.song.NoteDurations
specifying the length of the note.