Old 11-15-2014, 02:42 PM   #121
Banned
Human being with feelings
 
Banned's Avatar
 
Join Date: Mar 2008
Location: Unwired (probably in the proximity of Amsterdam)
Posts: 4,868
Default

Quote:
Originally Posted by mertznet View Post
I am working on using OSCII bot to convert MIDI messages into OSC to control my X32 Rack mixer. I am finding that if I send a single OSCsend statement in response to a MIDI command, things work properly. If I issue more than one OSCsend in response to a single MIDI command though, the OSC command becomes a bundle and gets ignored by the X32. I have tried a number of things but haven't been able to develop a workaround.

I hope this makes sense. Any suggestions or recommendations?
When configuring an OSC output, you can (optionally) specify the maximum packet size. Perhaps try setting this to zero to prevent OSCII-bot from sending OSC messages as bundles, doing something like (adjust where appropriate):

Code:
@output OSC_to_X32 OSC "127.0.0.1:8000" 0 0
Quoted from Justin's sample script:
Quote:
// @output lines:
// usage:
// @output devicenameforcode OSC "127.0.0.1:8000" [maxpacketsize] [sleepamt]
// @output devicenameforcode MIDI "substring match" [skip]

// maxpacketsize is 1024 by default, can lower or raise depending on network considerations
// sleepamt is 10 by default, sleeps for this many milliseconds after each packet. can be 0 for no sleep.

@output localhost OSC "127.0.0.1:8000"
__________________
˙lɐd 'ʎɐʍ ƃuoɹʍ ǝɥʇ ǝɔıʌǝp ʇɐɥʇ ƃuıploɥ ǝɹ,noʎ
Banned is offline   Reply With Quote
Old 11-15-2014, 03:35 PM   #122
mertznet
Human being with feelings
 
Join Date: Nov 2014
Posts: 4
Default

Quote:
Originally Posted by Banned View Post
When configuring an OSC output, you can (optionally) specify the maximum packet size. Perhaps try setting this to zero to prevent OSCII-bot from sending OSC messages as bundles, doing something like (adjust where appropriate):

Code:
@output OSC_to_X32 OSC "127.0.0.1:8000" 0 0
Quoted from Justin's sample script:
Thanks for the suggestion. Alas, I already tried that. I am not sure if there is some other code that could be sent to command OSCII bot to start a new "line". Almost like "\n" is for printing commands.
mertznet is offline   Reply With Quote
Old 11-15-2014, 07:28 PM   #123
mertznet
Human being with feelings
 
Join Date: Nov 2014
Posts: 4
Default

I did manage a clumsy and inelegant workaround. I found that if I put the second oscsend statement inside @timer and kept the first oscsend statement inside @midimsg I could make it work. However, I had to add a chunk of code to keep the @timer one from running right away. At least it works. It would be so much nicer to avoid the ugly workaround.
mertznet is offline   Reply With Quote
Old 11-16-2014, 07:21 PM   #124
mertznet
Human being with feelings
 
Join Date: Nov 2014
Posts: 4
Default

It seems the best workaround I was able to come up with is to put all OSCsend statements into the @timer section. Then set up the code so that the sends are essentially queued up and only one executes on each timer pass. This approach seems to be the most elegant method of working around the "bundle" quirk with my X32.
mertznet is offline   Reply With Quote
Old 12-13-2014, 03:44 PM   #125
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 10,480
Default

Try using 1 for the max packet size, rather than 0, the latter may be interpreted as "use default", off the top of my head...
Justin is offline   Reply With Quote
Old 04-18-2015, 03:53 PM   #126
flipotto
Human being with feelings
 
flipotto's Avatar
 
Join Date: Feb 2007
Posts: 498
Default

Hey, Ok so I downloaded and run this, I copy banned's monitorMIDI+OSC-IO.txt to appdata folder.
The program runs with a black window.
I don't know how to load different programs with this.
Nor how to get the midiosc monitor to work.
I have and osc control surface output to 127.0.0.1:9000 but nothing shows up in the monitor window, when I move a slider.

What am I doing wrong?
__________________
KeyMce/GenMce - pc keyboard/midi to Mackie control emulation (built with ahk). Also - an ahk script to build your own midi programs.
flipotto is offline   Reply With Quote
Old 04-18-2015, 05:20 PM   #127
Banned
Human being with feelings
 
Banned's Avatar
 
Join Date: Mar 2008
Location: Unwired (probably in the proximity of Amsterdam)
Posts: 4,868
Default

Quote:
Originally Posted by flipotto View Post
Hey, Ok so I downloaded and run this, I copy banned's monitorMIDI+OSC-IO.txt to appdata folder.
The program runs with a black window.
I don't know how to load different programs with this.
Well, apparently, you did - that black window is entirely expected.

You load different scripts simply by putting them in your scripts folder (~/Library/Application Support/OSCII-bot folder on Mac OS X, and for Windows on that AppData you mentioned, I assume).
Quote:
Originally Posted by flipotto View Post
Nor how to get the midiosc monitor to work.
I have and osc control surface output to 127.0.0.1:9000 but nothing shows up in the monitor window, when I move a slider.

What am I doing wrong?
Could be a number of things, I guess... fwiw, it still works fine here:



Perhaps try uncommenting line 10:
Code:
//@input osc_localhost	OSC "localhost:9000" // localhost = 127.0.0.1 (IPv4)
-->
Code:
@input osc_localhost	OSC "localhost:9000" // localhost = 127.0.0.1 (IPv4)
__________________
˙lɐd 'ʎɐʍ ƃuoɹʍ ǝɥʇ ǝɔıʌǝp ʇɐɥʇ ƃuıploɥ ǝɹ,noʎ
Banned is offline   Reply With Quote
Old 06-06-2015, 08:29 AM   #128
Banned
Human being with feelings
 
Banned's Avatar
 
Join Date: Mar 2008
Location: Unwired (probably in the proximity of Amsterdam)
Posts: 4,868
Default

Quote:
Originally Posted by TonE View Post
Did anybody create a tool for send control from midi using oscii-bot?

midi to oscii-bot to osc to reaper to send amount? Solving the send issue of Reaper from midi.
Controlling sends/receives using MIDI is part of e.g. the (more comprehensive) script I wrote for the Peavey StudioMix. But if you're only interested in controlling sends, it should be quite easy to write a script that replicates the functionality of that Pd patch which I created for this specific purpose.

__________________
˙lɐd 'ʎɐʍ ƃuoɹʍ ǝɥʇ ǝɔıʌǝp ʇɐɥʇ ƃuıploɥ ǝɹ,noʎ
Banned is offline   Reply With Quote
Old 11-12-2017, 12:09 PM   #129
goldenarpharazon
Human being with feelings
 
Join Date: Feb 2016
Posts: 71
Default Version 0.4 Release of OSCII-bot

Introduces
• Bidirectional OSC support (send to OSC listens, receive from OSC sends)
• macOS version compiled with latest SDK + Xcode (should still run on 10.6 though)
• Latest WDL/EEL2 changes/fixes since 2014

Context and details in this post/thread
https://forum.cockos.com/showpost.ph...21&postcount=7
V0.4 download is at
http://www-dev.cockos.com/oscii-bot/
goldenarpharazon is offline   Reply With Quote
Old 11-12-2017, 02:51 PM   #130
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 3,478
Default

Quote:
Originally Posted by goldenarpharazon View Post
Introduces
• Bidirectional OSC support (send to OSC listens, receive from OSC sends)
WOW !!!
That was fast !!
Just 12 hours after I found that the previous version would not work for me !

I'll test ASAP.

... Works perfectly for me.

Thanks a lot,
-Michael
__________________
www.boa-sorte.de

Last edited by mschnell; 11-13-2017 at 03:52 AM.
mschnell is online now   Reply With Quote
Old 11-12-2017, 03:03 PM   #131
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 3,478
Default

Quote:
Originally Posted by goldenarpharazon View Post
Introduces
• Latest WDL/EEL2 changes/fixes since 2014
Great !
-Michael
__________________
www.boa-sorte.de
mschnell is online now   Reply With Quote
Old 11-12-2017, 11:24 PM   #132
fundorin
Human being with feelings
 
fundorin's Avatar
 
Join Date: Feb 2014
Location: Russia
Posts: 195
Default

Quote:
Originally Posted by mschnell View Post
WOW !!!
That was fast !!
Just 12 hours after I found that the previous version would not work for me
Lucky you. It was a couple of years, since previous version didn't work for me (no Sysex support). And there's still no Sysex support in the update. 😒
fundorin is offline   Reply With Quote
Old 11-13-2017, 03:51 AM   #133
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 3,478
Default

Quote:
Originally Posted by goldenarpharazon View Post
Introduces...
goldenarpharazon. if you are entitled to do so, you might want to enhance the “OSCII-bot code reference” website → https://www.cockos.com/oscii-bot/oscii-bot-doc.html similar to this suggestion (in case my guessing of how OSCII-bot 0.4 works is correct).

@input : specifies a device to open for input. Usage:
@input devicehandle MIDI "substring devicename match" [skip_count]

@input devicehandle OSC "1.2.3.4 : port"
>>> the IP address given denotes the interface in the system OSCII-bot runs in, the port given is the port OSCII-bot opens to listen on. Hence the sending site needs to be configured to use this address and port to send OSC messages to OSCII-bot. <<<

@input devicehandle OSC "* : port"
>>> use any IP interface in the system OSCII-bot runs in <<<

>>> if an OSC message is detected at a port defined by “@input devicehandle OSC ...”, or automatically assigned by “@output devicehandle OSC ...”, the @oscmsg event handler EEL code is executed, and oscstr and oscparm() will provide the content received, msgdev will provide the devicehandle. <<<

>>> if oscsend() is used with a devicehandle defined by “@input devicehandle OSC ...”, the OSC message will be sent to the last IP-address and port number an OSC messages has been received from via this device. This is useful to have OSCII-bot act as a server-like OSC instance, doing bidirectional communication. <<<

@input devicehandle OMNI-MIDI -- receives all MIDI received by other scripts
@input devicehandle OMNI-OSC -- receives all OSC received by other scripts
@input devicehandle OMNI-MIDI-OUTPUT -- receives all MIDI sent by other scripts
@input devicehandle OMNI-OSC-OUTPUT -- receives all OSC sent by other scripts

@output : specifies a device to open for output. Usage:
@output devicehandle OSC "host : port" [maxpacketsize (def=1024)] [sleepinMS (def=10)]
>>> the host IP address and port number define the target site to receive OSC messages sent by OSCII-bot via this device. The sending IP address for such messages will be the IP address of the interface in the system OSCII-bot runs in. The sending port number of the messages will be a random number that is chosen when OSCII-bot starts the script. <<<

>>> The port number acquired by “@output devicehandle OSC "host : port" ...“ will also be opened to listen to received OSC messages on. For incomming OSC messages to this port, the @oscmsg event handler EEL code is executed, and msgdev will provide the devicehandle. This is useful to have OSCII-bot attach to a server-like OSC instance (such as a hardware based digital mixer), doing bidirectional communication.


@output devicehandle MIDI "substring match" [skip]
__________________
www.boa-sorte.de
mschnell is online now   Reply With Quote
Old 11-13-2017, 02:55 PM   #134
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 10,480
Default

Just posted v0.5 with (experimental) SysEx support to http://www-dev.cockos.com/oscii-bot .. Also updated the docs on that page. It'll go to the main cockos.com soon too.
Justin is offline   Reply With Quote
Old 11-13-2017, 11:26 PM   #135
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 3,478
Default

Quote:
Originally Posted by Justin View Post
It'll go to the main cockos.com soon too.
Maybe somehow OSCIIbot could be integrated in Reaper, so that
- it's not necessary to start another executable: seamless integration of Midi and OSC based external hardware by just activating an appropriate script.
- we can use a modified version of the great IDE provided for JSFX
- scripts can be managed by ReaPack.

Supposedly this would mean to enhance ReaScript by a Midi and OSC API that can manage external communication. (I never did ReaScript: can ReaScripts be free-running - like JSFX or OSCIIbot, at all ? )

Michael (just dreaming)
__________________
www.boa-sorte.de

Last edited by mschnell; 11-21-2017 at 10:26 AM.
mschnell is online now   Reply With Quote
Old 11-20-2017, 03:16 PM   #136
goldenarpharazon
Human being with feelings
 
Join Date: Feb 2016
Posts: 71
Default OSCII-bot V0.6 release

•Now packaged separately for each platform and without source code (source available via git)
•Add get_device_open_time() to detect MIDI device re-opens
•Fix multiline comment parse bug

More details and download via
http://cockos.com/oscii-bot/
goldenarpharazon is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.