-
Notifications
You must be signed in to change notification settings - Fork 9
Added standard noteon noteoff MIDI message handling #1
base: master
Are you sure you want to change the base?
Conversation
Hi Pedro, thanks a lot for all the pull requests. The example was very helpful to understand the value of the code. Anyway, I'm not still sure if this functionality should be in sample-player, or not. I'm thinking about move some features (like this one and schedule) to it's own files and make them optional until we decided if they should be on core or not. I'm thinking in something like this:
This allows also to evolve the functionality without pollute the core. For example, I think it should be convenient to have various players attached to different midi channels. The What do you think? Saludos |
As long as this is activated manually, like setting an option on MIDI parsing should be where it can modify both instrument benches (0-127, instrument picker) and sound volume and pitch bend, to at least fullfill the standard. Lastly I ask you if you ever write something like
Because |
Hi Pedro, I don't think I'll have time today to include the changes and publish them.
Un saludo On Tue, May 24, 2016 at 12:14 PM, Pedro Montoto García <
|
Ok, let me know when you've decided on an architecture, I'd like to contribute to this codebase further. Thanks. |
Great, it will be soon. Meanwhile I'll happily accept a PR to fix the typo Cheers, On Tue, May 24, 2016 at 3:34 PM, Pedro Montoto García <
|
Hi Pedro, I've added initial support for midi (mostly by copy and paste your code). I'm quite unsure yet of how to integrate this with sample-player, and even I'm thinking in a different npm module. Meanwhile you can take a look at The good part is that finally I've listen the browser playing my external keyboard! Thanks! Suggestions and additions welcomed! |
Hi Pedro, Finally I decided to incorprate your changes to the core. Midi support is enabled by default in 0.4.0. I hope you like it. Suggestions welcomed.
|
By core you mean the What's next would be
|
Hi, the decay phase of envelope starts when you stop a sample, so it's working right now. Pitchbend is more tricky...
|
Great, will investigate about pitchbend in the Web Audio API then. |
Documented and added a little example. Working on adding an HTML example.