Open meyer9 opened 5 years ago
For serialization of measures, here are the structs:
struct Note {
// Step is the time to start the note
uint8 step;
// Duration is the end of the note
uint8 duration;
// Pitch is the pitch of the note A0 = 0 -> A8 = 96
uint8 pitch;
}
struct Measure {
// Notes in the measure
Note[] notes;
}
So a note can be serialized using the following format: [step][duration][pitch]
where each of those is 1 byte. A measure can be serialized using the following format: [length notes: uint16][note+]
.
We could require users to have a verified identity with the Wyre SDK.
TODO