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.20Haskell2010
Sound.Osc.Packet
Data types for Osc messages, bundles and packets.
- 4 types
- 16 values
- Packagehosc-0.20
- Exports20
- 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
2 declarationsAn Osc bundle, a Time and a sequence of Messages. Do not allow recursion, all contents must be messages.
Constructors
BundlebundleTime :: !TimebundleMessages :: ![Message]
Packet
10 declarationsConstructors
Packet_Bundle of bundle.
Constant indicating a bundle to be executed immediately. It has the Ntp64 representation of 1.
ntpr_to_ntpi immediately == 1The 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 have the specified Address_Pattern.
Does Packet have the specified Address_Pattern, ie. message_has_address or bundle_has_address.