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

SpatDifLogger
ExtensionExtension

a SpatDifLogger

Description

This class provides the functionality to register all incoming OSC-SpatDIF messages and save them in a textfile, which can be afterwards played by a SpatDifPlayer.

A SpatDifLogger is created and managed by the SpatialRender instance, so normally the user doesn't need to deal with it directly.

Class Methods

.new

Most of the arguments of this method are optional parameters for the Meta Section headers of the SpatDIF file, as defined in http://redmine.spatdif.org/attachments/download/105/SpatDIF-specs-V0.3.pdf

Arguments:

fn

File name where save the messages.

path

Path to file

extensions

Array with the names of the used SpatDif extensions, for the Meta section

author

Name of the author, for the Meta section

host

Authoring tool used, for the Meta section

date

Date, for the Meta section

session

Session number, for the Meta section

location

Venue location, for the Meta section

annotation

General comments, for the Meta section

Instance Methods

.writeLine

Write a new SpatDIF command in the Time Section

Arguments:

msg

An Array containing a valid SpatDIF message, as formatted after NetAddr: -sendMsg

time

Timestamp of the message

.resetTime

Reset the internal time

.save

Save the file

.close

Close the file

.deltaTime

Get/set the minimum time interval, below which two messages are considered simultaneous. Default to 10 miliseconds.

.log

Get/set whether to log incoming messages. Default to true.