Skip to content
forked from neophob/ArdOSC

Open Sound Control(OSC) Library for Arduino (tested Arduino 1.0-rc1 & Arduino Ethernet)

License

Notifications You must be signed in to change notification settings

MarkKropf/ArdOSC

 
 

Repository files navigation

#Multi-Toggle/Push Support Added Wildcard callbacks are now supported for use with multi-toggle/push controls. Insert a ^ at the end of a callback to enable a partial match callback.

server.addCallback("/octobar/togglearray/^",&togglearray);

Here's an example using a multitoggle array from ToucHOSC:

void togglearray(OSCMessage *_mes) {
  int colSize=_mes->getAddressArgSize(0);
  char column[colSize+2]; // string memory allocation
  _mes->getAddressArg(0,column);
  
  int rowSize=_mes->getAddressArgSize(1);
  char row[rowSize+2];
  _mes->getAddressArg(1,row);

  float val=_mes->getArgFloat(0);
}

Important Note

Arduino v1.0.1 (and maybe newer) have a malloc/free bug!

Check:

Howto fix this issue:

  • go to issue #468
  • download malloc.c
  • copy malloc.c to arduino-1.0.1/hardware/arduino/cores/arduino

Restart the Arduino IDE!

#Library For Arduino v1.0.1

tested Arduino Ethernet http://www.arduino.cc/en/Main/ArduinoBoardEthernet

Installation ArdOSC folder into ..

Mac

~/Documents/Arduino/libraries/

Win

MyDocuments\Arduino\libraries\

http://www.arduino.cc/en/Hacking/Libraries

#Release History ArdOSC 2.1 - OSC Library for Arduino.

This library works with arduino v1.0.1
2011/09/19 version 2.1 added callback function
                       added osc message argument function
2010/02/01 version 2.0 changed Project OSCClass -> ArdOSC
2009/03/22 version 1.0.1 add errror process。change Doc.
2009/03/21 version 1.0.0

About

Open Sound Control(OSC) Library for Arduino (tested Arduino 1.0-rc1 & Arduino Ethernet)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 50.6%
  • Other 21.6%
  • Java 15.7%
  • C 12.1%