OSC In DAT
From Derivative wiki
Summary
The OSC In DAT receives and parses full Open Sound Control packets using UDP. Each packet is parsed and appended as a row in the DAT's table. The table is FIFO "fisrt-in first-out" and limited to parameter-set number of lines. An optional script may be run for each packet received. Each packet/row represents either one OSC message, or an entire OSC bundle. Each argument is translated into readable ASCII text.
See also OSC In CHOP, OSC Out CHOP, OSC and iPhone.
The supported argument tag types are:
- i int32
- f float32
- s OSC-string
- b OSC-blob
- h 64 bit big-endian two's complement integer
- t OSC-timetag
- d 64 bit ("double") IEEE 754 floating point number
- S alternate type represented as an OSC-string
- c ASCII character
- r 32 bit RGBA color
- m 4 byte MIDI message
- T True
- F False
- N Nil
- I Infinitum
- [ Beginning of an array
- ] End of an array
In the case of multi-vectored arguments (example "blob", "midi", "rgb", etc), the list of values is enclosed in double quotes. In the case of unknown argument types, a quoted list of decimal values representing the bytes of that argument are included instead.
Parameters
Network Port /port - The port which OSC-In will accept packets on.
Active /active - While on, the DAT receives information sent to the network port. While Off, no updating occurs. Data sent to the port is lost.
Address Scope /address - To reduce which channels are generated, you can use channel name patterns to include or exclude channels. For example, ^*accel* will exclude accelerometer channels coming in from an Apple iPod Touch or iPhone app like mrmr. See Pattern Matching for the syntax of the possible channel name patterns.
Include Type Tag /typetag - Includes the argument list type tag in each message. It includes the parameter type keywords (in case the parsing application needs to identify parmameter types).
Script DAT /script - Runs this DAT for every message logged.
Execute From /executeloc - Determines the location the script is run from.
- Current Node
/current- The script is executed from the current node location. - Script DAT
/here- The script is executed from the DAT specified in the Script DATparameter above. - Specified Component
/comp- The script is executed from the component specified in the From Componentparameter below.
From Component /component - The component location used when Execute From is set to Specified Component.
Clamp Output /clamp - Clamps the number of rows to a maximum number.
Maximum Lines /maxlines - Specifies how many rows of messages to keep.
Clear Output /clear - Clears the table. To clear with a script command, here is an example: opparm -c /oscin1 clear
| ||||||||||||||

