react-piano icon indicating copy to clipboard operation
react-piano copied to clipboard

What's the difference between playNote and onPlayNoteInput?

Open morganpackard opened this issue 3 years ago • 0 comments

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!

morganpackard avatar Oct 11 '22 19:10 morganpackard