Osc address pattern. This is strictly an Ascii value, however it
is very common to pattern match on addresses and matching on
Data.ByteString.Char8 requires OverloadedStrings.
Modulehosc-0.21.1Haskell2010
Sound.Osc.Packet
Data types for Osc messages, bundles and packets.
Contents
Synopsis
- type Address_Pattern
- data Message
- value message
- value messageSignature
- value messageDescriptor
- data BundleOf
- type Bundle
- value bundle
- data PacketOf
- type Packet
- value p_bundle
- value p_message
- value immediately
- value packetTime
- value packetMessages
- value packet_to_bundle
- value packet_to_message
- value packet_is_immediate
- value at_packet
- value message_has_address
- value bundle_has_address
- value packet_has_address
- Packagehosc-0.21.1
- Exports22
- LanguageHaskell2010
- LicenceGPL-3.0-only
- SourcePacket.hs
Message
An Osc message, an Address_Pattern and a sequence of Datum.
Constructors
Message constructor. It is an error if the Address_Pattern doesn't conform to the Osc specification.
Bundle
An Osc bundle, a Time and a sequence of Messages. The type parameter specifies the element type. Ordinarily this is Message, which does not allow recursion.
Constructors
BundlebundleTime :: !TimebundleMessages :: ![t]
Instances4Eq, Ord, Read, Show
Eq t => Eq (BundleOf t)Defined in hosc-0.21.1 · Sound.Osc.PacketEq t => Ord (BundleOf t)Defined in hosc-0.21.1 · Sound.Osc.PacketOsc Bundles can be ordered (time ascending).
Read t => Read (BundleOf t)Defined in hosc-0.21.1 · Sound.Osc.PacketShow t => Show (BundleOf t)Defined in hosc-0.21.1 · Sound.Osc.Packet
Packet
Constructors
Packet_Bundle of bundle.
Constant indicating a bundle to be executed immediately.
It has the Ntp64 representation of 1.
immediately == (1 / (2 ^ 32))True
The Time of Packet, if the Packet is a Message this is immediately.
If Packet is a Message add immediately timestamp, else id.
Is Packet immediate, ie. a Bundle with timestamp immediately, or a plain Message.
Address Query
Does Message have the specified Address_Pattern.
Do any of the Messages at 'Bundle Message' have the specified Address_Pattern.
Does Packet have the specified Address_Pattern, ie. message_has_address or bundle_has_address.