Skip to content

Audio Effect Reverb #10196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Apr 21, 2025
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a405019
Initial commit
gamblor21 Mar 1, 2025
aba78f9
Initial buffers
gamblor21 Mar 22, 2025
c7991ad
Temp stereo fix and send the right sample
gamblor21 Mar 22, 2025
d2173ae
Changes to stereo handling
gamblor21 Mar 22, 2025
9a148f7
Temp mix test
gamblor21 Mar 23, 2025
4359a21
Fix error if no sample add in comments
gamblor21 Apr 2, 2025
89c4110
Fixed copyright year oops
gamblor21 Apr 3, 2025
9cdc3d7
Doc addition and better mix
gamblor21 Apr 5, 2025
0e79f5b
Comments and unix build
gamblor21 Apr 5, 2025
edb6810
Unix build file update
gamblor21 Apr 5, 2025
f8647a3
Removing extra f float markers
gamblor21 Apr 5, 2025
6e7d2b5
Spelling mistake
gamblor21 Apr 11, 2025
86eca38
Moving to audiofreeverb and renaming to Freeverb
gamblor21 Apr 11, 2025
c9a2a40
Fix the mix calculation
gamblor21 Apr 11, 2025
168b16d
Rename unix build pathes
gamblor21 Apr 11, 2025
f011df2
Fixes for zephyr build
gamblor21 Apr 19, 2025
4b7d9c5
Add zephyr script
gamblor21 Apr 19, 2025
fa863cf
Removing autogen files
gamblor21 Apr 19, 2025
fb34bc7
Revert "Removing autogen files"
gamblor21 Apr 19, 2025
eb53338
Revert "Fixes for zephyr build"
gamblor21 Apr 19, 2025
f6357d5
Change to how malloc is called
gamblor21 Apr 19, 2025
3478eea
Merge remote-tracking branch 'adafruit/main' into audioeffect-reverb
gamblor21 Apr 20, 2025
a8f29b4
Updated zephyr autogen files
gamblor21 Apr 20, 2025
b46532b
Oops old folders causing errors
gamblor21 Apr 20, 2025
ca38d29
Overwrite some autogen items incorrectly - fixed now
gamblor21 Apr 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Temp mix test
  • Loading branch information
gamblor21 committed Mar 28, 2025
commit 9a148f7f2f86f4b3ff1a31a49fef8f7b1f0b00b6
2 changes: 2 additions & 0 deletions shared-module/audiodelays/Reverb.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ audioio_get_buffer_result_t audiodelays_reverb_get_buffer(audiodelays_reverb_obj
mp_float_t damp = synthio_block_slot_get_limited(&self->damp, MICROPY_FLOAT_CONST(0.0), MICROPY_FLOAT_CONST(1.0));
int16_t damp1, damp2;
audiodelays_reverb_get_damp_fixedpoint(damp, &damp1, &damp2);
mp_float_t mix = synthio_block_slot_get_limited(&self->mix, MICROPY_FLOAT_CONST(0.0), MICROPY_FLOAT_CONST(1.0));

mp_float_t roomsize = synthio_block_slot_get_limited(&self->roomsize, MICROPY_FLOAT_CONST(0.0), MICROPY_FLOAT_CONST(1.0));
int16_t feedback = audiodelays_reverb_get_roomsize_fixedpoint(roomsize);
Expand Down Expand Up @@ -321,6 +322,7 @@ audioio_get_buffer_result_t audiodelays_reverb_get_buffer(audiodelays_reverb_obj

word = output * 30;

word = (sample_word * (MICROPY_FLOAT_CONST(1.0) - mix)) + (word * mix);
word = synthio_mix_down_sample(word, SYNTHIO_MIX_DOWN_SCALE(2));
word_buffer[i] = (int16_t)word;

Expand Down
Loading