diff options
| author | Julian Hurst <julian.hurst@digdash.com> | 2024-11-20 18:05:07 +0100 |
|---|---|---|
| committer | Julian Hurst <julian.hurst@digdash.com> | 2024-11-21 11:09:15 +0100 |
| commit | 157d45b80cf12785c3aa13daa041265fd4598e72 (patch) | |
| tree | 433937b841744092e8cd7e907b2ed90524febce8 /cmd/example/simple.ha | |
| parent | 5b01e076c9ada04327d018f08420cee30890716f (diff) | |
| download | hare-midi-157d45b80cf12785c3aa13daa041265fd4598e72.tar.gz | |
Update simple.ha for new api
Diffstat (limited to 'cmd/example/simple.ha')
| -rw-r--r-- | cmd/example/simple.ha | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/example/simple.ha b/cmd/example/simple.ha index 3a2a32b..98aa607 100644 --- a/cmd/example/simple.ha +++ b/cmd/example/simple.ha @@ -1,6 +1,8 @@ use midi; +use os; export fn main() void = { + const th = midi::hchunk { chk = midi::HEADERCHUNK, format = 0, @@ -12,6 +14,6 @@ export fn main() void = { defer midi::finishtrack(tc); midi::noteon(&tc, 0, midi::note::C); midi::noteoff(&tc, 4, midi::note::C); - midi::writeheader(th); - midi::writechunk(tc); + midi::writeheader(os::stdout, th); + midi::writechunk(os::stdout, tc); }; |
