SendOSC
Extends:
Owned by the Server, this is an object that you call .msg or .bundle on to send OSC.
The Server subscribes to this and does the actual sending. You may also subscribe to this for debugging, logging or entertainment purposes.
Method Summary
Public Methods | ||
public |
bundle |
|
public |
deltaTimeTag(delta: Number, now: Date): * deltaTimeTag(secondsFromNow, [now]) |
|
public |
msg(message: *) |
|
public |
subscribe(onNext: *, onError: *, onComplete: *): Rx.Disposable Subscribe to monitor OSC messages and bundles sent. |
Public Methods
public bundle(time: null | Number | Array | Date, packets: Array) source
bundle
Note that in SuperCollider language a number is interpreted as relative seconds from 'now'; here is is interpreted as a unix timestamp. See deltaTimeTag
Params:
Name | Type | Attribute | Description |
time | null | Number | Array | Date | null: now, immediately Number: if less than 10000 then it is interpreted as number of seconds from now. It it is larger then it is interpreted as a unix timestamp in seconds Array: [secondsSince1900Jan1, fractionalSeconds] Date |
|
packets | Array | osc messages as [address, arg1, ...argN] or bundles as Objects: .timeTag .packets |
public deltaTimeTag(delta: Number, now: Date): * source
deltaTimeTag(secondsFromNow, [now])
Make NTP timetag array relative to the current time.
Usage: server.send.bundle(server.send.deltaTimetag(1.0), [ ... msgs ]);
Return:
* |
public msg(message: *) source
Params:
Name | Type | Attribute | Description |
message | * |
public subscribe(onNext: *, onError: *, onComplete: *): Rx.Disposable source
Subscribe to monitor OSC messages and bundles sent.
Events are: {type: msg|bundle: payload: Array}
Params:
Name | Type | Attribute | Description |
onNext | * | ||
onError | * | ||
onComplete | * |
Return:
Rx.Disposable |
|