View Single Post
Old 05-24-2017, 11:02 AM   #10
goldenarpharazon
Human being with feelings
 
Join Date: Feb 2016
Posts: 189
Default

Quote:
Originally Posted by ljekio View Post
I can't get value of osc messages. Confused with this.
Look at this example of OSC http://forum.cockos.com/showpost.php...&postcount=323 This OSCII-bot console example from OSCII-bot shows the OSC string sent (in this case from Reaper) and the variable parameters.


You should see something similar, but with /OSC1 in the strings in your own console. Posting the console output might help to help?


Probably you are trying to send something like "/OSC1 100" with /OSC1 as the message pattern and say 100 as the variable parameter. It is this combination of message pattern and variable parameter(s) that forms the basis of matching - see this ebook and its subsequent pages for a simple explanation of OSC message formats.

Quote:
Originally Posted by ljekio View Post
Change of third byte doesn't cause any changes of output. I tried any static value there.
This is strange. Code like the example below should just work and send a midi event defined by the integers in the code provided they are small enough fit in a valid and meaningful Midi byte.

Code:
	msg1 = $xBF;  // status byte
	msg2 = 2;     // a value
	msg3 = 3;     // another value
	midisend(midi_out);
However note that this code below may well not work properly if fmt0 is undefined in value if it has never been set to something by oscmatch();

Code:
	msg1 = $xBF;  // status byte
	msg2 = fmt0;  // danger here if fmt0 value is not correct as a byte value
	msg3 = 3;     // another value
	midisend(midi_out);

Last edited by goldenarpharazon; 06-04-2017 at 02:15 AM. Reason: Correct the code examples to have a valid Midi status byte
goldenarpharazon is offline   Reply With Quote