laopunk / chordPlayer

WebAudio musical audio chord player
MIT License
5 stars 1 forks source link

a way to get the notes of a chord without attempting to access 'window' #2

Open hjek opened 8 years ago

hjek commented 8 years ago

currently, the only way to get the notes of a chord, seems to be: chordPlayer.buildChordPlayer.getChordInfo("some-chord")

it could be nice with something like: chordPlayer.getChordInfo("some-chord") that doesn't try to access the window object (like when building stuff in node):

CHORDPLAYER ERROR: ReferenceError: window is not defined
USAGE: new chordPlayer(chordName,[audioContext])

(it still works, though)