Arduino Music and Audio Projects by Mike Cook

Arduino Music and Audio Projects by Mike Cook

Author:Mike Cook
Language: eng
Format: epub, pdf
Publisher: Apress, Berkeley, CA


Type Tag

Data Type

Description

i

int32

32-bit big-endian two’s complement integer

t

OSC-timetag

64-bit big-endian fixed-point time tag

f

float32

32-bit big-endian IEEE 754 floating-point number

s

OSC-string

A sequence of non-null ASCII characters followed by a null

b

OSC-blob

An int32 size count, followed by that many 8-bit bytes of arbitrary binary data

The data indicator is sent as a text letter that’s preceded by a comma, and then comes the data. With the exception of the string type, it is difficult to see these numbers as data unless your program makes a special provision to convert them.

You might think that timetag is a little strange, but it follows the Internet NTP format. The first 32 bits represent the number of seconds since midnight on 1900 and the next 32 bits specify a fractional part of the second giving a precision of about 200 picoseconds. There is a special value of 63 zeros followed by a one, which means immediately.

These are not the only data types that can be used. As I mentioned, it is an open standard so you are free to make up your own types. However, when you deviate outside the standard type, you run the risk of other applications not understanding. The OSC standard has some alternative data tags that you should use for non-standard data types if they fit what you are doing, shown in Table 8-2.Table 8-2.Non-Standard OSC Data Types



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.