Hallo
ich versuche mich mit dem Fluxamasynth Shield
Als erstes habe ich einen Tonleitercode
#include <Fluxamasynth.h>
Fluxamasynth synth;
void setup() {
synth.setMasterVolume(255);
int volume = analogRead(A0);
}
void loop()
{
for (int note=60; note<85; note++) {
synth.noteOn(0, note, 100);
delay(200);
synth.noteOn(0, note, 0); // Be sure to turn the note off!
}
}
Nun will ich mit einem Potentiometer die Lautstärke verändern kann mir da jemand helfen?
Gruss