Rug.Osc The literal address of the event Invoke the event message that caused the event Nullify the event Flags to define when bundles are to be invoked Bundles should never be invoked Invoke bundles that arrived within the current frame Invoke bundles that arrive late immediately Pospone the ivokation of bundles that arrive early Invoke bundles that arrive early immediately Invoke all bundles immediately. Equivilent of InvokeOnTimeBundles | InvokeLateBundlesImmediately | InvokeEarlyBundlesImmediately Type of address part Address seperator char i.e. '/' Address wildcared i.e. '//' Any string literal i.e [^\s#\*,/\?\[\]\{}]+ Either single char or anylength wildcard i.e '?' or '*' Char span e.g. [a-z]+ List of literal matches List of posible char matches e.g. [abcdefg]+ Base class for all osc packets Get an array of bytes containing the entire packet Write the packet into a byte array the destination for the packet the length of the packet in bytes Write the packet into a byte array the destination for the packet the offset within the array where writing should begin the length of the packet in bytes Read the osc packet from a byte array array to read from the number of bytes in the packet the packet Read the osc packet from a byte array array to read from the number of bytes in the packet the origin that is the origin of this packet the packet Read the osc packet from a byte array array to read from the offset within the array where reading should begin the number of bytes in the packet the packet Read the osc packet from a byte array array to read from the offset within the array where reading should begin the number of bytes in the packet the origin that is the origin of this packet the packet Scan for array start and end control chars the string to scan the index of the starting control char the index of the end char Scan for object start and end control chars the string to scan the index of the starting control char the index of the end char Scan for start and end control chars the string to scan the index of the starting control char start control char end control char string to use in the case of an error the index of the end char Is the supplied object exactly the same instance as this object an object returns true if The size of the packet in bytes If anything other than OscPacketError.None then an error occured while the packet was being parsed The descriptive string associated with Error The IP end point that the packet originated from Regex cache is an optimisation for regexes for address patterns. Caching is enabled by default. This mechanism assumes that the same addresses will be used multiple times and that there will be a finite number of unique addresses parsed over the course of the execution of the program. If there are to be many unique addresses used of the course of the execution of the program then it maybe desirable to disable caching. Clear the entire cache Aquire a regex, either by creating it if no cached one can be found or retrieving a cached one regex pattern a regex created from or retrieved for the pattern Enable regex caching for the entire program (Enabled by default) The number of cached regex(s) Provides osc timeing information Is the supplied time within the current frame according to this time provider the time to check true if within the frame else false Get the difference in seconds between the current time and the suppied time the time to compair the difference in seconds between the current time and the suppied time Get the current time Bundle of osc messages Create a bundle of messages timestamp messages to bundle Create a bundle of messages timestamp messages to bundle Create a bundle of messages timestamp messages to bundle Create a bundle of messages the origin of the osc bundle timestamp messages to bundle Create a bundle of messages the origin of the osc bundle timestamp messages to bundle Create a bundle of messages the origin of the osc bundle timestamp messages to bundle Is the supplied object exactly the same instance as this object an object true if the objects are equivalent Does a deep comparison of the suppied object and this instance An object true if the objects are equivalent Are 2 bundles equivalent A bundle A bundle true if the objects are equivalent Are 2 packet arrays equivalent A packet array A packet array true if the packet arrays are equivalent Are 2 packets equivalent A packet A packet true if the packets are equivalent Get the hash code for this object The hash code Creates a byte array that contains the osc message Write the bundle into a byte array an array ouf bytes to write the bundle into the number of bytes in the message Write the bundle into a byte array an array ouf bytes to write the bundle into the index within the array where writing should begin the number of bytes in the message Does the array contain a bundle packet? the array that contains a packet the offset within the array where the packet starts the number of bytes in the packet true if the packet contains a valid bundle header Read a OscBundle from a array of bytes the array that countains the bundle the number of bytes in the bundle the bundle Read a OscBundle from a array of bytes the array that countains the bundle the offset within the array where reading should begin the number of bytes in the bundle the bundle Read a OscBundle from a array of bytes the array that countains the bundle the offset within the array where reading should begin the number of bytes in the bundle the origin that is the origin of this bundle the bundle Try to parse a bundle from a string using the InvariantCulture the bundle as a string the parsed bundle true if the bundle could be parsed else false Try to parse a bundle from a string using a supplied format provider the bundle as a string the format provider to use the parsed bundle true if the bundle could be parsed else false Parse a bundle from a string using the InvariantCulture a string containing a bundle the parsed bundle parse a bundle from a string using a supplied format provider a string containing a bundle the format provider to use the parsed bundle If anything other than OscPacketError.None then an error occured while the packet was being parsed The descriptive string associated with Error The IP end point that the bundle originated from Osc timestamp associated with this bundle Access bundle messages by index the index of the message message at the supplied index The number of messages in the bundle The size of the packet in bytes UInt to Float Conversion Helper http://stackoverflow.com/questions/8037645/cast-float-to-int-without-any-conversion The connection state of an osc socket The socket has never been connected The socket is connected The socket is closing The socket has been closed Socket direction type Sender Receiver Base class for all osc UDP communication Default maximum packet size Default time to live for multicast packets Is the supplied address a UDP multicast address An address true if it is a multicast address Create a new socket for an address and port The ip address of the local end point the local port, use 0 for dynamically assigned The ip address of the remote end point the remote port TTL value to apply to packets Create a new socket for an address and port The ip address of the local end point The ip address of the remote end point the port, use 0 for dynamically assigned (receiver only) TTL value to apply to packets Create a new socket for an address and port The ip address of the local end point The ip address of the remote end point the port, use 0 for dynamically assigned (receiver only) Create a new socket for an address and port The ip address of the local or remote end point the port, use 0 for dynamically assigned (receiver only) Create a new socket for any local IP address and a port the port to bind to, use 0 for dynamically assigned (receiver only) Connect the socket Called when the socket is connected Called when the socket is closing Closes the socket and releases all resources associated with it Closes the socket and releases all resources associated with it Network port Local network port, this is the result of dynamic port allocation is UseDynamicLocalPort is true True of the socket should use dynamic local port assignment Local IP address Local Ip end point Remote IP address Remote Ip end point Is the remote origin a multicast address Time to live for multicast packets If true this socket uses IPv6 The current state of the socket The socket type The instance of the socket Flags for the socket Osc time tag The miniumn date for any Osc time tag Ntp Timestamp value Build a osc timetag from a Ntp 64 bit integer the 64 bit integer containing the time stamp Does this OSC-timetag equal another object An object true if the objects are the same Gets a hashcode for this OSC-timetag A hashcode Get a string of this OSC-timetag in the format "dd-MM-yyyy HH:mm:ss.ffffZ" The string value of this OSC-timetag Get the equivient datetime value from the osc timetag the equivilent value as a datetime Get a Osc timstamp from a datetime value datetime value the equivilent value as an osc timetag Parse a osc time tag from datetime string string to parse format provider the parsed time tag Parse a osc time tag from datetime string string to parse the parsed time tag Try to parse a osc time tag from datetime string string to parse format provider the parsed time tag true if parsed else false Try to parse a osc time tag from datetime string string to parse the parsed time tag true if parsed else false Osc symbol The string value of the symbol Create a new symbol literal string value Midi Message Parse a midi message from a single 4 byte integer 4 byte integer portID | (type | channel) | data1 | data2 Create midi message port id status byte data 1 data 2 Create midi message the id of the destination port the type of message the channel data argument 1 data argument 2 Create midi message port id midi message type midi channel data 1 Create midi message port id midi message type midi channel 14 bit data value Create midi message port id midi system message type 14 bit data value Create midi message port id midi system message type data 1 Create midi message port id midi system message type data 1 data 2 The midi message type The system message type, only valid when MessageType is SystemExclusive The channel, only valid when MessageType is not SystemExclusive 14 bit data value, for pitch bend messages Writes osc packets to a stream Initializes a new instance of the OscWriter class based on the supplied stream. a stream packet format Writes a single packet to the stream at the current position. A osc packet Closes the current reader and the underlying stream. Disposes the current reader and the underlying stream. Exposes access to the underlying stream of the OscWriter. Packet format Reads osc packets from a stream Initializes a new instance of the OscReader class based on the supplied stream. a stream the format of the packets in the stream Read a single packet from the stream at the current position An osc packet Closes the current reader and the underlying stream. Disposes the current reader and the underlying stream. Exposes access to the underlying stream of the OscReader. Packet format Gets a value that indicates whether the current stream position is at the end of the stream. Preforms common functions needed when listening for osc messages Create a new Osc UDP listener. Note the underlying socket will not be connected untill Connect is called the local ip address to listen to a multicast address to join the port to listen on, use 0 for dynamically assigned the number of messages that should be cached before messages get dropped the maximum packet size of any message Create a new Osc UDP listener. Note the underlying socket will not be connected untill Connect is called the local ip address to listen to the port to listen on, use 0 for dynamically assigned the number of messages that should be cached before messages get dropped the maximum packet size of any message Create a new Osc UDP listener. Note the underlying socket will not be connected untill Connect is called the local ip address to listen to the port to listen on Create a new Osc UDP listener. Note the underlying socket will not be connected untill Connect is called the local ip address to listen to a multicast address to join the port to listen on, use 0 for dynamically assigned Create a new Osc UDP listener. Note the underlying socket will not be connected untill Connect is called the port to listen on the number of messages that should be cached before messages get dropped the maximum packet size of any message Create a new Osc UDP listener. Note the underlying socket will not be connected untill Connect is called the port to listen on Attach an event listener on to the given address the address of the contianer the event to attach Detach an event listener the address of the container the event to remove This event will be raised whenever an unknown address is encountered Encompasses an entire osc address Create an osc address from a string, must follow the rules set out in http://opensoundcontrol.org/spec-1_0 and http://opensoundcontrol.org/spec-1_1 the address string Match this address against an address string the address string to match against true if the addresses match, otherwise false Match this address against another the address to match against true if the addresses match, otherwise false Only used for testing a string that would produce the same address pattern but not a copy of the original string Is the supplied address a valid literal address (no wildcards or lists) the address to check true if the address is valid Is the supplied address a valid address pattern (may include wildcards and lists) the address pattern to check true if the address pattern is valid Does a address match a address pattern address pattern (may include wildcards and lists) literal address true if the addess matches the pattern The string used to create the address The number of parts in the address Address parts the index of the part the address part at the given index Is this address a literal The pattern address of the event Invoke the event message that caused the event Nullify the event Any osc message Construct a osc message An osc address that is the destination for this message Object array of OSC argument values. The type tag string will be created automatically according to each argument type OscMessage message = new OscMessage("/test/test", 1, 2, 3); Construct a osc message the origin of the osc message An osc address that is the destination for this message Object array of OSC argument values. The type tag string will be created automatically according to each argument type OscMessage message = new OscMessage("/test/test", 1, 2, 3); Calculate the size of the type tag of an object array the array the size of the type tag for the array Calculate the size of the an object array in bytes the array the size of the array in bytes Get the arguments as an array arguments array Creates a byte array that contains the osc message Write the message body into a byte array an array ouf bytes to write the message body into the number of bytes in the message Write the message body into a byte array an array ouf bytes to write the message body into the index within the array where writing should begin the number of bytes in the message Read a OscMessage from a array of bytes the array that countains the message the number of bytes in the message the parsed osc message or an empty message if their was an error while parsing Read a OscMessage from a array of bytes the array that countains the message the offset within the array where reading should begin the number of bytes in the message the parsed osc message or an empty message if their was an error while parsing Read a OscMessage from a array of bytes the array that countains the message the offset within the array where reading should begin the number of bytes in the message the origin of the packet the parsed osc message or an empty message if their was an error while parsing Is the supplied object exactly the same instance as this object an object returns true if Does a deep comparison of the suppied object and this instance An object true if the objects are equivalent Are 2 messages equivalent A message A message true if the objects are equivalent Are the contents of 2 argument arrays the equivalent An array containing argument objects An array containing argument objects true if the object arrays are equivalent Get the hash code for this object The hash code Try to parse a message from a string using the InvariantCulture the message as a string the parsed message true if the message could be parsed else false Try to parse a message from a string using a supplied format provider the message as a string the format provider to use the parsed message true if the message could be parsed else false Parse a message from a string using the InvariantCulture a string containing a message the parsed message parse a message from a string using a supplied format provider a string containing a message the format provider to use the parsed message Parse arguments string to parse the list to put the parsed arguments into the current index within the string the format to use Parse a single argument string contain the argument to parse format provider to use the parsed argument Parse an object string contain the object to parse format provider to use the parsed argument The address of the message IS the argument list empty Number of arguments in the message Access message arguments by index the index of the message message at the supplied index The error accosiated with the message Error message The IP end point that the message originated from The size of the message in bytes Osc Impulse Singleton Matches the string against "Impulse", "Bang", "Infinitum", "Inf" the comparison is StringComparison.InvariantCultureIgnoreCase string to check true if the string matches any of the recognised impulse strings else false Osc udp sender The default number of messages that can be queued for sending before messages start to get dropped Create a new Osc UDP sender. Note the underlying socket will not be connected untill Connect is called the ip address to send to the port to send to Create a new Osc UDP sender. Note the underlying socket will not be connected untill Connect is called the ip address to send to the local port to bind, use 0 for dynamically assigned the port to send to Create a new Osc UDP sender. Note the underlying socket will not be connected untill Connect is called the ip address to send from the ip address to send to the port to send to Create a new Osc UDP sender. Note the underlying socket will not be connected untill Connect is called the ip address to send from the ip address to send to the port to send to TTL value to apply to packets Create a new Osc UDP sender. Note the underlying socket will not be connected untill Connect is called the ip address to send to the port to send to the number of messages that should be cached before messages get dropped the maximum packet size of any message Create a new Osc UDP sender. Note the underlying socket will not be connected untill Connect is called the ip address to send to the local port to bind, use 0 for dynamically assigned the port to send to the number of messages that should be cached before messages get dropped the maximum packet size of any message Create a new Osc UDP sender. Note the underlying socket will not be connected untill Connect is called the ip address to send from the ip address to send to the port to send to the number of messages that should be cached before messages get dropped the maximum packet size of any message Create a new Osc UDP sender. Note the underlying socket will not be connected untill Connect is called the ip address to send from the ip address to send to the port to send to TTL value to apply to packets the number of messages that should be cached before messages get dropped the maximum packet size of any message Create a new Osc UDP sender. Note the underlying socket will not be connected untill Connect is called the ip address to send from the local port to bind, use 0 for dynamically assigned the ip address to send to the port to send to TTL value to apply to packets the number of messages that should be cached before messages get dropped the maximum packet size of any message Add a osc message to the send queue message to send Wait till all messages in the queue have been sent Use a value greater than 0 to set the disconnect time out in miliseconds use a value less than or equal to 0 for an infinite timeout The next queue index to write messages to The next queue index to read messages from Encompasses a single part of an osc address The address part type The original string value of this part How the string was interpreted (only used for testing) The regex representation of this part Create a address part the type of part the original string value the representation of the original value as interpreted by the parser the part as a regex expression Create a address separator part '/' the part Create a address wildcard part "//" the part Create a literal address part the literal the part Create a part for a wildcard part the original string the part Character span e.g. [a-e] the original string the part Character list e.g. [abcde] the original string the part Literal list e.g. {thing1,THING1} the original string the part Represents a 32bit ARGB color This is a poor replacement for System.Drawing.Color but unfortunatly many platforms do not support the System.Drawing namespace. Initate a new Osc-Color from an ARGB color value An 32bit ARGB integer Create a Osc-Color from an 32bit ARGB integer An ARGB integer An Osc Color Create a Osc-Color from 4 channels Alpha channel component Red channel component Green channel component Blue channel component An Osc Color Alpha, red, green and blue components packed into a single 32bit int Red component Green component Blue component Alpha component Manages osc address event listening Lookup of all literal addresses to listeners Lookup of all pattern address to filters Attach an event listener on to the given address the address of the contianer the event to attach Detach an event listener the address of the container the event to remove Determin if the packet should be invoked A packet The appropriate action that should be taken with the packet Invoke a osc packet the packet true if any thing was invoked Invoke all the messages within a bundle an osc bundle of messages true if there was a listener to invoke for any message in the otherwise false Invoke any event that matches the address on the message the message argument true if there was a listener to invoke otherwise false Disposes of any resources and releases all events Osc time provider, used for filtering bundles by time, if null then the DefaultTimeProvider is used Bundle invoke mode, the default is OscBundleInvokeMode.InvokeAllBundlesImmediately This event will be raised whenever an unknown address is encountered A strongly-typed resource class, for looking up localized strings, etc. Returns the cached ResourceManager instance used by this class. Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class. Looks up a localized string similar to Address string may not be null or empty. Looks up a localized string similar to Unsupported arguemnt type '{0}'. Looks up a localized string similar to Invalid bundle message length. Looks up a localized string similar to Invalid bundle ident '{0}'. Looks up a localized string similar to Invalid bundle message header. Looks up a localized string similar to Invalid bundle timestamp '{0}'. Looks up a localized string similar to Missing bundle ident. Looks up a localized string similar to Missing '{{'. Found '{0}'. Looks up a localized string similar to Invalid container address '{0}'. Looks up a localized string similar to Unknown osc packet type '{0}'. Looks up a localized string similar to Not a midi message '{0}'. Looks up a localized string similar to Cannot match 2 address patterns. Looks up a localized string similar to {0} cannot match non literal address parts. Looks up a localized string similar to The address '{0}' is not a valid osc address. Looks up a localized string similar to Unexpected match. Looks up a localized string similar to Unknown address part '{0}'. Looks up a localized string similar to The {0} channel has a value of {1}, color channel values must be in the range {2} to {3}. Looks up a localized string similar to Argument is empty. Looks up a localized string similar to Unexpected end of message while parsing argument '{0}'. Looks up a localized string similar to Invalid address. Looks up a localized string similar to Invalid blob string length. Looks up a localized string similar to Invalid color '{0}'. Looks up a localized string similar to An error occured while parsing an osc packet. Looks up a localized string similar to The packet length is not the correct size. Looks up a localized string similar to Malformed array '{0}'. Looks up a localized string similar to Malformed object '{0}'. Looks up a localized string similar to Malformed object '{0}', missing type name. Looks up a localized string similar to Malformed string argument '{0}' . Looks up a localized string similar to Malformed type tag. Looks up a localized string similar to Address was empty. Looks up a localized string similar to Address terminator could not be found. Looks up a localized string similar to Terminator could not be found while parsing argument '{0}'. Looks up a localized string similar to Expected ']'. Looks up a localized string similar to No comma found. Looks up a localized string similar to Expected '}'. Looks up a localized string similar to Expected '"'. Looks up a localized string similar to Type tag terminator could not be found. Looks up a localized string similar to Unexpected end of message. Looks up a localized string similar to Unknown argument type '{0}' on argument '{1}'. Looks up a localized string similar to Unknown object type '{0}'. Looks up a localized string similar to An unexpected error occured while waiting for a message. Looks up a localized string similar to The suppied address must be a multicast address. Looks up a localized string similar to The receiver socket has been disconnected. Looks up a localized string similar to Both local and remote must belong to the same address family. Looks up a localized string similar to The socket is already open or is not fully closed. Looks up a localized string similar to The valid range for local port numbers is 1 to 65535 or 0 for a dynamically assigned port. Looks up a localized string similar to The valid range for port numbers is 1 to 65535. Looks up a localized string similar to The valid range for remote port numbers is 1 to 65535. Looks up a localized string similar to Unsupported address family '{0}'. Looks up a localized string similar to Invalid osc-timetag string '{0}'. Osc UDP receiver The default number of messages that can be queued for processing after being received before messages start to get dropped Create a new Osc UDP receiver. Note the underlying socket will not be connected untill Connect is called the local ip address to listen to a multicast address to join the port to listen on, use 0 for dynamically assigned the number of messages that should be cached before messages get dropped the maximum packet size of any message Create a new Osc UDP receiver. Note the underlying socket will not be connected untill Connect is called the local ip address to listen to the port to listen on, use 0 for dynamically assigned the number of messages that should be cached before messages get dropped the maximum packet size of any message Create a new Osc UDP receiver. Note the underlying socket will not be connected untill Connect is called the local ip address to listen to the port to listen on Create a new Osc UDP receiver. Note the underlying socket will not be connected untill Connect is called the local ip address to listen to a multicast address to join the port to listen on, use 0 for dynamically assigned Create a new Osc UDP receiver. Note the underlying socket will not be connected untill Connect is called the port to listen on the number of messages that should be cached before messages get dropped the maximum packet size of any message Create a new Osc UDP receiver. Note the underlying socket will not be connected untill Connect is called the port to listen on Try to receive a osc message, this method is non-blocking and will return imediatly with a message or null an osc message if one is ready else null if there are none true if a message was ready Receive a osc message, this method is blocking and will only return once a message is recived an osc message The next queue index to write messages to The next queue index to read messages from Enum Helper class orginal code by Simon Mourier codefluententities.com http://stackoverflow.com/questions/1082532/how-to-tryparse-for-enum-value Converts the string representation of an enum to its Enum equivalent value. A return value indicates whether the operation succeeded. This method does not rely on Enum.Parse and therefore will never raise any first or second chance exception. The enum target type The input text. May be null. When this method returns, contains Enum equivalent value to the enum contained in input, if the conversion succeeded. true if s was converted successfully; otherwise, false. Converts the string representation of an enum to its Enum equivalent value. A return value indicates whether the operation succeeded. This method does not rely on Enum.Parse and therefore will never raise any first or second chance exception. The enum target type The input text. May be null. ignore the case of the input string When this method returns, contains Enum equivalent value to the enum contained in input, if the conversion succeeded. true if s was converted successfully; otherwise, false. Converts the string representation of an enum to its Enum equivalent value. A return value indicates whether the operation succeeded. This method does not rely on Enum.Parse and therefore will never raise any first or second chance exception. The enum target type. May not be null. The input text. May be null. When this method returns, contains Enum equivalent value to the enum contained in input, if the conversion succeeded. true if s was converted successfully; otherwise, false. Converts the string representation of an enum to its Enum equivalent value. A return value indicates whether the operation succeeded. This method does not rely on Enum.Parse and therefore will never raise any first or second chance exception. The enum target type. May not be null. The input text. May be null. ignore the case of the input string When this method returns, contains Enum equivalent value to the enum contained in input, if the conversion succeeded. true if s was converted successfully; otherwise, false. Is the supplied time within the current frame according to this time provider the time to check true if within the frame else false Get the difference in seconds between the current time and the suppied time the time to compair the difference in seconds between the current time and the suppied time Get the current time Osc Null Singleton