You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note plays for 0.1 second every second alternating between the left and right channels (hard panned). The delayed effect plays in the center channel with distorted abnormalities.
Description
Code works as intended if max_delay_ms equals delay_ms. Otherwise, panning errors in the audio occur. This is due to the poor handling of the buffer pointer when freq_shift is enabled and multiple channels are present.
Additional information
The buffer pointers need to be limited to half the buffer size when channel_count=2 and freq_shift=True and the right channel pointer needs to be offset to the second half of the buffer. This will allow the two channels to be separated appropriately.
This is my fault due to a lack of understanding of the audiosample API when adding this feature.
The text was updated successfully, but these errors were encountered:
CircuitPython version
Code/REPL
Behavior
Note plays for 0.1 second every second alternating between the left and right channels (hard panned). The delayed effect plays in the center channel with distorted abnormalities.
Description
Code works as intended if
max_delay_ms
equalsdelay_ms
. Otherwise, panning errors in the audio occur. This is due to the poor handling of the buffer pointer whenfreq_shift
is enabled and multiple channels are present.Additional information
The buffer pointers need to be limited to half the buffer size when
channel_count=2
andfreq_shift=True
and the right channel pointer needs to be offset to the second half of the buffer. This will allow the two channels to be separated appropriately.This is my fault due to a lack of understanding of the audiosample API when adding this feature.
The text was updated successfully, but these errors were encountered: