Right now I can find the object key for a list of note by searching for its frequency:
let key = noteKeys.find(k=>note[k]['freq']===freq);
Each note has it's own unique frequency, so that's note a problem.
But say if I want to find the object key in my note object based on both the note letter value (a number) and an octave?
I'd imagine it would be something like this, but it gives me the error "malformed parameter list':
let key = noteKeys.find(k=>note[k]['note']===newNote && k=>note[k]['octave']===currentOctave)