webaudiomodules / api

Web Audio Modules (WAMs) API
173 stars 15 forks source link

Should WAM Controller speak directly to Web Midi Port? #4

Open olilarkin opened 5 years ago

olilarkin commented 5 years ago

Seems odd to me that the WAM controller should know about the port.

https://github.com/webaudiomodules/api/blob/3aaa9af4f9d25080810887a1e09021789b180a6f/wamsdk/wam-controller.js#L39

jariseon commented 5 years ago

wams are different from desktop plugins in the sense that there might not be a host at all: a wam may be integrated into a web app directly, and therefore it "plugs in" with Web Midi API (as well as Web Audio API).

olilarkin commented 5 years ago

Could a WAM not be a MIDI processor, like you can have say a VST arpeggiator? I think this would be nice, especially if we sort out timestamped MIDI messages. I don't think WAMs should talk directly to the WebMIDI ports. VirtualCZ.io needs to output MIDI (sysex) so i will add WAMController.midiOutPort for now