Type enumerating Datum categories.
Modulehosc-0.21.1Haskell2010
Sound.Osc.Datum
Osc data types.
Synopsis
- type DatumType
- type Ascii
- value ascii
- value ascii_to_string
- type Blob
- value blob_pack
- value blob_pack_int
- value blob_unpack
- value blob_unpack_int
- data MidiData
- value midi_pack
- value midi_pack_int
- value midi_unpack_int
- type Time
- data Datum
- value osc_types_required
- value osc_types_optional
- value osc_types
- value osc_type_name
- value osc_type_name_err
- value datum_tag
- value datum_type_name
- value datum_integral
- value datum_floating
- value int32
- value int64
- value float
- value double
- value string
- value midi
- value blob
- value signatureFor
- value descriptor
- value descriptor_tags
- Packagehosc-0.21.1
- Exports34
- LanguageHaskell2010
- LicenceGPL-3.0-only
- SourceDatum.hs
Datum
Type for Ascii strings (strict Char8 ByteString)
Type-specialised pack.
Type-specialised unpack.
Type-specialised pack.
Type-specialised pack.
Type-specialised unpack.
Type-specialised unpack.
Four-byte midi message: port-id, status-byte, data, data.
Type-specialised pack.
Type-specialised unpack.
A real-valued time stamp. For Osc proper this is an Ntp64 time in real-valued (fractional) form. For SuperCollider Nrt programs this is elapsed time since the start of the score. This is the primary form of timestamp used by hosc.
The basic elements of Osc messages.
Datum types
List of required data types (tag, name).
List of optional data types (tag,name).
List of all data types (tag,name).
Lookup name of type.
Erroring variant.
Single character identifier of an Osc datum.
Type and name of Datum.
Generalised element access
Constructors
Type generalised Int32.
int32 (1::Int32) == int32 (1::Integer)True
d_int32 (int32 (maxBound::Int32)) == maxBoundTrue
int32 (((2::Int) ^ (64::Int))::Int) == Int32 0True
Type generalised Int64.
int64 (1::Int32) == int64 (1::Integer)True
d_int64 (int64 (maxBound::Int64)) == maxBoundTrue
Type generalised Float.
float (1::Int) == float (1::Double)True
floatRange (undefined::Float)(-125,128)
isInfinite (d_float (float (encodeFloat 1 256 :: Double)))True
Type generalised Double.
double (1::Int) == double (1::Double)True
double (encodeFloat 1 256 :: Double) == Double 1.157920892373162e77True
AsciiString of pack.
string "string" == AsciiString (ByteString.Char8.pack "string")True
Descriptor
Message argument types are given by a signature.
signatureFor [Int32 1,Float 1,string "1"]",ifs"
The descriptor is an Ascii encoded signature.
descriptor [Int32 1,Float 1,string "1"] == ascii ",ifs"True
Descriptor tags are comma prefixed.