react-piano
react-piano copied to clipboard
What's the difference between playNote and onPlayNoteInput?
Hi there,
Thanks for this handy little library! It looks to me like playNote and onPlayNoteInput are both callbacks which are called when a key is pressed, and they both get passed the midi number of the note. onPlayNoteInput gets an additional argument, prevActiveNotes. Besides that, is there a difference between these two? Thanks!