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.
- 6 types
- 16 values
- Packagehosc-0.21.1
- Exports22
- LanguageHaskell2010
- LicenceGPL-3.0-only
- SourcePacket.hs
Message
5 declarationsAn 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
3 declarationsAn 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
11 declarationsConstructors
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
3 declarationsDoes 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.