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
If TEST = False, the DAC outputs the note played by the synthesizer and reports the following REPL output:
dac.playing=True
mixer.playing=True
If TEST = True, no sound is output from the DAC and it reports the following REPL output:
dac.playing=True
mixer.playing=False
Description
If audiomixer.Mixer is played by an audio output object before the audiomixer.MixerVoice object has been loaded with a sample, the output audio is silent. Toggle the TEST constant to flip the order of play and demonstrate this error.
Additional information
This is an aside, but it would also be really nice to allow for chaining, ie: dac.play(mixer.play(synth, voice=0)). I know in the past other users have referenced this style of chaining, but it is definitely not supported. I think all that would be necessary to do this is to return an instance of self (return MP_OBJ_FROM_PTR(self);) on each implementation of play in shared-bindings.
The text was updated successfully, but these errors were encountered:
CircuitPython version and board name
Code/REPL
Behavior
If
TEST = False
, the DAC outputs the note played by the synthesizer and reports the following REPL output:If
TEST = True
, no sound is output from the DAC and it reports the following REPL output:Description
If
audiomixer.Mixer
is played by an audio output object before theaudiomixer.MixerVoice
object has been loaded with a sample, the output audio is silent. Toggle theTEST
constant to flip the order ofplay
and demonstrate this error.Additional information
This is an aside, but it would also be really nice to allow for chaining, ie:
dac.play(mixer.play(synth, voice=0))
. I know in the past other users have referenced this style of chaining, but it is definitely not supported. I think all that would be necessary to do this is to return an instance of self (return MP_OBJ_FROM_PTR(self);
) on each implementation ofplay
inshared-bindings
.The text was updated successfully, but these errors were encountered: