Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound NaCl Midi crash

Date2015-09-24 16:48
FromEd Costello
Subject[Cs-dev] Csound NaCl Midi crash
AttachmentsNone  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

Date2015-09-24 16:50
FromMichael Gogins
SubjectRe: [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  wrote:
> Hey,
>
> I'm getting crashes using NaCl when trying to use live Midi input,
> My csd is this:
>
> 
> 
> -+rtmidi=null -+rtaudio=null -M0 -odac
> 
> 
> 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
>
> 
> 
> 
> 
>
> 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
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-09-24 16:57
FromVictor Lazzarini
SubjectRe: [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  wrote:
> 
> Hey,
> 
> I'm getting crashes using NaCl when trying to use live Midi input,
> My csd is this:
> 
> 
> 
> -+rtmidi=null -+rtaudio=null -M0 -odac
> 
> 
> 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
> 
> 
> 
> 
> 
> 
> 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
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-09-24 17:05
FromEd Costello
SubjectRe: [Cs-dev] Csound NaCl Midi crash
AttachmentsNone  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

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 24 Sep 2015, at 16:48, Ed Costello <phasereset@gmail.com> wrote:
>
> 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
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel
--
Edward Costello

Date2015-09-24 18:27
FromEd Costello
SubjectRe: [Cs-dev] Csound NaCl Midi crash
AttachmentsNone  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:
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

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 24 Sep 2015, at 16:48, Ed Costello <phasereset@gmail.com> wrote:
>
> 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
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel
--
Edward Costello
--
Edward Costello