Hello Arduino forum,
here's my latest project, a step-sequencer monosynth called Arpeg4.
There was a dev thread in 2018 : A few questions about a programmable step sequencer
But until now I got it in an enclosure with potentiometers, a start/stop-switch and unbalanced 6,3mm output jack. I'm looking to add CV/Gate out.
I had to Google around for some code solutions such as reversing the tempo pot.
Here's the schematic :
And the code :
void setup() {
Serial.begin(9600) ;
pinMode (A0, INPUT) ;
pinMode (A1, INPUT) ;
pinMode (A2, INPUT) ;
pinMode (A3, INPUT) ;
pinMode (A4, INPUT) ;
pinMode (12, INPUT) ;
pinMode (13, OUTPUT) ;
}
void loop() {
int tempo = 1023 - analogRead (A4) / 4 ;
int noteLength = 100 ;
int step1 = analogRead (A0) / 8 ;
int step2 = analogRead (A1) / 8 ;
int step3 = analogRead (A2) / 8 ;
int step4 = analogRead (A3) / 8 ;
Serial.println (digitalRead(12)) ;
if (digitalRead (12) == 1) {
tone(13, step1, noteLength);
delay(tempo);
tone (13, step2, noteLength);
delay(tempo);
tone(13, step3, noteLength);
delay(tempo);
tone(13, step4, noteLength);
delay(tempo);
}
else {
noTone(13) ;
}
}
That's about it. I noticed there's an Uno synth kit available, is it any good?
I'd figure most would want 3,5mm CV/Gate outputs, this is very simple; an analogWrite
on a pin for the step CV and a digitalWrite
for the gate.
Have a nice midsummer,
-ef