We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shared_bindings_synthio_lfo_tick
audiomixer
1 parent b796f0d commit 84f8e31Copy full SHA for 84f8e31
shared-module/audiomixer/Mixer.c
@@ -194,7 +194,7 @@ static void mix_down_one_voice(audiomixer_mixer_obj_t *self,
194
uint32_t n = MIN(MIN(voice->buffer_length, length), SYNTHIO_MAX_DUR * self->channel_count);
195
196
// Get the current level from the BlockInput. These may change at run time so you need to do bounds checking if required.
197
- shared_bindings_synthio_lfo_tick(self->sample_rate);
+ shared_bindings_synthio_lfo_tick(self->sample_rate, n / self->channel_count);
198
uint16_t level = (uint16_t)(synthio_block_slot_get_limited(&voice->level, MICROPY_FLOAT_CONST(0.0), MICROPY_FLOAT_CONST(1.0)) * (1 << 15));
199
#else
200
uint32_t n = MIN(voice->buffer_length, length);
0 commit comments