SpatDifPlayer:
Filter:
3Dj/Classes (extension) | Libraries > 3Dj

SpatDifPlayer
ExtensionExtension

a SpatDifPlayer

Description

A SpatDifPlayer is capable of reading and reproducting an OSC-SpatDIF document version 0.3, as documented in http://redmine.spatdif.org/attachments/download/106/SpatDIF-exampleScenes-V0.3.pdf

Despite it can be used stand-alone, we recommend to use it through the provided SpatialRender methods, which handle message redundandy, visualization, etc.

Class Methods

.new

Arguments:

netAddr

The instance of NetAddr where to send the SpatDIF messages. If nil is provided, the address will be NetAddr.localhost

Instance Methods

Initializing

.loadFile

Open a OSC-SpatDIF compilant file and load it into a Task

Arguments:

pathToFile

The path describing the SpatDIF file

Reproduction Control

.start

Plays the task from the beggining.

.pause

Pauses the task. It can be further resumed with SpatDifPlayer: -play

.play

Resumes the task from where it was paused.

.reset

Set the task starting point at time 0.

.isPlaying

Answers if the playing task is currently playing. This method will respond true until one second after the task reachs the end, for compatibility reasons.

.verbose

If verbose is set to true, outcoming messages will be printed

Examples