Skip to content

Commit

Permalink
Merge pull request #25 from cienicera/create_music_function
Browse files Browse the repository at this point in the history
Create music function
  • Loading branch information
caseywescott authored Dec 3, 2024
2 parents 9d59c3e + 389ed1b commit 47cd248
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/midi/core.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ impl MidiImpl of MidiTrait {
Midi { events: array![].span() }
}

// Current basic midi structure for playback

fn music(
reverse: i32,
semitones: i32,
Expand Down Expand Up @@ -139,7 +141,9 @@ impl MidiImpl of MidiTrait {
eventlist.append(notemessageon3);

eventlist.append(notemessageoff1);

eventlist.append(notemessageoff2);

eventlist.append(notemessageoff3);

let mut basemidi = Midi { events: eventlist.span() };
Expand Down

0 comments on commit 47cd248

Please sign in to comment.