|
LMMS
|
Classes | |
| struct | AutomationMapping |
| struct | Automation |
| struct | AutomationSlot |
| class | AutomationMgr |
| class | MidiTable_Impl |
| class | Port_Matcher |
| struct | internal_ringbuffer_t |
| class | UndoHistoryImpl |
| class | MidiMapperStorage |
| struct | MidiBijection |
| class | MidiMappernRT |
| class | MidiMapperRT |
| struct | MidiAddr |
| class | MidiTable |
| struct | RtData |
| data object for the dispatch routine More... | |
| struct | Port |
| struct | Ports |
| struct | ClonePort |
| struct | ClonePorts |
| struct | MergePorts |
| class | savefile_dispatcher_t |
| struct | OscDocFormatter |
| class | ThreadLink |
| struct | match_exact |
| struct | match_partial |
| class | rtMsg |
| class | rtMsg<> |
| struct | advance_size |
| struct | advance_size< irqus::typestring< C... > > |
| class | rtMsg< This, Rest... > |
| struct | osc_element |
| struct | osc_element< 0, rtMsg< This, Rest... > > |
| struct | osc_element< Index, rtMsg< This, Rest... > > |
| class | UndoHistory |
Typedefs | |
| typedef internal_ringbuffer_t | ringbuffer_t |
| typedef const char * | msg_t |
| typedef void(* | port_walker_t) (const Port *, const char *, const char *, const Ports &, void *, void *) |
Functions | |
| static size_t | ring_read_size (ringbuffer_t *ring) |
| static size_t | ring_write_size (ringbuffer_t *ring) |
| static void | ring_write (ringbuffer_t *ring, const char *data, size_t len) |
| static void | ring_read (ringbuffer_t *ring, char *data, size_t len) |
| static void | ring_read_vector (ringbuffer_t *ring, ring_t *r) |
| const char * | getUndoAddress (const char *msg) |
| const char * | get_default_value (const char *port_name, const Ports &ports, void *runtime, const Port *port_hint=NULL, int32_t idx=-1, int recursive=1) |
| int | get_default_value (const char *port_name, const char *port_args, const Ports &ports, void *runtime, const Port *port_hint, int32_t idx, size_t n, rtosc_arg_val_t *res, char *strbuf, size_t strbufsize) |
| std::string | get_changed_values (const Ports &ports, void *runtime) |
| int | dispatch_printed_messages (const char *messages, const Ports &ports, void *runtime, savefile_dispatcher_t *dispatcher=NULL) |
| std::string | save_to_file (const Ports &ports, void *runtime, const char *appname, rtosc_version appver) |
| int | load_from_file (const char *file_content, const Ports &ports, void *runtime, const char *appname, rtosc_version appver, savefile_dispatcher_t *dispatcher=NULL) |
| int | canonicalize_arg_vals (rtosc_arg_val_t *av, size_t n, const char *port_args, Port::MetaContainer meta) |
| void | map_arg_vals (rtosc_arg_val_t *av, size_t n, Port::MetaContainer meta) |
| void | walk_ports (const Ports *base, char *name_buffer, size_t buffer_size, void *data, port_walker_t walker, void *runtime=NULL) |
| int | enum_key (Port::MetaContainer meta, const char *value) |
| std::ostream & | operator<< (std::ostream &o, OscDocFormatter &formatter) |
| template<class T> | |
| bool | valid_char (char) |
| template<> | |
| bool | valid_char< const char * > (char c) |
| template<> | |
| bool | valid_char< int32_t > (char c) |
| template<> | |
| bool | valid_char< float > (char c) |
| template<int i> | |
| bool | validate (const char *arg) |
| template<class T> | |
| bool | match_path (std::false_type, const char *arg) |
| template<class T> | |
| bool | match_path (std::true_type, const char *) |
| template<int i, class This, class... Rest> | |
| bool | validate (const char *arg) |
| template<class T> | |
| T | rt_get_impl (const char *msg, size_t i) |
| template<> | |
| const char * | rt_get_impl (const char *msg, size_t i) |
| template<> | |
| int32_t | rt_get_impl (const char *msg, size_t i) |
| template<size_t Index, class... Types> | |
| osc_element< Index, rtMsg< Types... > >::type | get (rtMsg< Types... > &Tuple) |
| template<class... Types> | |
| osc_element< 0, rtMsg< Types... > >::type | first (rtMsg< Types... > &Tuple) |
| template<class... Types> | |
| osc_element< 1, rtMsg< Types... > >::type | second (rtMsg< Types... > &Tuple) |
Variables | |
| static char | tmp [256] |
| typedef const char * rtosc::msg_t |
| typedef void(* rtosc::port_walker_t) (const Port *, const char *, const char *, const Ports &, void *, void *) |
Function pointer type for port walking.
accepts:
| int rtosc::canonicalize_arg_vals | ( | rtosc_arg_val_t * | av, |
| size_t | n, | ||
| const char * | port_args, | ||
| Port::MetaContainer | meta ) |
Convert given argument values to their canonical representation.
The ports first (or-wise) argument types are defined as canonical. E.g. if passing two 'S' argument values, the port could be portname::ii:cc:SS or portname::ii:t.
| av | The input and output argument values |
| n | The size of av |
| port_args | The port arguments string, e.g. ::i:c:s. The first non-colon letter sequence marks the canonical types |
| meta | The port's metadata container |
| int rtosc::dispatch_printed_messages | ( | const char * | messages, |
| const Ports & | ports, | ||
| void * | runtime, | ||
| savefile_dispatcher_t * | dispatcher = NULL ) |
Scan OSC messages from human readable format and dispatch them.
| messages | The OSC messages, whitespace-separated |
| ports | The static ports structure |
| runtime | The runtime object |
| dispatcher | Object to modify messages prior to dispatching, or NULL. You can overwrite its virtual functions, and you should specify any of the version structs if needed. All other members shall not be initialized. |
| int rtosc::enum_key | ( | Port::MetaContainer | meta, |
| const char * | value ) |
|
inline |
|
inline |
Return a string list of all changed values
Return a human readable list of the value that changed corresponding to the rDefault macro
| ports | The static ports structure |
| runtime | The runtime object |
| int rtosc::get_default_value | ( | const char * | port_name, |
| const char * | port_args, | ||
| const Ports & | ports, | ||
| void * | runtime, | ||
| const Port * | port_hint, | ||
| int32_t | idx, | ||
| size_t | n, | ||
| rtosc_arg_val_t * | res, | ||
| char * | strbuf, | ||
| size_t | strbufsize ) |
Return a port's default value
Returns the default value of a given port, if any exists, as an array of rtosc_arg_vals . The values in the resulting array are being canonicalized, i.e. mapped values are being converted to integers; see canonicalize_arg_vals() .
| port_name | the port's OSC path. |
| port_args | the port's arguments, e.g. '::i:c:S' |
| ports | the ports where portname is to be searched |
| runtime | object holding ports . Optional. Helps finding default values dependent on others, such as presets. |
| port_hint | The port itself corresponding to portname (including the args). If not specified, will be found using portname . |
| idx | If the port is an array (using the '#' notation), this specifies the index required for the default value |
| n | Size of the output parameter @res . This size can not be known, so you should provide a large enough array. |
| res | The output parameter for the argument values. |
| strbuf | String buffer for storing pretty printed strings and blobs. |
| strbufsize | Size of strbuf |
res (can be smaller than n) or -1 if there is no valid default annotation | const char * rtosc::get_default_value | ( | const char * | port_name, |
| const Ports & | ports, | ||
| void * | runtime, | ||
| const Port * | port_hint = NULL, | ||
| int32_t | idx = -1, | ||
| int | recursive = 1 ) |
Return a port's default value
Returns the default value of a given port, if any exists, as a string. For the parameters, see the overloaded function.
| int rtosc::load_from_file | ( | const char * | file_content, |
| const Ports & | ports, | ||
| void * | runtime, | ||
| const char * | appname, | ||
| rtosc_version | appver, | ||
| savefile_dispatcher_t * | dispatcher = NULL ) |
Read save file and dispatch contained parameters.
| file_content | The file as a C string |
| ports | The static ports structure |
| runtime | The runtime object |
| appname | Name of the application calling this function; must match the file's application name |
| appver | Version of the application calling this function |
| dispatcher | Modifier for the messages; NULL if no modifiers are needed |
| void rtosc::map_arg_vals | ( | rtosc_arg_val_t * | av, |
| size_t | n, | ||
| Port::MetaContainer | meta ) |
Convert each of the given arguments to their mapped symbol, if possible.
| av | The input and output argument values |
| n | The size of av |
| meta | The port's metadata container |
| bool rtosc::match_path | ( | std::false_type | , |
| const char * | arg ) |
| bool rtosc::match_path | ( | std::true_type | , |
| const char * | ) |
| std::ostream & rtosc::operator<< | ( | std::ostream & | o, |
| rtosc::OscDocFormatter & | formatter ) |
|
static |
|
static |
|
static |
|
static |
|
static |
| T rtosc::rt_get_impl | ( | const char * | msg, |
| size_t | i ) |
| std::string rtosc::save_to_file | ( | const Ports & | ports, |
| void * | runtime, | ||
| const char * | appname, | ||
| rtosc_version | appver ) |
Return a savefile containing all values that differ from the default values.
| ports | The static ports structure |
| runtime | The runtime object |
| appname | Name of the application calling this function |
| appver | Version of the application calling this function |
|
inline |
| bool rtosc::valid_char | ( | char | ) |
| bool rtosc::valid_char< const char * > | ( | char | c | ) |
| bool rtosc::valid_char< float > | ( | char | c | ) |
| bool rtosc::valid_char< int32_t > | ( | char | c | ) |
| void rtosc::walk_ports | ( | const Ports * | base, |
| char * | name_buffer, | ||
| size_t | buffer_size, | ||
| void * | data, | ||
| port_walker_t | walker, | ||
| void * | runtime = NULL ) |
Call a function on all ports and subports.
| base | The base port of traversing |
| name_buffer | Buffer which will be filled with the port name; must be reset to zero over the full length! |
| buffer_size | Size of name_buffer |
| data | Data that should be available in the callback |
| walker | Callback function |
|
static |