Dynamic Digital writing to analog input pins in a library.

I hope i used the word dynamic correctly :stuck_out_tongue: ... 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.

nvm solution found here: DigitalWrite on Digital + Analog Pins - Programming Questions - Arduino Forum
refer to the pins as follows:

Grumpy_Mike:
Using analogue pins for digital I/O is just the same as using digital ones.
A0 is referred to as Pin 14
A1 is referred to as Pin 15
A2 is referred to as Pin 16
A3 is referred to as Pin 17
A4 is referred to as Pin 18
A5 is referred to as Pin 19