Open Sound Control (OSC)

0 favourites
  • 15 posts
From the Asset Store
10 Orchestral Soundtracks / ~2 mins each / 11 audio clips in total
  • Does anyone know how plausible it would be have a way to send/receive Open Sound Control data dynamically from a Construct 2 game?

    e.g. Having UDP send and receives like in Max/MSP and PD -- with a user-definable port number

    Cheers!

  • birdlantern : you need to use a bridge, because JS is only going to speak HTTP/HTTPS or Websocket. So you need a PHP/Flash/Java/whatever proxy, to send informations to, which in turn is going to send OSC packets.

  • Maybe wait and/or contribute to webRTC ?

  • Pode

    Thanks for that. I don't really know much about that kind of thing -- how would I set up something like that? Is it very difficult to do?

    Kyatric

    Is this going to be built into Construct 2 in the future?

  • Well first it's going to be built in browsers.

    From there, it makes it possible to be implemented in C2.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Kyatric : having dealed with WebRTC support in browser those last weeks for plugin dev, I can say that it's urgent to wait ;). Not everything is working, FF support isn't on par, etc...

    birdlantern : I have done some research for you ! You can apparently use a Flash file to speak to an OSC server. I'm finishing a plugin now for a client, and working on Spriter plugin also, so I won't be able to help you with that for the moment, but there's something there : benchun.net/projects/flosc. It's a Java server, bridging with a Flash client to exchange OSC messages. I don't think there's a way to send OSC message directlty from the client, because you need to forge packet that aren't websocket or HTTP, so outside of the Javascript's range (and I don't know if somebody tackled the work to forge packet with Flash's Socket lib...)

  • Pode

    Hi there,

    thanks, that's very kind of you! So are you saying that I could use Flash with flosc as an alternative to Construct 2, or that there may be a way to get Construct 2 to communicate with a Flash/flosc application?

  • birdlantern : you can use Construct2 to design your application. Install then flosc on a machine somewhere. Back to your Construct2 app, you can add a plugin that deals with the Flash => flosc part.

    That plugin (that somebody needs to code) is going to simply do a Javascript call to the Flash applet (since by using ExternalInterface(), Flash and JS can communicate inside the same web page). That Flash applet is then going to have discussion with flosc, and is going to give that information back to the Javascript plugin. Your Construct2 app can then display that info.

    The plugin I'm finishing, having no relation with yours, is doing exactly that JS<->Flash part. When it's done and uploaded here, I can explain to somebody (maybe you) how to replicate that same kind of functionnality.

    If nobody can tackle it, I can do it, but I can't do it now, because of my work...

  • Pode

    Great! I look forward to seeing how it all works.

    Perhaps this is worth posting elsewhere in the forum, but an added incentive to get this working is that Open Sound Control could be used to control a Construct 2 game with Wii remotes and Kinect sensors!!

  • Hi birdlantern

    I am currently working on a midi solution using a simple, small, midi web server that sends and receives raw midi from the browser. Will keep you updated.

  • Awesome! Yeah let me know when you get it happening :)

  • Hi birdlantern

    I am currently working on a midi solution using a simple, small, midi web server that sends and receives raw midi from the browser. Will keep you updated.

    <img src="smileys/smiley3.gif" border="0" align="middle" /> Is just what I'm looking for! hopefully soon have news ...

  • Try this: jazz-soft.net/doc/Jazz-Plugin

    have pretty much decided to just use this and prompt users to install a browser plugin

  • samgreene.com/content/browser-controller

    this has bumped my interest again...

  • I'm curious if anyone has managed to integrate Open Sound Control into Construct 2?

    I'm trying to integrate data coming from an external controller (Muse brain-sensing headband) but I can only send data via OSC. Anyone has any tips on how I might be able to integrate this into Construct 2?

    Thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)