Closed
Description
No matter what the fx
value is, it doesn't change the sound.
We can see in this example code (also runnable in the Python Editor simulator), that the sound is the same in all cases.
from microbit import *
fx_test = audio.SoundEffect(
freq_start=3041,
freq_end=3923,
vol_start=59,
vol_end=255,
duration=500,
waveform=audio.SoundEffect.WAVEFORM_SINE,
fx=audio.SoundEffect.FX_NONE,
shape=audio.SoundEffect.SHAPE_LINEAR,
)
audio.play(fx_test)
sleep(100)
fx_test.fx = audio.SoundEffect.FX_TREMOLO
audio.play(fx_test)
sleep(100)
fx_test.fx = audio.SoundEffect.FX_WARBLE
audio.play(fx_test)
sleep(100)
fx_test.fx = audio.SoundEffect.FX_VIBRATO
audio.play(fx_test)
Metadata
Metadata
Assignees
Labels
No labels