diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2023-06-28 22:41:03 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2023-06-28 22:41:03 +0300 |
commit | f170fb058a07175e6e753f2a6d20283dc7200a88 (patch) | |
tree | e43c20efa7efe12fbe1828777474669f9ac01135 /src/midi.c | |
parent | 89e85142d0958d3e3a87fb155d698fc59eafd4c6 (diff) | |
download | synth-project-f170fb058a07175e6e753f2a6d20283dc7200a88.tar.gz synth-project-f170fb058a07175e6e753f2a6d20283dc7200a88.tar.bz2 synth-project-f170fb058a07175e6e753f2a6d20283dc7200a88.zip |
Add wavetable synthesis
Diffstat (limited to 'src/midi.c')
-rw-r--r-- | src/midi.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -27,6 +27,7 @@ void midi_decode(uint32_t msg, synth_t * synth) { synth->midi_note[data1].velocity = (float)data2 / 127.0; synth->midi_note[data1].elapsed = 0; synth->midi_note[data1].active = 1; + synth->active = 1; break; case 0x0A: printf("Aftertouch: channel=%d, note=%d, pressure=%d\n", channel, data1, data2); @@ -144,7 +145,7 @@ init_midi(midi_t *m, synth_t *synth) void terminate_midi(midi_t *m) { - Pm_Close(m->stream); Pt_Stop(); + Pm_Close(m->stream); Pm_Terminate(); } |