X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=_manual%2F24_lua-scripting%2F02_class_reference.html;h=66aa47212cf01c0578ca504d4802ac2ee10093cb;hb=6e1d335671e9affda395ca068541291fc112eb74;hp=8f71da02847c9579a0cc935b75eca8d7bdb69203;hpb=2cb1352946cba2bb946114738fdb987ae1ce7f17;p=ardour-manual
diff --git a/_manual/24_lua-scripting/02_class_reference.html b/_manual/24_lua-scripting/02_class_reference.html
index 8f71da0..66aa472 100644
--- a/_manual/24_lua-scripting/02_class_reference.html
+++ b/_manual/24_lua-scripting/02_class_reference.html
@@ -10,6 +10,7 @@ This documention is far from complete may be inaccurate and subject to change.
+
Overview
The top-level entry point are ARDOUR:Session and ArdourUI:Editor.
@@ -232,11 +233,13 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
bool | active () | |
int | add_processor_by_index (Processor, int, ProcessorStreams, bool) | |
std::string | comment () | |
+
bool | customize_plugin_insert (Processor, unsigned int, ChanCount) | |
ChanCount | n_inputs () | |
ChanCount | n_outputs () | |
Processor | nth_plugin (unsigned int) | |
int | remove_processor (Processor, ProcessorStreams, bool) | |
int | replace_processor (Processor, Processor, ProcessorStreams) | |
+
bool | reset_plugin_insert (Processor) | |
void | set_active (bool, void*) | |
void | set_comment (std::string, void*) | |
bool | set_strict_io (bool) | |
@@ -285,6 +288,7 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
Methods |
AutoState | automation_state () | |
double | get_value () | |
+
| Get the current effective `user' value based on automation state |
bool | isnil () | |
void | set_automation_style (AutoStyle) | |
void | set_value (double, GroupControlDisposition) | |
@@ -327,19 +331,35 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
A count of channels, possibly with many types.
Operators are defined so this may safely be used as if it were a simple (single-typed) integer count of channels.
+ Constructor |
+ ℂ | ARDOUR.ChanCount (DataType, unsigned int) | |
+ | Convenience constructor for making single-typed streams (mono, stereo, midi, etc) - type
- data type
- count
- number of channels
|
Methods |
+ unsigned int | get (DataType) | |
+ | query channel count for given type - type
- data type
Returns channel count for given type |
unsigned int | n_audio () | |
+ | query number of audio channels Returns number of audio channels |
+ unsigned int | n_midi () | |
+ | query number of midi channels Returns number of midi channels |
+ unsigned int | n_total () | |
+ | query total channel count of all data types Returns total channel count (audio + midi) |
+ void | reset () | |
+ | zero count of all data types |
+ void | set (DataType, unsigned int) | |
+ | set channel count for given type - count
- number of channels
- type
- data type
|
∁ ARDOUR:ChanMapping
C‡: ARDOUR::ChanMapping
-
A mapping from one set of channels to another (e.g. how to 'connect' two BufferSets).
+
A mapping from one set of channels to another (e.g. how to 'connect' two BufferSets).
for plugins the form is "pin" -> "buffer"
Constructor |
ℂ | ARDOUR.ChanMapping () | |
Methods |
- unsigned int | get (DataType, unsigned int) | |
+ unsigned int | get (DataType, unsigned int) | |
+ | get buffer mapping for given data type and pin - from
- pin
- type
- data type
Returns mapped buffer number (or ChanMapping::Invalid) |
void | set (DataType, unsigned int, unsigned int) | |
+ | set buffer mapping for given data type - from
- pin
- to
- buffer
- type
- data type
|
ℕ ARDOUR.DSP
@@ -453,7 +473,7 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
C‡: ARDOUR::Location
is-a: PBD:StatefulDestructible
-
Base class for objects with saveable and undoable state
+
Location on Timeline - abstract representation for Markers, Loop/Punch Ranges, CD-Markers etc.
Methods |
long | end () | |
@@ -462,8 +482,10 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
bool | locked () | |
int | move_to (long) | |
int | set_end (long, bool, bool) | |
+ | Set end position. - force
- true to force setting, even if the given new end is before the current start.
- allow_bbt_recompute
- True to recompute BBT end time from the new given end time.
- s
- New end.
|
int | set_length (long, long, bool) | |
int | set_start (long, bool, bool) | |
+ | Set start position. - s
- New start.
- force
- true to force setting, even if the given new start is after the current end.
- allow_bbt_recompute
- True to recompute BBT start time from the new given start time.
|
long | start () | |
Inherited from PBD:Stateful
@@ -545,11 +567,13 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
bool | active () | |
int | add_processor_by_index (Processor, int, ProcessorStreams, bool) | |
std::string | comment () | |
+
bool | customize_plugin_insert (Processor, unsigned int, ChanCount) | |
ChanCount | n_inputs () | |
ChanCount | n_outputs () | |
Processor | nth_plugin (unsigned int) | |
int | remove_processor (Processor, ProcessorStreams, bool) | |
int | replace_processor (Processor, Processor, ProcessorStreams) | |
+
bool | reset_plugin_insert (Processor) | |
void | set_active (bool, void*) | |
void | set_comment (std::string, void*) | |
bool | set_strict_io (bool) | |
@@ -621,6 +645,7 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
bool | isnil () | |
char* | label () | |
bool | load_preset (PresetRecord) | |
+
| Set parameters using a preset |
char* | maker () | |
char* | name () | |
LuaTable(unsigned int, ...) | nth_parameter (unsigned int, bool&) | |
@@ -647,6 +672,7 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
Methods |
AutoState | automation_state () | |
double | get_value () | |
+
| Get the current effective `user' value based on automation state |
void | set_automation_style (AutoStyle) | |
void | set_value (double, GroupControlDisposition) | |
| Get and Set `internal' value All derived classes must implement this. Basic derived classes will ignore - group_override,
- but more sophisticated children, notably those that proxy the value setting logic via an object that is aware of group relationships between this control and others, will find it useful.
|
@@ -684,7 +710,6 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
void | set_input_map (unsigned int, ChanMapping) | |
void | set_no_inplace (bool) | |
void | set_output_map (unsigned int, ChanMapping) | |
-
void | set_strict_io (bool) | |
bool | strict_io_configured () | |
Inherited from ARDOUR:Processor
@@ -806,6 +831,7 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
void | raise_to_top () | |
void | set_hidden (bool) | |
void | set_initial_position (long) | |
+
| A gui may need to create a region, then place it in an initial position determined by the user. When this takes place within one gui operation, we have to reset _last_position to prevent an implied move. |
void | set_length (long) | |
void | set_locked (bool) | |
void | set_muted (bool) | |
@@ -814,6 +840,7 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
void | set_position_locked (bool) | |
void | set_start (long) | |
void | set_sync_position (long) | |
+
| Set the region's sync point. - absolute_pos
- Session time.
|
void | set_video_locked (bool) | |
float | shift () | |
long | start () | |
@@ -821,7 +848,9 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
bool | sync_marked () | |
LuaTable(long, ...) | sync_offset (int&) | |
long | sync_position () | |
+
| Returns Sync position in session time |
void | trim_end (long) | |
+
| - new_endpoint
- New region end point, such that, for example, a region at 0 of length 10 has an endpoint of 9.
|
void | trim_front (long) | |
void | trim_to (long, long) | |
bool | valid_transients () | |
@@ -854,12 +883,14 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
bool | active () | |
int | add_processor_by_index (Processor, int, ProcessorStreams, bool) | |
std::string | comment () | |
+
bool | customize_plugin_insert (Processor, unsigned int, ChanCount) | |
bool | isnil () | |
ChanCount | n_inputs () | |
ChanCount | n_outputs () | |
Processor | nth_plugin (unsigned int) | |
int | remove_processor (Processor, ProcessorStreams, bool) | |
int | replace_processor (Processor, Processor, ProcessorStreams) | |
+
bool | reset_plugin_insert (Processor) | |
void | set_active (bool, void*) | |
void | set_comment (std::string, void*) | |
bool | set_name (std::string) | |
@@ -916,7 +947,7 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
∁ ARDOUR:Session
C‡: ARDOUR::Session
-
Base class for objects with saveable and undoable state
+
Methods |
bool | actively_recording () | |
@@ -947,6 +978,7 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
Route | route_by_name (std::string) | |
Route | route_by_remote_id (unsigned int) | |
int | save_state (std::string, bool, bool, bool) | |
+ | - snapshot_name
- Name to save under, without .ardour / .pending prefix
|
void | scripts_changed () | |
void | set_dirty () | |
std::string | snap_name () | |
@@ -999,7 +1031,7 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
∁ ARDOUR:TempoMap
C‡: ARDOUR::TempoMap
- Base class for objects with saveable and undoable state
+ Tempo Map - mapping of timecode to musical time. convert audio-samples, sample-rate to Bar/Beat/Tick, Meter/Tempo
Methods |
void | add_meter (Meter, BBT_TIME) | |
@@ -1025,11 +1057,13 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
bool | active () | |
int | add_processor_by_index (Processor, int, ProcessorStreams, bool) | |
std::string | comment () | |
+ bool | customize_plugin_insert (Processor, unsigned int, ChanCount) | |
ChanCount | n_inputs () | |
ChanCount | n_outputs () | |
Processor | nth_plugin (unsigned int) | |
int | remove_processor (Processor, ProcessorStreams, bool) | |
int | replace_processor (Processor, Processor, ProcessorStreams) | |
+ bool | reset_plugin_insert (Processor) | |
void | set_active (bool, void*) | |
void | set_comment (std::string, void*) | |
bool | set_strict_io (bool) | |
@@ -1101,11 +1135,12 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
∅ ArdourUI:ArdourMarker
C‡: ArdourMarker
- Base class for objects with auto-disconnection. trackable must be inherited when objects shall automatically invalidate slots referring to them on destruction. A slot built from a member function of a trackable derived type installs a callback that is invoked when the trackable object is destroyed or overwritten.
add_destroy_notify_callback() and remove_destroy_notify_callback() can be used to manually install and remove callbacks when notification of the object dying is needed.
notify_callbacks() invokes and removes all previously installed callbacks and can therefore be used to disconnect from all signals.
Note that there is no virtual destructor. Don't use trackable* as pointer type for managing your data or the destructors of your derived types won't be called when deleting your objects.
signal
+ Location Marker
Editor ruler representation of a location marker or range on the timeline.
This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.
∁ ArdourUI:Editor
C‡: PublicEditor
+ This class contains just the public interface of the Editor class, in order to decouple it from the private implementation, so that callers of PublicEditor need not be recompiled if private methods or member variables change.
Methods |
void | access_action (std::string, std::string) | |
@@ -1201,6 +1236,7 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
Methods |
void | clear_all () | |
+ | Empty this RegionSelection. |
long | end_frame () | |
unsigned long | n_midi_regions () | |
long | start () | |
@@ -1492,7 +1528,7 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
C‡: PBD::StatefulDestructible
is-a: PBD:Stateful
- Base class for objects with saveable and undoable state
+ Base class for objects with saveable and undoable state with destruction notification
This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.
Inherited from PBD:Stateful
@@ -1838,6 +1874,4 @@ Pointer Classes cannot be created in lua scripts. It always requires a call to C
Timecode:BBT_TIME
-
-
-
+