[Cs-dev] Csound NaCl Midi crash
Date | 2015-09-24 16:48 |
From | Ed Costello |
Subject | [Cs-dev] Csound NaCl Midi crash |
Attachments | None None |
Hey, I'm getting crashes using NaCl when trying to use live Midi input, My csd is this: <CsoundSynthesizer> <CsOptions> -+rtmidi=null -+rtaudio=null -M0 -odac </CsOptions> <CsInstruments> nchnls = 2 0dbfs = 1 ksmps = 64 sr = 44100 massign 1, "Synth" instr Synth iCps cpsmidi iAmp ampmidi 0dbfs * 0.3 iAttack chnget "Attack" iRelease chnget "Release" aOut vco2 iAmp, iCps aADSR adsr iAttack, 0.001, 1, iRelease aOut = aOut * aADSR outs aOut, aOut endin </CsInstruments> <CsScore> </CsScore> </CsoundSynthesizer> And the code I'm using to get the WebMidi rolling is: var handleMidiInput = function(event) { csound.MIDIin(event.data[0], event.data[1], event.data[2]); }; var midiSuccess = function(midiInterface) { var inputs = midiInterface.inputs.values(); for (var input = inputs.next(); input && !input.done; input = inputs.next() ){ input = input.value; input.onmidimessage = handleMidiInput; } }; var midiFail = function(error) { console.log("MIDI failed to start, error:" + error); }; if (navigator.requestMIDIAccess) { navigator.requestMIDIAccess().then(midiSuccess, midiFail); } else { console.log("MIDI not supported in this browser"); } As soon as I send the first message I get this in the console: NativeClient: NaCl module crashed Thanks Ed -- Edward Costello
|
Date | 2015-09-24 16:50 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound NaCl Midi crash |
Sorry, I'm no help here, I've never used the MIDI input with the PNaCl build of Csound (which I use in other ways quite a bit). Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Sep 24, 2015 at 11:48 AM, Ed Costello |
Date | 2015-09-24 16:57 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Csound NaCl Midi crash |
Try without the -+rtmidi=null Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 24 Sep 2015, at 16:48, Ed Costello |
Date | 2015-09-24 17:05 |
From | Ed Costello |
Subject | Re: [Cs-dev] Csound NaCl Midi crash |
Attachments | None None |
Without the -+rtmidi=null it isn't crashing any more, but it doesn't seem to be receiving MIDI, is there an easy way to test? Ed On Thu, 24 Sep 2015 at 16:58 Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: Try without the -+rtmidi=null -- Edward Costello
|
Date | 2015-09-24 18:27 |
From | Ed Costello |
Subject | Re: [Cs-dev] Csound NaCl Midi crash |
Attachments | None None |
It works! The issue was in the score, I needed to put an e36000 to keep the csd running. Thanks Ed On Thu, 24 Sep 2015 at 17:05 Ed Costello <phasereset@gmail.com> wrote:
-- Edward Costello
|