(contains-pattern-match-chars? str)
Returns true if str contains any pattern-match characters
Returns true if str contains any pattern-match characters
(mk-osc-bundle timestamp items)
Create an osc bundle. Throws exceptions if the timestamp and items aren't the correct types (number and list respectively).
Create an osc bundle. Throws exceptions if the timestamp and items aren't the correct types (number and list respectively).
(mk-osc-msg path type-tag & args)
Create an OSC message
An OSC message consists of:
Create an OSC message An OSC message consists of: * a path prefixed with / * a type tag prefixed with , (the , isn't stored in the map) * 0 or more args (where the number of args equals the number of types in the type tag
(osc-bundle? obj)
Returns true if obj is an OSC Bundle
Returns true if obj is an OSC Bundle
(osc-msg-infer-types path & args)
Returns an OSC message. Infers the types of the args.
Returns an OSC message. Infers the types of the args.
(osc-msg? obj)
Returns true if obj is an OSC message
Returns true if obj is an OSC message
(osc-type-tag args)
Generate a type tag for the argument list args. Each arg in args should be one of the following specific types and the type tag will consist of a series of consecutive chars representing the type of each arg in sequence.
For example, an arg list of a string then three ints will generate a type tag of "siii"
OSC Data Types: int => i
long => h
float => f
string => s
blob => b
OSC-timetag
Generate a type tag for the argument list args. Each arg in args should be one of the following specific types and the type tag will consist of a series of consecutive chars representing the type of each arg in sequence. For example, an arg list of a string then three ints will generate a type tag of "siii" OSC Data Types: int => i * 32-bit big-endort an two's complement integer long => h * 64-bit big-endian two's complement integer float => f * 32-bit big-endian IEEE 754 floating point number string => s * A sequence of non-null ASCII characters followed by a null, followed by 0-3 additional null characters to make the total number of bits a multiple of 32. blob => b * An int32 size count, followed by that many 8-bit bytes of arbitrary binary data, followed by 0-3 additional zero bytes to make the total number of bits a multiple of 32. OSC-timetag * 64-bit big-endian fixed-point timestamp
(print-debug & msgs)
(split-path path)
Takes an osc path and splits it to a seq of names (split-path "/foo/bar/baz") ;=> ["foo" "bar" "baz"]
Takes an osc path and splits it to a seq of names (split-path "/foo/bar/baz") ;=> ["foo" "bar" "baz"]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close