Quantcast

sysex failure

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

sysex failure

lance.bantham
hey all-

this isn't necessary a SC problem, but i don't quite understand what kind of problem it is. 

i seem to be unable to send sysex messages in osx 10.11. 

i'm getting this: 
ERROR: Primitive '_SendSysex' failed.


any ideas?



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sysex failure

LightRate
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sysex failure

lance.bantham
ERROR: Primitive '_SendSysex' failed.
Wrong type.
RECEIVER:
Instance of MIDIOut {    (0x11f48f968, gc=C4, fmt=00, flg=00, set=02)
  instance variables [3]
    port : Integer 0
    uid : Integer 1762570237
    latency : Float 0.200000   9999999A 3FC99999
}
PATH: /Users/lb/Desktop/trg/scd/in.scd

PROTECTED CALL STACK:
Meta_MethodError:new 0x1176fb780
arg this = PrimitiveFailedError
arg what = Wrong type.
arg receiver = a MIDIOut
Meta_PrimitiveFailedError:new 0x117701d40
arg this = PrimitiveFailedError
arg receiver = a MIDIOut
Object:primitiveFailed 0x117020ac0
arg this = a MIDIOut
a FunctionDef 0x1189423c0
sourceCode = "<an open Function>"
arg msgArgs = [ -16 ]
arg i = 0
var latency = 0
ArrayedCollection:do 0x118805c00
arg this = [ [ -16 ], [ 43 ], [ 1 ], [ 1 ], [ 34 ], [ 0 ], [ 8 ], [ 0 ], [ -9 ] ]
arg function = a Function
var i = 0
a FunctionDef 0x1188f8080
sourceCode = "<an open Function>"
Function:prTry 0x1179d0480
arg this = a Function
var result = nil
var thread = a Routine
var next = nil
var wasInProtectedFunc = false
CALL STACK:
MethodError:reportError   0x11a567d98
arg this = <instance of PrimitiveFailedError>
Nil:handleError   0x11a52e498
arg this = nil
arg error = <instance of PrimitiveFailedError>
Thread:handleError   0x11a5698a8
arg this = <instance of Thread>
arg error = <instance of PrimitiveFailedError>
Thread:handleError   0x11a530fc8
arg this = <instance of Routine>
arg error = <instance of PrimitiveFailedError>
Object:throw   0x11a52ee68
arg this = <instance of PrimitiveFailedError>
Function:protect   0x11a568a18
arg this = <instance of Function>
arg handler = <instance of Function>
var result = <instance of PrimitiveFailedError>
Environment:use   0x1205a3f08
arg this = <instance of Event>
arg function = <instance of Function>
var result = nil
var saveEnvir = <instance of Environment>
Event:play   0x11a47a7d8
arg this = <instance of Event>
Event:playAndDelta   0x11a480c58
arg this = <instance of Event>
arg cleanup = <instance of EventStreamCleanup>
arg mute = false
EventStreamPlayer:prNext   0x12059e4c8
arg this = <instance of EventStreamPlayer>
arg inTime = 1969.659553227
var nextTime = nil
var outEvent = <instance of Event>
< FunctionDef in Method EventStreamPlayer:init >   0x11a42d458
arg inTime = 1969.659553227
Routine:prStart   0x11a46de08
arg this = <instance of Routine>
arg inval = 1969.659553227
^^ The preceding error dump is for ERROR: Primitive '_SendSysex' failed.
Wrong type.
RECEIVER: a MIDIOut

On Tue, Feb 7, 2017 at 10:42 PM, LightRate <[hidden email]> wrote:
Give us the entire error message.



--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/sysex-failure-tp7630588p7630589.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sysex failure

LightRate
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sysex failure

brian heim


On Tue, Feb 7, 2017 at 11:16 PM, LightRate <[hidden email]> wrote:
try using Int8Array instead of Array

^this. That's the only type MIDIOut.sysex accepts. That should definitely be more prominent in the documentation.


--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/sysex-failure-tp7630588p7630591.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/



--
_______________________________
Brian Heim
507-429-6468

B.M. '14 University of Texas at Austin
M.M. '16 Yale School of Music
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sysex failure

brian heim
Sorry the docs weren't clear on that!

On Tue, Feb 7, 2017 at 11:18 PM, brian heim <[hidden email]> wrote:


On Tue, Feb 7, 2017 at 11:16 PM, LightRate <[hidden email]> wrote:
try using Int8Array instead of Array

^this. That's the only type MIDIOut.sysex accepts. That should definitely be more prominent in the documentation.


--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/sysex-failure-tp7630588p7630591.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/



--
_______________________________
Brian Heim
<a href="tel:(507)%20429-6468" value="+15074296468" target="_blank">507-429-6468

B.M. '14 University of Texas at Austin
M.M. '16 Yale School of Music



--
_______________________________
Brian Heim
507-429-6468

B.M. '14 University of Texas at Austin
M.M. '16 Yale School of Music
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sysex failure

lance.bantham
Hmm.. I believe I am using Int8 array..but I'll mess around a bit more. 

On Tue, Feb 7, 2017 at 11:36 PM, brian heim <[hidden email]> wrote:
Sorry the docs weren't clear on that!

On Tue, Feb 7, 2017 at 11:18 PM, brian heim <[hidden email]> wrote:


On Tue, Feb 7, 2017 at 11:16 PM, LightRate <[hidden email]> wrote:
try using Int8Array instead of Array

^this. That's the only type MIDIOut.sysex accepts. That should definitely be more prominent in the documentation.


--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/sysex-failure-tp7630588p7630591.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/



--
_______________________________
Brian Heim
<a href="tel:(507)%20429-6468" value="+15074296468" target="_blank">507-429-6468

B.M. '14 University of Texas at Austin
M.M. '16 Yale School of Music



--
_______________________________
Brian Heim
<a href="tel:(507)%20429-6468" value="+15074296468" target="_blank">507-429-6468

B.M. '14 University of Texas at Austin
M.M. '16 Yale School of Music

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sysex failure

Luis Lloret
Hi,

Are you sending the full sysex message in one go? That is, in one fuction call, or are you sending it split in a number of calls?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sysex failure

brian heim
I think you must be accidentally converting to a normal array at some point, which is admittedly easy to do. _SendSysex will give a "Wrong Type" error message if and only if you're not giving it an Int8Array. Try this: if your call to sysex looks like this:

myMIDIOut.sysex(potato);

Try adding this line before it:

potato.class.postln;

And tell us what you see. :)

-Brian

On Wed, Feb 8, 2017 at 3:51 AM, Luis Lloret <[hidden email]> wrote:
Hi,

Are you sending the full sysex message in one go? That is, in one fuction
call, or are you sending it split in a number of calls?




--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/sysex-failure-tp7630588p7630597.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/



--
_______________________________
Brian Heim
507-429-6468

B.M. '14 University of Texas at Austin
M.M. '16 Yale School of Music
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sysex failure

lance.bantham
Hey there, 
I simplified the code to the barest bones and still get the error..

Maybe this will illustrate? 

MIDIClient.init;
MIDIIn.connect;
m = MIDIOut(0);

~ok = Int8Array[ 16rf0, 16r2b, 16r01, 16r01, 1623, 16r00, 16r00, 16r00, 16rf7];


Pbind(
\type, \midi,
\midiout, m,
\midicmd, \sysex,
\array, ~ok,
\dur, 0.2,
).play;


On Wed, Feb 8, 2017 at 9:49 AM, brian heim <[hidden email]> wrote:
I think you must be accidentally converting to a normal array at some point, which is admittedly easy to do. _SendSysex will give a "Wrong Type" error message if and only if you're not giving it an Int8Array. Try this: if your call to sysex looks like this:

myMIDIOut.sysex(potato);

Try adding this line before it:

potato.class.postln;

And tell us what you see. :)

-Brian

On Wed, Feb 8, 2017 at 3:51 AM, Luis Lloret <[hidden email]> wrote:
Hi,

Are you sending the full sysex message in one go? That is, in one fuction
call, or are you sending it split in a number of calls?




--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/sysex-failure-tp7630588p7630597.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/



--
_______________________________
Brian Heim
<a href="tel:(507)%20429-6468" value="+15074296468" target="_blank">507-429-6468

B.M. '14 University of Texas at Austin
M.M. '16 Yale School of Music

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sysex failure

brian heim
Try it with [~ok]. Also, just FYI, you're missing an `r` in that array (`1623` instead of `16r23`). I personally prefer the `0x` prefix for hex values since that is somewhat standard for hex literals across languages, and it's easier to see when you've missed it (having `16` all over the place adds extra noise to your code).

From the docs:

http://doc.sccode.org/Tutorials/A-Practical-Guide/PG_08_Event_Types_and_Parameters.html

"NOTE: Very important: Arrays normally multi-channel expand in patterns. So, you must wrap the Int8Array inside another array to prevent this. Write [Int8Array[...]], not just Int8Array[...]."

On Wed, Feb 8, 2017 at 1:30 PM, Lance Bantham <[hidden email]> wrote:
Hey there, 
I simplified the code to the barest bones and still get the error..

Maybe this will illustrate? 

MIDIClient.init;
MIDIIn.connect;
m = MIDIOut(0);

~ok = Int8Array[ 16rf0, 16r2b, 16r01, 16r01, 1623, 16r00, 16r00, 16r00, 16rf7];


Pbind(
\type, \midi,
\midiout, m,
\midicmd, \sysex,
\array, ~ok,
\dur, 0.2,
).play;


On Wed, Feb 8, 2017 at 9:49 AM, brian heim <[hidden email]> wrote:
I think you must be accidentally converting to a normal array at some point, which is admittedly easy to do. _SendSysex will give a "Wrong Type" error message if and only if you're not giving it an Int8Array. Try this: if your call to sysex looks like this:

myMIDIOut.sysex(potato);

Try adding this line before it:

potato.class.postln;

And tell us what you see. :)

-Brian

On Wed, Feb 8, 2017 at 3:51 AM, Luis Lloret <[hidden email]> wrote:
Hi,

Are you sending the full sysex message in one go? That is, in one fuction
call, or are you sending it split in a number of calls?




--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/sysex-failure-tp7630588p7630597.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/



--
_______________________________
Brian Heim
<a href="tel:(507)%20429-6468" value="+15074296468" target="_blank">507-429-6468

B.M. '14 University of Texas at Austin
M.M. '16 Yale School of Music




--
_______________________________
Brian Heim
507-429-6468

B.M. '14 University of Texas at Austin
M.M. '16 Yale School of Music
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sysex failure

lance.bantham
Aha, thank you..

On Wed, Feb 8, 2017 at 1:50 PM, brian heim <[hidden email]> wrote:
Try it with [~ok]. Also, just FYI, you're missing an `r` in that array (`1623` instead of `16r23`). I personally prefer the `0x` prefix for hex values since that is somewhat standard for hex literals across languages, and it's easier to see when you've missed it (having `16` all over the place adds extra noise to your code).

From the docs:

http://doc.sccode.org/Tutorials/A-Practical-Guide/PG_08_Event_Types_and_Parameters.html

"NOTE: Very important: Arrays normally multi-channel expand in patterns. So, you must wrap the Int8Array inside another array to prevent this. Write [Int8Array[...]], not just Int8Array[...]."

On Wed, Feb 8, 2017 at 1:30 PM, Lance Bantham <[hidden email]> wrote:
Hey there, 
I simplified the code to the barest bones and still get the error..

Maybe this will illustrate? 

MIDIClient.init;
MIDIIn.connect;
m = MIDIOut(0);

~ok = Int8Array[ 16rf0, 16r2b, 16r01, 16r01, 1623, 16r00, 16r00, 16r00, 16rf7];


Pbind(
\type, \midi,
\midiout, m,
\midicmd, \sysex,
\array, ~ok,
\dur, 0.2,
).play;


On Wed, Feb 8, 2017 at 9:49 AM, brian heim <[hidden email]> wrote:
I think you must be accidentally converting to a normal array at some point, which is admittedly easy to do. _SendSysex will give a "Wrong Type" error message if and only if you're not giving it an Int8Array. Try this: if your call to sysex looks like this:

myMIDIOut.sysex(potato);

Try adding this line before it:

potato.class.postln;

And tell us what you see. :)

-Brian

On Wed, Feb 8, 2017 at 3:51 AM, Luis Lloret <[hidden email]> wrote:
Hi,

Are you sending the full sysex message in one go? That is, in one fuction
call, or are you sending it split in a number of calls?




--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/sysex-failure-tp7630588p7630597.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/



--
_______________________________
Brian Heim
<a href="tel:(507)%20429-6468" value="+15074296468" target="_blank">507-429-6468

B.M. '14 University of Texas at Austin
M.M. '16 Yale School of Music




--
_______________________________
Brian Heim
<a href="tel:(507)%20429-6468" value="+15074296468" target="_blank">507-429-6468

B.M. '14 University of Texas at Austin
M.M. '16 Yale School of Music

Loading...