Skip to content

Commit

Permalink
codal_port/microbit_soundeffect: Add comments for CODAL fx constants.
Browse files Browse the repository at this point in the history
It's not possible to include the CODAL header file that defines these
constants because that header file is C++.

Signed-off-by: Damien George <[email protected]>
  • Loading branch information
dpgeorge committed Aug 21, 2024
1 parent 9486813 commit 6eb46a3
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 (2) // SFX_DEFAULT_VIBRATO_PARAM
#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_PARAM (3) // SFX_DEFAULT_TREMOLO_PARAM
#define SOUND_EFFECT_FX_WARBLE_DEFAULT_PARAM (2) // SFX_DEFAULT_WARBLE_PARAM
#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_STEPS (512) // SFX_DEFAULT_VIBRATO_STEPS
#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_STEPS (900) // SFX_DEFAULT_TREMOLO_STEPS
#define SOUND_EFFECT_FX_WARBLE_DEFAULT_STEPS (700) // SFX_DEFAULT_WARBLE_STEPS

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

0 comments on commit 6eb46a3

Please sign in to comment.