diff options
| author | Julian Hurst <julian.hurst@digdash.com> | 2024-11-21 14:56:36 +0100 |
|---|---|---|
| committer | Julian Hurst <julian.hurst@digdash.com> | 2024-11-21 15:02:14 +0100 |
| commit | 15a04a5dad595fa774da1085253159a6e71b9a05 (patch) | |
| tree | dfc639cf6c1b6c0c59c625be5e34bea4d9cd0dfa /cmd/example/simple.ha | |
| parent | 1793341797569b42f6623e5bfdf9098e3e80ef19 (diff) | |
| download | hare-midi-15a04a5dad595fa774da1085253159a6e71b9a05.tar.gz | |
Add writeevents and writemidievents
Diffstat (limited to 'cmd/example/simple.ha')
| -rw-r--r-- | cmd/example/simple.ha | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/example/simple.ha b/cmd/example/simple.ha index 98aa607..733baec 100644 --- a/cmd/example/simple.ha +++ b/cmd/example/simple.ha @@ -12,8 +12,8 @@ export fn main() void = { let tc = midi::newtrack(); defer midi::finishtrack(tc); - midi::noteon(&tc, 0, midi::note::C); - midi::noteoff(&tc, 4, midi::note::C); + append(tc.ev, midi::noteon(0, midi::note::C)); + append(tc.ev, midi::noteoff(4, midi::note::C)); midi::writeheader(os::stdout, th); midi::writechunk(os::stdout, tc); }; |
