use c++ note queue in synthpp_poly

This commit is contained in:
Stefano D'Angelo 2023-07-04 11:20:41 +02:00
parent 6e1212d8f5
commit af5dbc0a1c
2 changed files with 2 additions and 1 deletions

1
TODO
View File

@ -2,6 +2,7 @@
-----
code:
* synth poly stuck notes
* osc post filter (and one pole init, slew rate, etc.) val from input? set state instead?
* audio rate optional pulse width/slope inputs?
* should rather use backward Euler in bw_onepole?

View File

@ -145,7 +145,7 @@ void bw_example_synthpp_poly_process(bw_example_synthpp_poly *instance, const fl
for (int i = 0; i < N_VOICES; i++)
voices[i] = (void *)(instance->voices + i);
bw_voice_alloc(&alloc_opts, &instance->noteQueue.queue, voices, N_VOICES);
bw_note_queue_clear(&instance->noteQueue.queue);
instance->noteQueue.clear();
const float df1 =
6.f * instance->params[p_vco1_coarse] - 3.f