parsing octave and note names from input to function