Why arent the mode functions working? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
24th Oct 2018, 8:01 AM
B.D
B.D - avatar
3 Answers
+ 1
i'm not sure i can explain this properly but, when p(f) is called the audio start with the default type which is sine. if you change the type after the sound it wont be registered and keep using the default one when playing a new sound how to fix it, store the type after mode change somewhere then change the type before the play the sound, inside function p.
24th Oct 2018, 8:55 AM
Taste
Taste - avatar
+ 1
how to change it?
25th Oct 2018, 1:31 PM
B.D
B.D - avatar
+ 1
store the type when mode change in variable, then change the type using that variable before the play the sound, inside p().
25th Oct 2018, 1:33 PM
Taste
Taste - avatar