I hope i used the word dynamic correctly ... I have this line in my library:
digitalWrite((chanel), HIGH);
and it's initialized in the function like so:
void tune_playnote (byte chan, byte note) {
uint8_t chanel = 'A'+(chan+1);
I tried just doing
digitalWrite((chan+1)+'A'), HIGH);
and
uint8_t chanel = 'A'+(chan+1);
But it just appears to be trying to write to digital pin 68 instead of analog 4 or something like that.