Skip to content

Commit

Permalink
codal_port/microbit_soundeffect: Use CODAL-provided constants for fx.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Aug 21, 2024
1 parent 9486813 commit a0ac7dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/codal_port/microbit_soundeffect.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@
#define SOUND_EFFECT_FX_WARBLE (3)

// These default fx values are the same as used by MakeCode.
#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_PARAM (2)
#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_PARAM (3)
#define SOUND_EFFECT_FX_WARBLE_DEFAULT_PARAM (2)
#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_STEPS (512)
#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_STEPS (900)
#define SOUND_EFFECT_FX_WARBLE_DEFAULT_STEPS (700)
#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_PARAM (SFX_DEFAULT_VIBRATO_PARAM)
#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_PARAM (SFX_DEFAULT_TREMOLO_PARAM)
#define SOUND_EFFECT_FX_WARBLE_DEFAULT_PARAM (SFX_DEFAULT_WARBLE_PARAM)
#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_STEPS (SFX_DEFAULT_VIBRATO_STEPS)
#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_STEPS (SFX_DEFAULT_TREMOLO_STEPS)
#define SOUND_EFFECT_FX_WARBLE_DEFAULT_STEPS (SFX_DEFAULT_WARBLE_STEPS)

#define SOUND_EFFECT_DEFAULT_FREQ_START (500)
#define SOUND_EFFECT_DEFAULT_FREQ_END (2500)
Expand Down

0 comments on commit a0ac7dd

Please sign in to comment.