OSC connection with Max/Msp/Jitter

sjeon01's Avatar

sjeon01

23 Apr, 2013 10:39 PM

Hello,

I am trying to use the OSC in Nodebox 3 and connect with Max/Msp/Jitter to send live signals back and forth between the two programs, but the page that describes the method (http://nodebox.net/code/index.php/OSC) doesn't seem to be telling enough to get my project going. Could you tell me more detailed instructions on this ? Thank you.

  1. Support Staff 1 Posted by Frederik De Ble... on 24 Apr, 2013 08:42 AM

    Frederik De Bleser's Avatar

    The documentation page you mentioned is for NodeBox 1, and so wouldn't be useful for NodeBox 3.

    For NodeBox 3, the OSC nodes are labelled "experimental": that means they lack documentation and can change.

    Here's a short tutorial on how to listen to events FROM Max MSP:

    1. In Preferences, make sure "Device Support" is checked. Restart NodeBox if needed.
    2. In File > Devices, create a OSC device. In the first field (where it says "-1" enter the port NodeBox should listen to). Press start. (You can also enable auto-start if you want to start the OSC listener automatically when the file is opened).
    3. Start Max MSP and create a "send OSC" node (or whatever it is called). Use the same port to send to.
    4. In NodeBox, create a "Receive OSC" node. Leave the device name as-is. Optionally, change the address prefix to only listen to messages under an address (by default it listens to everything).
    5. If you want the arguments to have names, you can fill them in under the "arguments" port. For example, if you receive events with an x,y coordinate, use "x,y" (without the quotes) in the arguments field.

    I've included an example that uses PD to send OSC events (I don't have Max MSP).

  2. Frederik De Bleser closed this discussion on 24 Apr, 2013 08:42 AM.

  3. sjeon01 re-opened this discussion on 24 Apr, 2013 03:32 PM

  4. 2 Posted by sjeon01 on 24 Apr, 2013 03:32 PM

    sjeon01's Avatar

    Hi Frederik,

    Thank you so much for your help, I am really enjoying this tool a lot.

    I have tried what you suggested for connecting nodebox and max msp, and here I am attaching what I have so far. So, I followed your instruction and created my max patch using the "udpsend" node, (it seems like it's working with vvvv here, http://www.youtube.com/watch?v=NR0F3uCzTmo) and also set up my node in nodebox. but, I don't see they are connected yet, so here I am asking you some more questions. ; )

    what I am not sure about current state is

    1. whether the address prefix in the receive_osc node should reference the folder structure of the max map file, like the way I have right now.

    2. also what kind of data the arguments in the receive_osc node can have when receiving numbers from max msp. I know you had set up size, hue and rotation in your example file, but I am not sure how these can be received from max msp.

    3. maybe this has something to do with the PD file that you sent me? I have no idea what to do with it except that knowing that is a pure data file.

    Thank you in advance, I look forward to hearing from you.

    Best,
    Sang Un Jeon

  5. Support Staff 3 Posted by Frederik De Ble... on 25 Apr, 2013 01:14 PM

    Frederik De Bleser's Avatar
    1. The address prefix is not the file path. You could see it as a relative URL. In my PD example, the address is set to "/output", and so that's what I listen for in NodeBox. I'm not really sure how this would work in Max/MSP. A quick Google Search I could find this blog post, but I don't really understand it.
    2. The arguments are always numbers, I think.
    3. I made the example in PD because I don't know / have Max/MSP. PD is free software, so you might consider it if you can't get it working in Max.
  6. 4 Posted by edon on 25 May, 2013 02:45 AM

    edon's Avatar

    Is it possible to send OSC from Nodebox3 to PD ??

  7. Support Staff 5 Posted by Frederik De Ble... on 28 May, 2013 10:06 AM

    Frederik De Bleser's Avatar

    Currently, sending OSC data works, but is very hacky. The problem is that NodeBox only calculates the rendered node and its dependencies. This means that if you have some node in your network sending OSC events, and it is not the rendered node, it won't work.

    A trick is to combine your output with the "send osc" node. This way you can send message and have NodeBox show output at the same time.

    Again, this is a hack. We're thinking on how we can make this work correctly. We reserve the right to change the way sending and receiving works: that's why the nodes are labelled "experimental".

    Best,

    F

  8. Frederik De Bleser closed this discussion on 28 May, 2013 10:06 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

16 Jun, 2022 05:30 AM
15 Jun, 2022 06:03 AM
06 Jun, 2022 01:07 PM
02 Jun, 2022 11:58 PM
30 May, 2022 07:48 AM

 

24 May, 2022 06:27 PM
20 May, 2022 04:12 PM
05 May, 2022 02:25 AM
03 May, 2022 04:46 AM
01 May, 2022 09:22 AM
18 Apr, 2022 09:01 PM