react-orchestra
Version:
A toolbox to build interactive and smart instruments on the web and mobile.
15 lines • 420 B
JavaScript
/* mod */
/**
* @function
* @name addOctaveToNoteName
* @param {string} noteName - Note name
* @param {number} octave
* @example
* addOctaveToNoteName('A', 3) // returns 'A3'
* @return {string} noteName - Note name
*/
var addOctaveToNoteName = function addOctaveToNoteName(noteName, octave) {
var noteNameWithOctave = "" + noteName + octave;
return noteNameWithOctave;
};
export default addOctaveToNoteName;