kunstmusik / csound-live-code

Library and web application for live coding with Csound
http://live.csound.com
105 stars 14 forks source link

MIDI in through Web MIDI API? #22

Open giohappy opened 3 years ago

giohappy commented 3 years ago

I don't know how the CsoundObj.js file and the WASM in live.csound work (and how they are compiled, etc.), so forgive the noob question: Is it technically possible to pass MIDI in from the Web MIDI API to it?

kunstmusik commented 3 years ago

It's in CsoundObj but not a part of csound-live-code. We have it enabled in the Csound Web-ide (https://ide.csound.com). Is this a request to add it to csound-live-code? If so, I can look into it.

On Wed, Sep 23, 2020 at 5:15 PM Giovanni Allegri notifications@github.com wrote:

I don't know how the CsoundObj.js file and the WASM in live.csound work (and how they are compiled, etc.), so forgive the noob question: Is it technically possible to pass MIDI in from the Web MIDI API to it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kunstmusik/csound-live-code/issues/22, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMMA63QKCHTISPQLO3XUCTSHJQPXANCNFSM4RXQSK6A .

kunstmusik commented 3 years ago

BTW: I just checked, and if you open up the developer console, you can use:

cs.enableMidiInput(() => console.log('done'));

and

cs.enableAudioInput(() => console.log('done'));

If you do that, you may have to restart Csound with the refresh button in the page (the one next to the pause button). After that those parts should be working. (Tested both here on Mac with Chrome 85)

On Wed, Sep 23, 2020 at 5:19 PM Steven Yi stevenyi@gmail.com wrote:

It's in CsoundObj but not a part of csound-live-code. We have it enabled in the Csound Web-ide (https://ide.csound.com). Is this a request to add it to csound-live-code? If so, I can look into it.

On Wed, Sep 23, 2020 at 5:15 PM Giovanni Allegri notifications@github.com wrote:

I don't know how the CsoundObj.js file and the WASM in live.csound work (and how they are compiled, etc.), so forgive the noob question: Is it technically possible to pass MIDI in from the Web MIDI API to it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kunstmusik/csound-live-code/issues/22, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMMA63QKCHTISPQLO3XUCTSHJQPXANCNFSM4RXQSK6A .

giohappy commented 3 years ago

Thanks Steven! That's a great hint. I will play with it soon.

On Wed, Sep 23, 2020 at 11:27 PM Steven Yi notifications@github.com wrote:

BTW: I just checked, and if you open up the developer console, you can use:

cs.enableMidiInput(() => console.log('done'));

and

cs.enableAudioInput(() => console.log('done'));

If you do that, you may have to restart Csound with the refresh button in the page (the one next to the pause button). After that those parts should be working. (Tested both here on Mac with Chrome 85)

On Wed, Sep 23, 2020 at 5:19 PM Steven Yi stevenyi@gmail.com wrote:

It's in CsoundObj but not a part of csound-live-code. We have it enabled in the Csound Web-ide (https://ide.csound.com). Is this a request to add it to csound-live-code? If so, I can look into it.

On Wed, Sep 23, 2020 at 5:15 PM Giovanni Allegri < notifications@github.com> wrote:

I don't know how the CsoundObj.js file and the WASM in live.csound work (and how they are compiled, etc.), so forgive the noob question: Is it technically possible to pass MIDI in from the Web MIDI API to it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kunstmusik/csound-live-code/issues/22, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAMMA63QKCHTISPQLO3XUCTSHJQPXANCNFSM4RXQSK6A

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kunstmusik/csound-live-code/issues/22#issuecomment-697982032, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAELN6JSUHL2BMPL77ZG553SHJR4PANCNFSM4RXQSK6A .