summaryrefslogtreecommitdiff
path: root/cmd/example/cli.ha
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/example/cli.ha')
-rw-r--r--cmd/example/cli.ha5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/example/cli.ha b/cmd/example/cli.ha
index edd45be..b981e17 100644
--- a/cmd/example/cli.ha
+++ b/cmd/example/cli.ha
@@ -62,8 +62,9 @@ export fn main() void = {
};
const note = runetonote(runes[0]);
const pitch = strconv::stou32(spl[2])!;
- midi::noteon(&tc, 0, note, 64, pitch);
- midi::noteoff(&tc, dt, note, 64, pitch);
+ const tp = midi::playnote(dt, note, 64, pitch);
+ append(tc.ev, tp.0);
+ append(tc.ev, tp.1);
};
};