public class RoombaSongNote extends Object
Constructor and Description |
---|
RoombaSongNote(RoombaNote note,
RoombaNoteDuration duration) |
Modifier and Type | Method and Description |
---|---|
RoombaNoteDuration |
getDuration() |
RoombaNote |
getNote() |
static byte[] |
songNotesToBytes(RoombaSongNote[] notes,
int tempo)
Get the byte array of give RoombaSongNote array.
|
public RoombaSongNote(RoombaNote note, RoombaNoteDuration duration)
public RoombaNote getNote()
public RoombaNoteDuration getDuration()
public static byte[] songNotesToBytes(RoombaSongNote[] notes, int tempo)
notes
- RoombaSongNote arraytempo
- Tempo in BPM at which notes should be playedCopyright © 2017. All rights reserved.