Arpeggiator/Sequencer Question

1 post / 0 new
DESoundOfLove's picture
Arpeggiator/Sequencer Question

Hey there!

I've built the Arpeggiator/Sequencer without problems, but now I'm trying to modify it a bit and have come across a few bits I'm maybe a bit too inexperienced to figure out.

1) I'm trying to add a tempo pot, running a 100k pot off of the A0 pin. I wasn't sure how to edit this into the code - particularly into the for loop?

So far, I have:
#include <werkstatt.h>

int tempoPot = 0; //Our initial pot values
int bpmVal = 0;
arpeggiator arpeggiator(6); //initiate and name the arpeggiator class (Output pin)

int notes[] = {tonic, octave}; // VCO EXP config - notes are assigned in intervals: tonic, minor2nd, major2nd, minor3rd, major3rd, fourth, tritone, fifth, minor6th, major6th, minor7th, major7th, octave.

int note_values[] = {e, e}; //VCO EXP config // note values: w, h, q, qt, e, et, sx, sxt, th, sxf

void setup() {

void loop() {
bpmVal = analogRead(tempoPot);
for (int i = 0; i < ( sizeof(notes)/sizeof(int) ); i++)
//define a BPM and run the function, notes[i], note_values[i]);

But it doesn't seem to like that? I can't figure out how to approach it differently either, as the werkstatt library is seeming a bit foreign to me atm

2) Would there be any way to integrate step controllers into it? My end goal is a few steps with a switchable rotary encoder to turn each step on and off, as well selecting the step's value

Cheers :)