Stream Generator variable with VS1053 #356
-
Hello Pshatzmann,i'm having fun with your VS1053 library and the generator,but only one frequency is to me frustrating,i tried the generator sketch with a global variable //---------------------------------------------------------------- /*
*/ uint16_t sample_rate=44100; const int potPin = 34;//potentiometer settings SineWaveGenerator<int16_t> sineWave(potValue); //variable generator GeneratedSoundStream<int16_t> sound(sineWave); void setup(){ // Setup sine wave // setup output } void loop(){ potValue = analogRead(potPin); //getting values from the pot //--------------------------------------------------------------- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I suggest that you have a look at the the synthesizer examples in the AudioKit directory: e.g. https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-audiokit/streams-synthbasic1-audiokit/streams-synthbasic1-audiokit.ino |
Beta Was this translation helpful? Give feedback.
I suggest that you have a look at the the synthesizer examples in the AudioKit directory: e.g. https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-audiokit/streams-synthbasic1-audiokit/streams-synthbasic1-audiokit.ino