Module xOscRouter

A simple OSC router with caching .

The router is using instances of xOscPattern to match messages.

Caching works only when patterns does not define captures of float values. Should this be the case, all matched patterns will not be cached.

Functions

input (osc_msg) Input message, return matching patterns
add_pattern (patt)
replace_pattern (patt, idx)
remove_pattern (idx)
remove_from_cache (idx)

Tables

self.cache table, indexed by fingerprint

Fields

self.patterns table


Functions

input (osc_msg)
Input message, return matching patterns

Parameters:

  • osc_msg , renoise.Osc.Message

Returns:

  1. table
  2. int, index in patterns
add_pattern (patt)

Parameters:

  • patt xOscPattern

Returns:

    int, index in patterns
replace_pattern (patt, idx)

Parameters:

  • patt , xOscPattern
  • idx (int), pattern index
remove_pattern (idx)

Parameters:

  • idx (int), pattern index
remove_from_cache (idx)

Parameters:

  • idx (int), pattern index

Tables

self.cache
table, indexed by fingerprint

Fields

self.patterns
table
generated by LDoc 1.4.2