diff --git a/examples/examples-audiokit/streams-synthstk-audiokit/streams-synthstk-audiokit.ino b/examples/examples-audiokit/streams-synthstk-audiokit/streams-synthstk-audiokit.ino index 2db4ed957..a1ea58f9e 100644 --- a/examples/examples-audiokit/streams-synthstk-audiokit/streams-synthstk-audiokit.ino +++ b/examples/examples-audiokit/streams-synthstk-audiokit/streams-synthstk-audiokit.ino @@ -16,12 +16,12 @@ float noteAmplitude = 128; int group = 0; void actionKeyOn(bool active, int pin, void* ptr){ - int note = *((int*)ptr); + float note = *((float*)ptr); voicer.noteOn(note, noteAmplitude, group); } void actionKeyOff(bool active, int pin, void* ptr){ - int note = *((int*)ptr); + float note = *((float*)ptr); voicer.noteOff(note, noteAmplitude, group); } diff --git a/examples/examples-stk/streams-stk_synth-audiokit/streams-stk_synth-audiokit.ino b/examples/examples-stk/streams-stk_synth-audiokit/streams-stk_synth-audiokit.ino index a463826bb..453304f46 100644 --- a/examples/examples-stk/streams-stk_synth-audiokit/streams-stk_synth-audiokit.ino +++ b/examples/examples-stk/streams-stk_synth-audiokit/streams-stk_synth-audiokit.ino @@ -16,12 +16,12 @@ float noteAmplitude = 128; int group = 0; void actionKeyOn(bool active, int pin, void* ptr){ - int note = *((int*)ptr); + float note = *((float*)ptr); voicer.noteOn(note, noteAmplitude, group); } void actionKeyOff(bool active, int pin, void* ptr){ - int note = *((int*)ptr); + float note = *((float*)ptr); voicer.noteOff(note, noteAmplitude, group); } diff --git a/examples/examples-stream/streams-adsr-i2s/streams-adsr-i2s.ino b/examples/examples-stream/streams-adsr-i2s/streams-adsr-i2s.ino index d2d787df6..a2a0e810e 100644 --- a/examples/examples-stream/streams-adsr-i2s/streams-adsr-i2s.ino +++ b/examples/examples-stream/streams-adsr-i2s/streams-adsr-i2s.ino @@ -18,7 +18,7 @@ uint64_t time_on; uint64_t time_off; -void actionKeyOn(int note){ +void actionKeyOn(float note){ Serial.println("KeyOn"); sine.setFrequency(note); adsr.keyOn();