Open rhaleblian opened 1 year ago
John Leone wrote:
Hi Ray,
My name is John and I'm just getting into microcontrollers and computer music. I came across your TouchOSC addition to the transmorgriFX and I was having trouble creating an OSC connection between my computer and the Bela.
Would it be okay if I asked you a few questions? The documentation I've found only talks about OSC while using PureData not C++.
Thank,
John
Ray wrote:
Hi John. Some initial notes: You should use the "osc" branch of https://github.com/rhaleblian/transmogriFX_bela . https://github.com/rhaleblian/transmogriFX_bela/blob/osc/src/osc.h is the interface to the code that listens for OSC events. https://github.com/rhaleblian/transmogriFX_bela/blob/osc/etc/touchosc/transmogriFX.touchosc is the TouchOSC layout that works with it. Look at the code for the port number you need to set in TouchOSC to reach the Bela. It can be confusing.
John wrote:
Ray,
Thank you so much for your response. I've pushed the repository with the respective osc.h code. I'm still having trouble linking touchOSC and Bela due to my lack of networking knowledge. Could you specify where exactly in the code I would change the port number and where in touchOSC I would match it? image.png I see this osc.ini file and I'm not sure if I should change the remoteip to my own local ip or the generic 127.0.0.1
image.png In touchOSC I'm not sure which port corresponds to localport and remoteport in the osc.ini file.
I feel like I'm very close to figuring this out, just this last networking problem I have to deal with.
Thank you again Ray.
Ray wrote:
You are probably close. Bear with me because I also still get this wrong.
In TouchOSC: The IP address is the address of your Bela. Send Port is the "localport" as set on the Bela side. Receive Port is "remoteport" on the Bela side.
On the Bela side, "Host" is the IP address of the machine running TouchOSC.
I actually wish the port numbers in osc.ini were starting out switched.
A way to get a feel for this is to use a some app on a regular desktop computer that uses OSC and get TouchOSC to work with it. Then you have an analogue working example you can map to the Bela.
There is another project I have that listens for OSC senders all over your LAN so there is less setup (with Avahi/Bonjour) but that bit isn't broken out to just run on a Bela. Would be nice though, right?
Document this or use MDNS to discover the OSC sender. What follows is a current support/debugging scenario.