Skip to content

QS1 osc cmd

maybites edited this page Sep 12, 2022 · 1 revision

<osc sendto="(string)">/address/pattern command arg1 arg2 {expr}</osc>

Simple Example

<anim name="simpleRamp" duration="5s" fadeout="2s">
    <track name="t1">0. 1.</track>
    <osc>/address/pattern ramp {t1}</osc>
</anim>
<osc sendto="master">/animation/pattern executed</osc>
<wait anim="simpleRamp"/>

Content

Any List of Strings, numbers and {expr}

Attributes

  • sendto = if specified, it will add the sendto string to the output list (see below). if not specified, the sendto string will be 'default'

Child Commands

  • None

Explained

Like all messages, <osc> will create a Max-message that exits at the left outlet of the QueScript Max-object. With the above example it would be a list that looks like this:

osc default /address/pattern ramp 0.
osc master /animation/pattern executed

(if the above animation has just started).

It is up to the implementing programmer to decide what to do with it. It is intended to send it to a 'route' - object to separate the 'osc' from the other messages and then to pass it to a second 'route' to send via UDP it to different servers/ports, where '/address/pattern' is interpreted as the osc address-pattern.

Clone this wiki locally