meyer9 / cryptotunes

0 stars 0 forks source link

Minimal Viable Product #1

Open meyer9 opened 5 years ago

meyer9 commented 5 years ago

TODO

meyer9 commented 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+].

meyer9 commented 5 years ago

We could require users to have a verified identity with the Wyre SDK.