diff options
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); }; |
