OSC In CHOP
The OSC In CHOP is used to accept Open Sound Control Messages. OSC In can be used to accept messages from either a 3rd party application which adheres to the Open Sound Control specification (http://www.cnmat.berkeley.edu/OpenSoundControl/). OSC In is based on a connection-less system, meaning that it can accept multiple messages for any number of sources at the same time. The user must specify a port number which OSC In will look for incoming messages. This port must not have anything running on it before OSC In attempts to use it. OSC CHOPs in TouchDesigner use the UDP transport protocol.
There are options which allow the user to adjust the default message queuing system to optimize it for their specific network conditions and usage needs. The Min/Max Target size specifies a range which the queue attempts to keep the buffer size at in seconds. Increasing the Queue Adjust Time will determine how long the queue can be outside that range before it tries to correct it.
If the user wishes to use OSC In to detect when messages are arriving, there is a Pulse Mode toggle which will read a single sample of any incoming message when it arrives and displays the pulse reset values any other time. This is useful for syncing beats between TouchDesigner and another applications.
NOTE for Windows OS - If experiencing connection issues make sure Windows Firewall is disabled.
Parameters - OSC In Page
active - While on, the CHOP receives information sent to the network port. While Off, no updating occurs. Data sent to the port is lost.
protocol - ⊞ - The network protocol to use. Refer to the Network Protocols article for more information.
- Messaging (UDP)
- Multi-Cast Messaging (UDP)
- Reliable Messaging (UDT Library)
netaddress - When using Multicast, this is the address that OSC In will listen for packets on.
port - The port which OSC-In will accept packets on.
localaddress - Specify an IP address to receive on, useful when the system has mulitple NICs (Network Interface Card) and you want to select which one to use.
OSC Address Scope
oscaddressscope - 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 iPhone or iOS app like mrmr. See Pattern Matching for the syntax of the possible channel name patterns.
Use Global Rate
useglobalrate - When on, the CHOP will sample at the global sample rate specified by TouchDesigner.
Default Sample Rate
samplerate - When Use Global Rate is off, this parameter is used to determine the sample rate of this CHOP.
queued - Turn this on to enable queuing to help avoid lost messages. Use the parameters below to setup the queue behavior.
queuevariance - The range around the Queue Target that's acceptable. If the queue's length is within the target and variance range, the CHOP will not bother to adjust the queue length.
Queue Variance Unit
queuevarianceunit - Choose between using Samples, Frames, or Seconds as the units for this parameter.
maxqueue - The maximum size of the queue when full. Incoming samples will be dropped if the maximum queue is reached.
Max Queue Unit
maxqueueunit - Choose between using Samples, Frames, or Seconds as the units for this parameter.
Queue Adjust Time
adjusttime - Specifies how often to repeat/drop a samples in order to get closer to the queue target range. If the value = 1 and the units = seconds, then it will try to repeat/drop a sample once per second to maintain the queue target set in the Minimum Target and Maximum Target parameters above.
adjusttimeunit - Choose between using Samples, Frames, or Seconds as the units for this parameter.
Strip Prefix Segments
resetchannels - Deletes all channels when set to On, new channels will not be added until Reset Channels is turned Off.
Reset Channels Pulse
resetchannelspulse - Instantly deletes all channels.
resetvalues - Resets all channel values to 0 when On, channel values will not be updated until Reset Values is turned Off.
Reset Channels Pulse
resetchannelspulse - Instantly resets all channels to 0.
Parameters - Common Page
timeslice - Turning this on forces the channels to be "Time Sliced". A Time Slice is the time between the last cook frame and the current cook frame.
scope - To determine which channels get affected, some CHOPs use a Scope string on the Common page.
Sample Rate Match
srselect - ⊞ - Handle cases where multiple input CHOPs' sample rates are different. When Resampling occurs, the curves are interpolated according to the Interpolation Method Option, or "Linear" if the Interpolate Options are not available.
- Resample At First Input's Rate
first- Use rate of first input to resample others.
- Resample At Maximum Rate
max- Resample to the highest sample rate.
- Resample At Minimum Rate
min- Resample to the lowest sample rate.
- Error If Rates Differ
err- Doesn't accept conflicting sample rates.
exportmethod - ⊞ - This will determine how to connect the CHOP channel to the parameter. Refer to the Export article for more information.
- DAT Table by Index
datindex- Uses the docked DAT table and references the channel via the index of the channel in the CHOP.
- DAT Table by Name
datname- Uses the docked DAT table and references the channel via the name of the channel in the CHOP.
- Channel Name is Path:Parameter
autoname- The channel is the full destination of where to export to, such has
autoexportroot - This path points to the root node where all of the paths that exporting by Channel Name is Path:Parameter are relative to.
exporttable - The DAT used to hold the export information when using the DAT Table Export Methods (See above).