Edit in GitHub

Lua Bindings Class Reference

This documentation is far from complete may be inaccurate and subject to change.

Overview

The top-level entry point are ARDOUR:Session and ArdourUI:Editor. Most other Classes are used indirectly starting with a Session function. e.g. Session:get_routes().

A few classes are dedicated to certain script types, e.g. Lua DSP processors have exclusive access to ARDOUR.DSP and ARDOUR:ChanMapping. Action Hooks Scripts to LuaSignal:Set etc.

Detailed documentation (parameter names, method description) is not yet available. Please stay tuned.

Short introduction to Ardour classes

Ardour's structure is object oriented. The main object is the Session. A Session contains Audio Tracks, Midi Tracks and Busses. Audio and Midi tracks are derived from a more general "Track" Object, which in turn is derived from a "Route" (aka Bus). (We say "An Audio Track is-a Track is-a Route"). Tracks contain specifics. For Example a track has-a diskstream (for file i/o).

Operations are performed on objects. One gets a reference to an object and then calls a method. e.g obj = Session:route_by_name("Audio") obj:set_name("Guitar").

Lua automatically follows C++ class inheritance. e.g one can directly call all SessionObject and Route methods on Track object. However lua does not automatically promote objects. A Route object which just happens to be a Track needs to be explicitly cast to a Track. Methods for casts are provided with each class. Note that the cast may fail and return a nil reference.

Likewise multiple inheritance is a non-trivial issue in Lua. To avoid performance penalties involved with lookups, explicit casts are required in this case. One example is ARDOUR:SessionObject which is-a StatefulDestructible which inherits from both Stateful and Destructible.

Object lifetimes are managed by the Session. Most Objects cannot be directly created, but one asks the Session to create or destroy them. This is mainly due to realtime constrains: you cannot simply remove a track that is currently processing audio. There are various factory methods for object creation or removal.

Pass by Reference

Since Lua functions are closures, C++ methods that pass arguments by reference cannot be used as-is. All parameters passed to a C++ method which uses references are returned as Lua Table. If the C++ method also returns a value it is prefixed. Two parameters are returned: the value and a Lua Table holding the parameters.

C++
void set_ref (int& var, long& val)
{
	printf ("%d %ld\n", var, val);
	var = 5;
	val = 7;
}
Lua
local var = 0;
ref = set_ref (var, 2);
-- output from C++ printf()
0 2
-- var is still 0 here
print (ref[1], ref[2])
5 7
int set_ref2 (int &var, std::string unused)
{
	var = 5;
	return 3;
}
rv, ref = set_ref2 (0, "hello");
print (rv, ref[1], ref[2])
3 5 hello

Pointer Classes

Libardour makes extensive use of reference counted boost::shared_ptr to manage lifetimes. The Lua bindings provide a complete abstraction of this. There are no pointers in Lua. For example a ARDOUR:Route is a pointer in C++, but Lua functions operate on it like it was a class instance.

shared_ptr are reference counted. Once assigned to a Lua variable, the C++ object will be kept and remains valid. It is good practice to assign references to Lua local variables or reset the variable to nil to drop the ref.

All pointer classes have a isnil () method. This is for two cases: Construction may fail. e.g. ARDOUR.LuaAPI.newplugin() may not be able to find the given plugin and hence cannot create an object.

The second case if for boost::weak_ptr. As opposed to boost::shared_ptr weak-pointers are not reference counted. The object may vanish at any time. If Lua code calls a method on a nil object, the interpreter will raise an exception and the script will not continue. This is not unlike a = nil a:test() which results in en error "attempt to index a nil value".

From the Lua side of things there is no distinction between weak and shared pointers. They behave identically. Below they're indicated in orange and have an arrow to indicate the pointer type. Pointer Classes cannot be created in Lua scripts. It always requires a call to C++ to create the Object and obtain a reference to it.

Class Documentation

 ARDOUR

Methods
RCConfigurationconfig ()
std::stringuser_cache_directory (std::string)

Returns the path to the directory used to store user specific caches (e.g. plugin indices, blacklist/whitelist) it defaults to XDG_CACHE_HOME

std::stringuser_config_directory (int)

user_config_directory() exists IF version was negative.

Returns the path to the directory used to store user specific configuration files for the given version of the program. If version is negative, the build-time string PROGRAM_VERSION will be used to determine the version number.

 ARDOUR:Amp

C‡: boost::shared_ptr< ARDOUR::Amp >, boost::weak_ptr< ARDOUR::Amp >

is-a: ARDOUR:Processor

Gain Stage (Fader, Trim).

Methods
floatapply_gain (AudioBuffer&, long, long, float, float, long)
GainControlgain_control ()
boolisnil ()

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:AsyncMIDIPort

C‡: boost::shared_ptr< ARDOUR::AsyncMIDIPort >, boost::weak_ptr< ARDOUR::AsyncMIDIPort >

is-a: ARDOUR:MidiPort

Methods
boolisnil ()
intwrite (unsigned char*, unsigned long, unsigned int)

Inherited from ARDOUR:MidiPort

Methods
MidiBufferget_midi_buffer (unsigned int)
boolinput_active ()
voidset_input_active (bool)
Cast
AsyncMIDIPortto_asyncmidiport ()

Inherited from ARDOUR:Port

Methods
intconnect (std::string)
boolconnected ()

Returns true if this port is connected to anything

boolconnected_to (std::string)
o
Port name

Returns true if this port is connected to o, otherwise false.

intdisconnect (std::string)
intdisconnect_all ()
PortFlagsflags ()

Returns flags

LuaTable(...)get_connected_latency_range (LatencyRange&, bool)
std::stringname ()

Returns Port short name

boolphysically_connected ()
std::stringpretty_name (bool)

Returns Port human readable name

LatencyRangeprivate_latency_range (bool)
LatencyRangepublic_latency_range (bool)
boolreceives_input ()

Returns true if this Port receives input, otherwise false

boolsends_output ()

Returns true if this Port sends output, otherwise false

Cast
AsyncMIDIPortto_asyncmidiport ()
AudioPortto_audioport ()
MidiPortto_midiport ()

 ARDOUR:AudioBackend

C‡: boost::shared_ptr< ARDOUR::AudioBackend >, boost::weak_ptr< ARDOUR::AudioBackend >

AudioBackend is an high-level abstraction for interacting with the operating system's audio and midi I/O.

Methods
unsigned intbuffer_size ()
std::stringdevice_name ()
std::stringdriver_name ()

override this if this implementation returns true from requires_driver_selection()

floatdsp_load ()

return the fraction of the time represented by the current buffer size that is being used for each buffer process cycle, as a value from 0.0 to 1.0

E.g. if the buffer size represents 5msec and current processing takes 1msec, the returned value should be 0.2.

Implementations can feel free to smooth the values returned over time (e.g. high pass filtering, or its equivalent).

DeviceStatusVectorenumerate_devices ()

Returns a collection of DeviceStatuses identifying devices discovered by this backend since the start of the process.

Any of the names in each DeviceStatus may be used to identify a device in other calls to the backend, though any of them may become invalid at any time.

StringVectorenumerate_drivers ()

If the return value of requires_driver_selection() is true, then this function can return the list of known driver names.

If the return value of requires_driver_selection() is false, then this function should not be called. If it is called its return value is an empty vector of strings.

DeviceStatusVectorenumerate_input_devices ()

Returns a collection of DeviceStatuses identifying input devices discovered by this backend since the start of the process.

Any of the names in each DeviceStatus may be used to identify a device in other calls to the backend, though any of them may become invalid at any time.

DeviceStatusVectorenumerate_output_devices ()

Returns a collection of DeviceStatuses identifying output devices discovered by this backend since the start of the process.

Any of the names in each DeviceStatus may be used to identify a device in other calls to the backend, though any of them may become invalid at any time.

AudioBackendInfoinfo ()

Return the AudioBackendInfo object from which this backend was constructed.

unsigned intinput_channels ()
std::stringinput_device_name ()
boolisnil ()
unsigned intoutput_channels ()
std::stringoutput_device_name ()
unsigned intperiod_size ()
floatsample_rate ()
intset_buffer_size (unsigned int)

Set the buffer size to be used.

The device is assumed to use a double buffering scheme, so that one buffer's worth of data can be processed by hardware while software works on the other buffer. All known suitable audio APIs support this model (though ALSA allows for alternate numbers of buffers, and CoreAudio doesn't directly expose the concept).

intset_device_name (std::string)

Set the name of the device to be used

intset_driver (std::string)

Returns zero if the backend can successfully use drivername as the driver, non-zero otherwise.

Should not be used unless the backend returns true from requires_driver_selection()

intset_input_device_name (std::string)

Set the name of the input device to be used if using separate input/output devices.

use_separate_input_and_output_devices()

intset_output_device_name (std::string)

Set the name of the output device to be used if using separate input/output devices.

use_separate_input_and_output_devices()

intset_peridod_size (unsigned int)

Set the period size to be used. must be called before starting the backend.

intset_sample_rate (float)

Set the sample rate to be used

booluse_separate_input_and_output_devices ()

An optional alternate interface for backends to provide a facility to select separate input and output devices.

If a backend returns true then enumerate_input_devices() and enumerate_output_devices() will be used instead of enumerate_devices() to enumerate devices. Similarly set_input/output_device_name() should be used to set devices instead of set_device_name().

 ARDOUR:AudioBackendInfo

C‡: ARDOUR::AudioBackendInfo

Data Members
char*name

 ARDOUR:AudioBuffer

C‡: ARDOUR::AudioBuffer

Buffer containing audio data.

Methods
voidapply_gain (float, long)

Apply a fixed gain factor to the audio buffer

gain
gain factor
len
number of samples to amplify
boolcheck_silence (unsigned int, unsigned int&)

Check buffer for silence

nframes
number of samples to check
n
first non zero sample (if any)

Returns true if all samples are zero

FloatArraydata (long)
voidread_from (FloatArray, long, long, long)
voidsilence (long, long)

silence buffer

len
number of samples to clear
offset
start offset

 ARDOUR:AudioEngine

C‡: ARDOUR::AudioEngine

is-a: ARDOUR:PortManager

Methods
BackendVectoravailable_backends ()
std::stringcurrent_backend_name ()
boolfreewheeling ()
floatget_dsp_load ()
std::stringget_last_backend_error ()
longprocessed_samples ()
boolrunning ()
AudioBackendset_backend (std::string, std::string, std::string)
intset_buffer_size (unsigned int)
intset_device_name (std::string)
intset_sample_rate (float)
boolsetup_required ()
intstart (bool)
intstop (bool)

Inherited from ARDOUR:PortManager

Methods
intconnect (std::string, std::string)
boolconnected (std::string)
intdisconnect (std::string, std::string)
intdisconnect_port (Port)
LuaTable(int, ...)get_backend_ports (std::string, DataType, PortFlags, StringVector&)
LuaTable(int, ...)get_connections (std::string, StringVector&)
voidget_physical_inputs (DataType, StringVector&, MidiPortFlags, MidiPortFlags)
voidget_physical_outputs (DataType, StringVector&, MidiPortFlags, MidiPortFlags)
Portget_port_by_name (std::string)
name
Full or short name of port

Returns Corresponding Port or 0.

LuaTable(int, ...)get_ports (DataType, PortList&)
std::stringget_pretty_name_by_name (std::string)
ChanCountn_physical_inputs ()
ChanCountn_physical_outputs ()
boolphysically_connected (std::string)
PortEngineport_engine ()
boolport_is_physical (std::string)
voidreset_input_meters ()

 ARDOUR:AudioPlaylist

C‡: boost::shared_ptr< ARDOUR::AudioPlaylist >, boost::weak_ptr< ARDOUR::AudioPlaylist >

is-a: ARDOUR:Playlist

A named object associated with a Session. Objects derived from this class are expected to be destroyed before the session calls drop_references().

Methods
boolisnil ()
timecnt_tread (FloatArray, FloatArray, FloatArray, timepos_t, timecnt_t, unsigned int)

Inherited from ARDOUR:Playlist

Methods
voidadd_region (Region, timepos_t, float, bool)
Regioncombine (RegionList, Track)
unsigned intcount_regions_at (timepos_t)
Playlistcut (TimelineRangeList&, bool)
DataTypedata_type ()
voidduplicate (Region, timepos_t&, timecnt_t, float)
voidduplicate_range (TimelineRange&, float)
voidduplicate_until (Region, timepos_t&, timecnt_t, timepos_t)
boolempty ()
Regionfind_next_region (timepos_t, RegionPoint, int)
timepos_tfind_next_region_boundary (timepos_t, int)
longfind_next_transient (timepos_t, int)
IDget_orig_track_id ()
boolhidden ()
voidlower_region (Region)
voidlower_region_to_bottom (Region)
unsigned intn_regions ()
voidraise_region (Region)
voidraise_region_to_top (Region)
Regionregion_by_id (ID)
RegionListPtrregion_list ()
RegionListPtrregions_at (timepos_t)
RegionListPtrregions_touched (timepos_t, timepos_t)
RegionListPtrregions_with_end_within (Range)
RegionListPtrregions_with_start_within (Range)
voidremove_region (Region)
boolset_name (std::string)
boolshared ()
voidsplit_region (Region, timepos_t)
Regiontop_region_at (timepos_t)
Regiontop_unmuted_region_at (timepos_t)
voiduncombine (Region)
boolused ()
Cast
AudioPlaylistto_audioplaylist ()
MidiPlaylistto_midiplaylist ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:AudioPort

C‡: boost::shared_ptr< ARDOUR::AudioPort >, boost::weak_ptr< ARDOUR::AudioPort >

is-a: ARDOUR:Port

Methods
boolisnil ()

Inherited from ARDOUR:Port

Methods
intconnect (std::string)
boolconnected ()

Returns true if this port is connected to anything

boolconnected_to (std::string)
o
Port name

Returns true if this port is connected to o, otherwise false.

intdisconnect (std::string)
intdisconnect_all ()
PortFlagsflags ()

Returns flags

LuaTable(...)get_connected_latency_range (LatencyRange&, bool)
std::stringname ()

Returns Port short name

boolphysically_connected ()
std::stringpretty_name (bool)

Returns Port human readable name

LatencyRangeprivate_latency_range (bool)
LatencyRangepublic_latency_range (bool)
boolreceives_input ()

Returns true if this Port receives input, otherwise false

boolsends_output ()

Returns true if this Port sends output, otherwise false

Cast
AsyncMIDIPortto_asyncmidiport ()
AudioPortto_audioport ()
MidiPortto_midiport ()

 ARDOUR:AudioPortMeters

C‡: std::map<std::string, ARDOUR::PortManager::DPM >

Constructor
ARDOUR.AudioPortMeters ()
Methods
LuaTableadd (std::string, ARDOUR::PortManager::DPM )
...at (--lua--)
voidclear ()
unsigned longcount (std::string)
boolempty ()
LuaIteriter ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR:AudioRegion

C‡: boost::shared_ptr< ARDOUR::AudioRegion >, boost::weak_ptr< ARDOUR::AudioRegion >

is-a: ARDOUR:Region

A named object associated with a Session. Objects derived from this class are expected to be destroyed before the session calls drop_references().

Methods
AudioSourceaudio_source (unsigned int)
AutomationListenvelope ()
boolenvelope_active ()
boolfade_in_active ()
boolfade_out_active ()
boolisnil ()
doublemaximum_amplitude (Progress)

Returns the maximum (linear) amplitude of the region, or a -ve number if the Progress object reports that the process was cancelled.

unsigned intn_channels ()
doublerms (Progress)

Returns the maximum (rms) signal power of the region, or a -1 if the Progress object reports that the process was cancelled.

floatscale_amplitude ()
LuaTable(int, ...)separate_by_channel (RegionVector&)
voidset_envelope_active (bool)
voidset_fade_in_active (bool)
voidset_fade_in_length (long)
voidset_fade_in_shape (FadeShape)
voidset_fade_out_active (bool)
voidset_fade_out_length (long)
voidset_fade_out_shape (FadeShape)
voidset_scale_amplitude (float)
Cast
Readableto_readable ()

Inherited from ARDOUR:Region

Methods
boolat_natural_position ()
boolautomatic ()
boolcan_move ()
boolcaptured ()
voidcaptured_xruns (XrunPositions&, bool)
voidclear_sync_position ()
Controlcontrol (Parameter, bool)
boolcovers (timepos_t)
voidcut_end (timepos_t)
voidcut_front (timepos_t)
DataTypedata_type ()
boolexternal ()
boolhas_transients ()
boolhidden ()
boolimport ()
boolis_compound ()
unsigned intlayer ()
timecnt_tlength ()
boollocked ()
voidlower ()
voidlower_to_bottom ()
StringVectormaster_source_names ()
SourceListmaster_sources ()
voidmove_start (timecnt_t)
voidmove_to_natural_position ()
boolmuted ()
voidnudge_position (timecnt_t)
boolopaque ()
Playlistplaylist ()
timepos_tposition ()

How the region parameters play together:

POSITION: first sample of the region along the timeline START: first sample of the region within its source(s) LENGTH: number of samples the region represents

boolposition_locked ()
voidraise ()
voidraise_to_top ()
voidset_hidden (bool)
voidset_initial_position (timepos_t)
voidset_length (timecnt_t)
voidset_locked (bool)
voidset_muted (bool)
boolset_name (std::string)

Note: changing the name of a Region does not constitute an edit

voidset_opaque (bool)
voidset_position (timepos_t)
voidset_position_locked (bool)
voidset_start (timepos_t)
voidset_sync_position (timepos_t)
voidset_video_locked (bool)
floatshift ()
Sourcesource (unsigned int)
timepos_tstart ()
floatstretch ()
boolsync_marked ()
LuaTable(timecnt_t, ...)sync_offset (int&)
timepos_tsync_position ()

Returns Sync position in session time

Int64Listtransients ()
voidtrim_end (timepos_t)
voidtrim_front (timepos_t)
voidtrim_to (timepos_t, timecnt_t)
boolvideo_locked ()
boolwhole_file ()
Cast
AudioRegionto_audioregion ()
MidiRegionto_midiregion ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:AudioRom

C‡: boost::shared_ptr< ARDOUR::AudioRom >, boost::weak_ptr< ARDOUR::AudioRom >

is-a: ARDOUR:Readable

Methods
boolisnil ()
AudioRomnew_rom (FloatArray, unsigned long)

Inherited from ARDOUR:Readable

Methods
ReadableListload (Session&, std::string)
unsigned intn_channels ()
longread (FloatArray, long, long, int)
longreadable_length ()

 ARDOUR:AudioSource

C‡: boost::shared_ptr< ARDOUR::AudioSource >, boost::weak_ptr< ARDOUR::AudioSource >

is-a: ARDOUR:Source

A named object associated with a Session. Objects derived from this class are expected to be destroyed before the session calls drop_references().

Methods
std::stringcaptured_for ()
boolempty ()
boolisnil ()
boolisnil ()
timepos_tlength ()
unsigned intn_channels ()
unsigned intn_channels ()
longread (FloatArray, long, long, int)
longreadable_length ()
longreadable_length ()
floatsample_rate ()
Cast
Readableto_readable ()

Inherited from ARDOUR:Source

Methods
std::stringancestor_name ()
boolcan_be_analysed ()
XrunPositionscaptured_xruns ()
boolhas_been_analysed ()
timepos_tnatural_position ()
timepos_ttimeline_position ()
longtimestamp ()
intuse_count ()
boolused ()
boolwritable ()
Cast
AudioSourceto_audiosource ()
FileSourceto_filesource ()
MidiSourceto_midisource ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:AudioTrack

C‡: boost::shared_ptr< ARDOUR::AudioTrack >, boost::weak_ptr< ARDOUR::AudioTrack >

is-a: ARDOUR:Track

A track is an route (bus) with a recordable diskstream and related objects relevant to recording, playback and editing.

Specifically a track has a playlist object that describes material to be played from disk, and modifies that object during recording and editing.

Methods
boolisnil ()

Inherited from ARDOUR:Track

Constructor
ARDOUR.Track ()
Methods
Regionbounce (InterThreadInfo&, std::string)

bounce track from session start to session end to new region

itt
asynchronous progress report and cancel

Returns a new audio region (or nil in case of error)

Regionbounce_range (long, long, InterThreadInfo&, Processor, bool, std::string)

Bounce the given range to a new audio region.

start
start time (in samples)
end
end time (in samples)
itt
asynchronous progress report and cancel
endpoint
the processor to tap the signal off (or nil for the top)
include_endpoint
include the given processor in the bounced audio.

Returns a new audio region (or nil in case of error)

boolbounceable (Processor, bool)

Test if the track can be bounced with the given settings. If sends/inserts/returns are present in the signal path or the given track has no audio outputs bouncing is not possible.

endpoint
the processor to tap the signal off (or nil for the top)
include_endpoint
include the given processor in the bounced audio.

Returns true if the track can be bounced, or false otherwise.

boolcan_record ()
intfind_and_use_playlist (DataType, ID)
Playlistplaylist ()
boolset_name (std::string)
intuse_copy_playlist ()
intuse_new_playlist (DataType)
intuse_playlist (DataType, Playlist, bool)
Cast
AudioTrackto_audio_track ()
MidiTrackto_midi_track ()

Inherited from ARDOUR:Route

Methods
boolactive ()
intadd_aux_send (Route, Processor)

Add an aux send to a route.

route
route to send to.
before
Processor to insert before, or 0 to insert at the end.
intadd_foldback_send (Route, bool)
intadd_processor_by_index (Processor, int, ProcessorStreams, bool)

Add a processor to a route such that it ends up with a given index into the visible processors.

index
Index to add the processor at, or -1 to add at the end of the list.

Returns 0 on success, non-0 on failure.

booladd_sidechain (Processor)
Ampamp ()
std::stringcomment ()
boolcustomize_plugin_insert (Processor, unsigned int, ChanCount, ChanCount)

enable custom plugin-insert configuration

proc
Processor to customize
count
number of plugin instances to use (if zero, reset to default)
outs
output port customization
sinks
input pins for variable-I/O plugins

Returns true if successful

DataTypedata_type ()
IOinput ()
Deliverymain_outs ()

the signal processorat at end of the processing chain which produces output

MonitorControlmonitoring_control ()
MonitorStatemonitoring_state ()
boolmuted ()
ChanCountn_inputs ()
ChanCountn_outputs ()
Processornth_plugin (unsigned int)
Processornth_processor (unsigned int)
Processornth_send (unsigned int)
IOoutput ()
PannerShellpanner_shell ()
PeakMeterpeak_meter ()

************************************************************* Pure interface begins here*************************************************************

longplayback_latency (bool)
intremove_processor (Processor, ProcessorStreams, bool)

remove plugin/processor

proc
processor to remove
err
error report (index where removal vailed, channel-count why it failed) may be nil
need_process_lock
if locking is required (set to true, unless called from RT context with lock)

Returns 0 on success

intremove_processors (ProcessorList, ProcessorStreams)
boolremove_sidechain (Processor)
intreorder_processors (ProcessorList, ProcessorStreams)
intreplace_processor (Processor, Processor, ProcessorStreams)

replace plugin/processor with another

old
processor to remove
sub
processor to substitute the old one with
err
error report (index where removal vailed, channel-count why it failed) may be nil

Returns 0 on success

boolreset_plugin_insert (Processor)

reset plugin-insert configuration to default, disable customizations.

This is equivalent to calling

 customize_plugin_insert (proc, 0, unused)
proc
Processor to reset

Returns true if successful

voidset_active (bool, void*)
voidset_comment (std::string, void*)
voidset_meter_point (MeterPoint)
boolset_strict_io (bool)
longsignal_latency ()
boolsoloed ()
boolstrict_io ()
Processorthe_instrument ()

Return the first processor that accepts has at least one MIDI input and at least one audio output. In the vast majority of cases, this will be "the instrument". This does not preclude other MIDI->audio processors later in the processing chain, but that would be a special case not covered by this utility function.

Amptrim ()
Cast
Trackto_track ()

Inherited from ARDOUR:Stripable

Methods
AutomationControlcomp_enable_controllable ()
AutomationControlcomp_makeup_controllable ()
AutomationControlcomp_mode_controllable ()
std::stringcomp_mode_name (unsigned int)
ReadOnlyControlcomp_redux_controllable ()
AutomationControlcomp_speed_controllable ()
std::stringcomp_speed_name (unsigned int)
AutomationControlcomp_threshold_controllable ()
unsigned inteq_band_cnt ()
std::stringeq_band_name (unsigned int)
AutomationControleq_enable_controllable ()
AutomationControleq_freq_controllable (unsigned int)
AutomationControleq_gain_controllable (unsigned int)
AutomationControleq_q_controllable (unsigned int)
AutomationControleq_shape_controllable (unsigned int)
AutomationControlfilter_enable_controllable (bool)
AutomationControlfilter_freq_controllable (bool)
AutomationControlfilter_slope_controllable (bool)
GainControlgain_control ()
boolis_auditioner ()
boolis_hidden ()
boolis_master ()
boolis_monitor ()
boolis_private_route ()
boolis_selected ()
AutomationControlmaster_send_enable_controllable ()
MonitorProcessormonitor_control ()
MuteControlmute_control ()
AutomationControlpan_azimuth_control ()
AutomationControlpan_elevation_control ()
AutomationControlpan_frontback_control ()
AutomationControlpan_lfe_control ()
AutomationControlpan_width_control ()
PhaseControlphase_control ()
PresentationInfopresentation_info_ptr ()
AutomationControlrec_enable_control ()
AutomationControlrec_safe_control ()
AutomationControlsend_enable_controllable (unsigned int)
AutomationControlsend_level_controllable (unsigned int)
std::stringsend_name (unsigned int)
AutomationControlsend_pan_azimuth_controllable (unsigned int)
AutomationControlsend_pan_azimuth_enable_controllable (unsigned int)
voidset_presentation_order (unsigned int)
boolslaved ()
boolslaved_to (VCA)
SoloControlsolo_control ()
SoloIsolateControlsolo_isolate_control ()
SoloSafeControlsolo_safe_control ()
GainControltrim_control ()
Cast
Automatableto_automatable ()
Routeto_route ()
Slavableto_slavable ()
VCAto_vca ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:AudioTrackList

C‡: std::list<boost::shared_ptr<ARDOUR::AudioTrack> >

Constructor
ARDOUR.AudioTrackList ()
Methods
LuaTableadd (LuaTable {AudioTrack})
AudioTrackback ()
boolempty ()
AudioTrackfront ()
LuaIteriter ()
voidpush_back (AudioTrack)
voidreverse ()
unsigned longsize ()
LuaTabletable ()
voidunique ()

 ARDOUR:Automatable

C‡: boost::shared_ptr< ARDOUR::Automatable >, boost::weak_ptr< ARDOUR::Automatable >

is-a: Evoral:ControlSet

Methods
ParameterListall_automatable_params ()

API for Lua binding

AutomationControlautomation_control (Parameter, bool)
boolisnil ()
Cast
Slavableto_slavable ()

 ARDOUR:AutomatableSequence

C‡: boost::shared_ptr< ARDOUR::AutomatableSequence<Temporal::Beats> >, boost::weak_ptr< ARDOUR::AutomatableSequence<Temporal::Beats> >

is-a: ARDOUR:Automatable

Methods
boolisnil ()
Cast
Sequenceto_sequence ()

Inherited from ARDOUR:Automatable

Methods
ParameterListall_automatable_params ()

API for Lua binding

AutomationControlautomation_control (Parameter, bool)
Cast
Slavableto_slavable ()

 ARDOUR:AutomationControl

C‡: boost::shared_ptr< ARDOUR::AutomationControl >, boost::weak_ptr< ARDOUR::AutomationControl >

is-a: PBD:Controllable

A PBD::Controllable with associated automation data (AutomationList)

Methods
AutomationListalist ()
AutoStateautomation_state ()
ParameterDescriptordesc ()
doubleget_value ()

Get `internal' value

Returns raw value as used for the plugin/processor control port

boolisnil ()
doublelower ()
doublenormal ()
voidset_automation_state (AutoState)
voidset_value (double, GroupControlDisposition)

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.

value
raw numeric value to set
group_override
if and how to propagate value to grouped controls
voidstart_touch (timepos_t)
voidstop_touch (timepos_t)
booltoggled ()
doubleupper ()
boolwritable ()
Cast
Controlto_ctrl ()
SlavableAutomationControlto_slavable ()

Inherited from PBD:Controllable

Methods
voiddump_registry ()
std::stringname ()
ControllableSetregistered_controllables ()
Cast
AutomationControlto_automationcontrol ()
MPGainControlto_mpgain ()
MPToggleControlto_mptoggle ()

Inherited from PBD:StatefulPtr

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:AutomationList

C‡: boost::shared_ptr< ARDOUR::AutomationList >, boost::weak_ptr< ARDOUR::AutomationList >

is-a: Evoral:ControlList

AutomationList is a stateful wrapper around Evoral::ControlList. It includes session-specifics (such as automation state), control logic (e.g. touch, signals) and acts as proxy to the underlying ControlList which holds the actual data.

Methods
XMLNodeget_state ()
boolisnil ()
Commandmemento_command (XMLNode, XMLNode)
booltouch_enabled ()
booltouching ()
boolwriting ()
Cast
ControlListlist ()
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

Inherited from Evoral:ControlList

Methods
voidadd (timepos_t, double, bool, bool)
voidclear (timepos_t, timepos_t)
voidclear_list ()
booleditor_add (timepos_t, double, bool)
doubleeval (timepos_t)
EventListevents ()

Returns the list of events

boolin_write_pass ()

Returns true if transport is running and this list is in write mode

InterpolationStyleinterpolation ()

query interpolation style of the automation data

Returns Interpolation Style

LuaTable(double, ...)rt_safe_eval (timepos_t, bool&)
boolset_interpolation (InterpolationStyle)

Sets the interpolation style of the automation data.

This will fail when asking for Logarithmic scale and min,max crosses 0 or Exponential scale with min != 0.

is
interpolation style

Returns true if style change was successful

unsigned longsize ()
voidthin (double)

Thin the number of events in this list.

The thinning factor corresponds to the area of a triangle computed between three points in the list (time-difference * value-difference). If the area is large, it indicates significant non-linearity between the points.

Time is measured in samples, value is usually normalized to 0..1.

During automation recording we thin the recorded points using this value. If a point is sufficiently co-linear with its neighbours (as defined by the area of the triangle formed by three of them), we will not include it in the list. The larger the value, the more points are excluded, so this effectively measures the amount of thinning to be done.

thinning_factor
area-size (default: 20)
voidtruncate_end (timepos_t)
voidtruncate_start (timecnt_t)
Cast
AutomationListto_automationlist ()

 ARDOUR:AutomationTypeSet

C‡: std::set<ARDOUR::AutomationType >

Constructor
ARDOUR.AutomationTypeSet ()
Methods
voidclear ()
boolempty ()
LuaIteriter ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR:BackendVector

C‡: std::vector<ARDOUR::AudioBackendInfo const* >

Constructor
ARDOUR.BackendVector ()
Methods
AudioBackendInfoat (unsigned long)
boolempty ()
LuaIteriter ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR:BufferSet

C‡: ARDOUR::BufferSet

A set of buffers of various types.

These are mainly accessed from Session and passed around as scratch buffers (eg as parameters to run() methods) to do in-place signal processing.

There are two types of counts associated with a BufferSet - available, and the 'use count'. Available is the actual number of allocated buffers (and so is the maximum acceptable value for the use counts).

The use counts are how things determine the form of their input and inform others the form of their output (eg what they did to the BufferSet). Setting the use counts is realtime safe.

Methods
ChanCountavailable ()
ChanCountcount ()
AudioBufferget_audio (unsigned long)
MidiBufferget_midi (unsigned long)

 ARDOUR:Bundle

C‡: boost::shared_ptr< ARDOUR::Bundle >, boost::weak_ptr< ARDOUR::Bundle >

A set of `channels', each of which is associated with 0 or more ports. Each channel has a name which can be anything useful, and a data type. Intended for grouping things like, for example, a buss' outputs. `Channel' is a rather overloaded term but I can't think of a better one right now.

Methods
std::stringchannel_name (unsigned int)
ch
Channel.

Returns Channel name.

boolisnil ()
unsigned intn_total ()
std::stringname ()

Returns Bundle name

ChanCountnchannels ()

Returns Number of channels that this Bundle has

boolports_are_inputs ()
boolports_are_outputs ()
Cast
UserBundleto_userbundle ()

 ARDOUR:BundleListPtr

C‡: boost::shared_ptr<std::vector<boost::shared_ptr<ARDOUR::Bundle> > >

Constructor
ARDOUR.BundleListPtr ()
Methods
LuaTableadd (LuaTable {Bundle})
Bundleat (unsigned long)
boolempty ()
LuaIteriter ()
voidpush_back (Bundle)
unsigned longsize ()
LuaTabletable ()

 ARDOUR:ChanCount

C‡: ARDOUR::ChanCount

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 intget (DataType)

query channel count for given type

t
data type

Returns channel count for given type

unsigned intn_audio ()

query number of audio channels

Returns number of audio channels

unsigned intn_midi ()

query number of midi channels

Returns number of midi channels

unsigned intn_total ()

query total channel count of all data types

Returns total channel count (audio + midi)

voidreset ()

zero count of all data types

voidset (DataType, unsigned int)

set channel count for given type

t
data type
count
number of channels
voidset_audio (unsigned int)

set number of audio channels

a
number of audio channels
voidset_midi (unsigned int)

set number of audio channels

m
number of midi channels

 ARDOUR:ChanMapping

C‡: ARDOUR::ChanMapping

A mapping from one set of channels to another. The general form is 1 source (from), many sinks (to). numeric IDs are used to identify sources and sinks.

for plugins this is used to map "plugin-pin" to "audio-buffer"

Constructor
ARDOUR.ChanMapping ()
Methods
ChanCountcount ()
unsigned intget (DataType, unsigned int)

get buffer mapping for given data type and pin

type
data type
from
numeric source id

Returns mapped buffer number (or ChanMapping::Invalid)

boolis_monotonic ()

Test if this mapping is monotonic (useful to see if inplace processing is feasible)

Returns true if the map is a strict monotonic set

unsigned intn_total ()
voidset (DataType, unsigned int, unsigned int)

set buffer mapping for given data type

type
data type
from
numeric source id
to
buffer

 ARDOUR:ControlList

C‡: std::list<boost::shared_ptr<ARDOUR::AutomationControl> >

Constructor
ARDOUR.ControlList ()
Methods
LuaTableadd (LuaTable {AutomationControl})
AutomationControlback ()
boolempty ()
AutomationControlfront ()
LuaIteriter ()
voidpush_back (AutomationControl)
voidreverse ()
unsigned longsize ()
LuaTabletable ()
voidunique ()

 ARDOUR:ControlListPtr

C‡: boost::shared_ptr<std::list<boost::shared_ptr<ARDOUR::AutomationControl> > >

Constructor
ARDOUR.ControlListPtr ()
Methods
LuaTableadd (LuaTable {AutomationControl})
boolempty ()
LuaIteriter ()
voidpush_back (AutomationControl)
voidreverse ()
unsigned longsize ()
LuaTabletable ()
voidunique ()

 ARDOUR:ControllableSet

C‡: std::set<boost::shared_ptr<PBD::Controllable> > >

Constructor
ARDOUR.ControllableSet ()
Methods
voidclear ()
boolempty ()
LuaIteriter ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR.DSP

Methods
floataccurate_coefficient_to_dB (float)
voidapply_gain_to_buffer (FloatArray, unsigned int, float)
floatcompute_peak (FloatArray, unsigned int, float)
voidcopy_vector (FloatArray, FloatArray, unsigned int)
floatdB_to_coefficient (float)
floatfast_coefficient_to_dB (float)
voidfind_peaks (FloatArray, unsigned int, FloatArray, FloatArray)
floatlog_meter (float)

non-linear power-scale meter deflection

power
signal power (dB)

Returns deflected value

floatlog_meter_coeff (float)

non-linear power-scale meter deflection

coeff
signal value

Returns deflected value

voidmemset (FloatArray, float, unsigned int)

lua wrapper to memset()

voidmix_buffers_no_gain (FloatArray, FloatArray, unsigned int)
voidmix_buffers_with_gain (FloatArray, FloatArray, unsigned int, float)
voidmmult (FloatArray, FloatArray, unsigned int)

matrix multiply multiply every sample of `data' with the corresponding sample at `mult'.

data
multiplicand
mult
multiplicand
n_samples
number of samples in data and mmult
LuaTable(...)peaks (FloatArray, float&, float&, unsigned int)
voidprocess_map (BufferSet, ChanCount, ChanMapping, ChanMapping, unsigned int, long)

 ARDOUR:DSP:Biquad

C‡: ARDOUR::DSP::Biquad

Biquad Filter

Constructor
ARDOUR.DSP.Biquad (double)

Instantiate Biquad Filter

samplerate
Samplerate
Methods
voidcompute (Type, double, double, double)

setup filter, compute coefficients

t
filter type (LowPass, HighPass, etc)
freq
filter frequency
Q
filter quality
gain
filter gain
voidconfigure (Biquad)
floatdB_at_freq (float)

filter transfer function (filter response for spectrum visualization)

freq
frequency

Returns gain at given frequency in dB (clamped to -120..+120)

voidreset ()

reset filter state

voidrun (FloatArray, unsigned int)

process audio data

data
pointer to audio-data
n_samples
number of samples to process
voidset_coefficients (double, double, double, double, double)

 ARDOUR:DSP:Convolution

C‡: ARDOUR::DSP::Convolution

Constructor
ARDOUR.DSP.Convolution (Session&, unsigned int, unsigned int)
Methods
booladd_impdata (unsigned int, unsigned int, Readable, float, unsigned int, long, long, unsigned int)
voidclear_impdata ()
unsigned intlatency ()
unsigned intn_inputs ()
unsigned intn_outputs ()
boolready ()
voidrestart ()
voidrun (BufferSet&, ChanMapping, ChanMapping, unsigned int, long)
voidrun_mono_buffered (FloatArray, unsigned int)
voidrun_mono_no_latency (FloatArray, unsigned int)

 ARDOUR:DSP:Convolver

C‡: ARDOUR::DSP::Convolver

is-a: ARDOUR:DSP:Convolution

Constructor
ARDOUR.DSP.Convolver (Session&, std::string, IRChannelConfig, IRSettings)
Methods
voidrun_stereo_buffered (FloatArray, FloatArray, unsigned int)
voidrun_stereo_no_latency (FloatArray, FloatArray, unsigned int)

Inherited from ARDOUR:DSP:Convolution

Constructor
ARDOUR.DSP.Convolution (Session&, unsigned int, unsigned int)
Methods
booladd_impdata (unsigned int, unsigned int, Readable, float, unsigned int, long, long, unsigned int)
voidclear_impdata ()
unsigned intlatency ()
unsigned intn_inputs ()
unsigned intn_outputs ()
boolready ()
voidrestart ()
voidrun (BufferSet&, ChanMapping, ChanMapping, unsigned int, long)
voidrun_mono_buffered (FloatArray, unsigned int)
voidrun_mono_no_latency (FloatArray, unsigned int)

 ARDOUR:DSP:DspShm

C‡: ARDOUR::DSP::DspShm

C/C++ Shared Memory

A convenience class representing a C array of float[] or int32_t[] data values. This is useful for lua scripts to perform DSP operations directly using C/C++ with CPU Hardware acceleration.

Access to this memory area is always 4 byte aligned. The data is interpreted either as float or as int.

This memory area can also be shared between different instances or the same lua plugin (DSP, GUI).

Since memory allocation is not realtime safe it should be allocated during dsp_init() or dsp_configure(). The memory is free()ed automatically when the lua instance is destroyed.

Constructor
ARDOUR.DSP.DspShm (unsigned long)
Methods
voidallocate (unsigned long)

[re] allocate memory in host's memory space

s
size, total number of float or integer elements to store.
intatomic_get_int (unsigned long)

atomically read integer at offset

This involves a memory barrier. This call is intended for buffers which are shared with another instance.

off
offset in shared memory region

Returns value at offset

voidatomic_set_int (unsigned long, int)

atomically set integer at offset

This involves a memory barrier. This call is intended for buffers which are shared with another instance.

off
offset in shared memory region
val
value to set
voidclear ()

clear memory (set to zero)

FloatArrayto_float (unsigned long)

access memory as float array

off
offset in shared memory region

Returns float[]

IntArrayto_int (unsigned long)

access memory as integer array

off
offset in shared memory region

Returns int_32_t[]

 ARDOUR:DSP:FFTSpectrum

C‡: ARDOUR::DSP::FFTSpectrum

Constructor
ARDOUR.DSP.FFTSpectrum (unsigned int, double)
Methods
voidexecute ()

process current data in buffer

floatfreq_at_bin (unsigned int)
floatpower_at_bin (unsigned int, float)

query

bin
the frequency bin 0 .. window_size / 2
norm
gain factor (set equal to bin for 1/f normalization)

Returns signal power at given bin (in dBFS)

voidset_data_hann (FloatArray, unsigned int, unsigned int)

 ARDOUR:DSP:Generator

C‡: ARDOUR::DSP::Generator

Constructor
ARDOUR.DSP.Generator ()
Methods
voidrun (FloatArray, unsigned int)
voidset_type (Type)

 ARDOUR:DSP:IRSettings

C‡: ARDOUR::DSP::Convolver::IRSettings

Constructor
ARDOUR.DSP.IRSettings ()
Methods
unsigned intget_channel_delay (unsigned int)
floatget_channel_gain (unsigned int)
voidset_channel_delay (unsigned int, unsigned int)
voidset_channel_gain (unsigned int, float)
Data Members
floatgain
unsigned intpre_delay

 ARDOUR:DSP:LTCReader

C‡: ARDOUR::LTCReader

Constructor
ARDOUR.DSP.LTCReader (int, LTC_TV_STANDARD)
Methods
LuaTable(long, ...)read (unsigned int&, unsigned int&, unsigned int&, unsigned int&, long&)
voidwrite (FloatArray, long, long)

 ARDOUR:DSP:LowPass

C‡: ARDOUR::DSP::LowPass

1st order Low Pass filter

Constructor
ARDOUR.DSP.LowPass (double, float)

instantiate a LPF

samplerate
samplerate
freq
cut-off frequency
Methods
voidctrl (FloatArray, float, unsigned int)

filter control data

This is useful for parameter smoothing.

data
pointer to control-data array
val
target value
n_samples
array length
voidproc (FloatArray, unsigned int)

process audio data

data
pointer to audio-data
n_samples
number of samples to process
voidreset ()

reset filter state

voidset_cutoff (float)

update filter cut-off frequency

freq
cut-off frequency

 ARDOUR:DataType

C‡: ARDOUR::DataType

A type of Data Ardour is capable of processing.

The majority of this class is dedicated to conversion to and from various other type representations, simple comparison between then, etc. This code is deliberately 'ugly' so other code doesn't have to be.

Constructor
ARDOUR.DataType (std::string)
Methods
DataTypeaudio ()

convenience constructor for DataType::AUDIO with managed lifetime

Returns DataType::AUDIO

DataTypemidi ()

convenience constructor for DataType::MIDI with managed lifetime

Returns DataType::MIDI

DataTypenull ()

convenience constructor for DataType::NIL with managed lifetime

Returns DataType::NIL

char*to_string ()

Inverse of the from-string constructor

 ARDOUR:DelayLine

C‡: boost::shared_ptr< ARDOUR::DelayLine >, boost::weak_ptr< ARDOUR::DelayLine >

is-a: ARDOUR:Processor

Meters peaks on the input and stores them for access.

Methods
longdelay ()
boolisnil ()

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:Delivery

C‡: boost::shared_ptr< ARDOUR::Delivery >, boost::weak_ptr< ARDOUR::Delivery >

is-a: ARDOUR:IOProcessor

A mixer strip element (Processor) with 1 or 2 IO elements.

Methods
boolisnil ()
PannerShellpanner_shell ()

Inherited from ARDOUR:IOProcessor

Methods
IOinput ()
ChanCountnatural_input_streams ()
ChanCountnatural_output_streams ()
IOoutput ()

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:DeviceStatus

C‡: ARDOUR::AudioBackend::DeviceStatus

used to list device names along with whether or not they are currently available.

Data Members
boolavailable
std::stringname

 ARDOUR:DeviceStatusVector

C‡: std::vector<ARDOUR::AudioBackend::DeviceStatus >

Constructor
ARDOUR.DeviceStatusVector ()
ARDOUR.DeviceStatusVector ()
Methods
LuaTableadd (LuaTable {DeviceStatus})
DeviceStatusat (unsigned long)
voidclear ()
boolempty ()
LuaIteriter ()
voidpush_back (DeviceStatus)
unsigned longsize ()
LuaTabletable ()
...to_array (--lua--)

 ARDOUR:DiskIOProcessor

C‡: boost::shared_ptr< ARDOUR::DiskIOProcessor >, boost::weak_ptr< ARDOUR::DiskIOProcessor >

is-a: ARDOUR:Processor

A mixer strip element - plugin, send, meter, etc

Methods
boolisnil ()

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:DiskReader

C‡: boost::shared_ptr< ARDOUR::DiskReader >, boost::weak_ptr< ARDOUR::DiskReader >

is-a: ARDOUR:DiskIOProcessor

A mixer strip element - plugin, send, meter, etc

Methods
boolisnil ()

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:DiskWriter

C‡: boost::shared_ptr< ARDOUR::DiskWriter >, boost::weak_ptr< ARDOUR::DiskWriter >

is-a: ARDOUR:DiskIOProcessor

A mixer strip element - plugin, send, meter, etc

Methods
boolisnil ()

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:EventList

C‡: std::list<Evoral::ControlEvent* >

Constructor
ARDOUR.EventList ()
Methods
ControlEventback ()
boolempty ()
ControlEventfront ()
LuaIteriter ()
voidreverse ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR:FileSource

C‡: boost::shared_ptr< ARDOUR::FileSource >, boost::weak_ptr< ARDOUR::FileSource >

is-a: ARDOUR:Source

A source associated with a file on disk somewhere

Methods
unsigned shortchannel ()
floatgain ()
boolisnil ()
std::stringorigin ()
std::stringpath ()
std::stringtake_id ()
boolwithin_session ()

Inherited from ARDOUR:Source

Methods
std::stringancestor_name ()
boolcan_be_analysed ()
XrunPositionscaptured_xruns ()
boolempty ()
boolhas_been_analysed ()
timepos_tlength ()
timepos_tnatural_position ()
timepos_ttimeline_position ()
longtimestamp ()
intuse_count ()
boolused ()
boolwritable ()
Cast
AudioSourceto_audiosource ()
FileSourceto_filesource ()
MidiSourceto_midisource ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:FluidSynth

C‡: ARDOUR::FluidSynth

Constructor
ARDOUR.FluidSynth (float, int)

instantiate a Synth

samplerate
samplerate
polyphony
polyphony
Methods
boolload_sf2 (std::string)
boolmidi_event (unsigned char*, unsigned long)
voidpanic ()
unsigned intprogram_count ()
std::stringprogram_name (unsigned int)
boolselect_program (unsigned int, unsigned char)
boolsynth (FloatArray, FloatArray, unsigned int)

 ARDOUR:GainControl

C‡: boost::shared_ptr< ARDOUR::GainControl >, boost::weak_ptr< ARDOUR::GainControl >

is-a: ARDOUR:SlavableAutomationControl

A PBD::Controllable with associated automation data (AutomationList)

Methods
boolisnil ()

Inherited from ARDOUR:SlavableAutomationControl

Methods
voidadd_master (AutomationControl)
voidclear_masters ()
intget_boolean_masters ()
doubleget_masters_value ()
voidremove_master (AutomationControl)
boolslaved ()
boolslaved_to (AutomationControl)

Inherited from ARDOUR:AutomationControl

Methods
AutomationListalist ()
AutoStateautomation_state ()
ParameterDescriptordesc ()
doubleget_value ()

Get `internal' value

Returns raw value as used for the plugin/processor control port

doublelower ()
doublenormal ()
voidset_automation_state (AutoState)
voidset_value (double, GroupControlDisposition)

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.

value
raw numeric value to set
group_override
if and how to propagate value to grouped controls
voidstart_touch (timepos_t)
voidstop_touch (timepos_t)
booltoggled ()
doubleupper ()
boolwritable ()
Cast
Controlto_ctrl ()
SlavableAutomationControlto_slavable ()

Inherited from PBD:Controllable

Methods
voiddump_registry ()
std::stringname ()
ControllableSetregistered_controllables ()
Cast
AutomationControlto_automationcontrol ()
MPGainControlto_mpgain ()
MPToggleControlto_mptoggle ()

Inherited from PBD:StatefulPtr

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:IO

C‡: boost::shared_ptr< ARDOUR::IO >, boost::weak_ptr< ARDOUR::IO >

is-a: ARDOUR:SessionObjectPtr

A collection of ports (all input or all output) with connections.

An IO can contain ports of varying types, making routes/inserts/etc with varied combinations of types (eg MIDI and audio) possible.

Methods
boolactive ()
intadd_port (std::string, void*, DataType)

Add a port.

destination
Name of port to connect new port to.
src
Source for emitted ConfigurationChanged signal.
type
Data type of port. Default value (NIL) will use this IO's default type.
AudioPortaudio (unsigned int)
intconnect (Port, std::string, void*)
intdisconnect (Port, std::string, void*)
intdisconnect_all (void*)
boolhas_port (Port)
boolisnil ()
longlatency ()
MidiPortmidi (unsigned int)
ChanCountn_ports ()
Portnth (unsigned int)
boolphysically_connected ()
Portport_by_name (unsigned int)
longpublic_latency ()
intremove_port (Port, void*)

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:IOProcessor

C‡: boost::shared_ptr< ARDOUR::IOProcessor >, boost::weak_ptr< ARDOUR::IOProcessor >

is-a: ARDOUR:Processor

A mixer strip element (Processor) with 1 or 2 IO elements.

Methods
IOinput ()
boolisnil ()
ChanCountnatural_input_streams ()
ChanCountnatural_output_streams ()
IOoutput ()

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:InterThreadInfo

C‡: ARDOUR::InterThreadInfo

Constructor
ARDOUR.InterThreadInfo ()
Data Members
booldone
floatprogress

 ARDOUR:InternalReturn

C‡: boost::shared_ptr< ARDOUR::InternalReturn >, boost::weak_ptr< ARDOUR::InternalReturn >

is-a: ARDOUR:Return

A mixer strip element - plugin, send, meter, etc

Methods
boolisnil ()

Inherited from ARDOUR:IOProcessor

Methods
IOinput ()
ChanCountnatural_input_streams ()
ChanCountnatural_output_streams ()
IOoutput ()

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:InternalSend

C‡: boost::shared_ptr< ARDOUR::InternalSend >, boost::weak_ptr< ARDOUR::InternalSend >

is-a: ARDOUR:Send

A mixer strip element (Processor) with 1 or 2 IO elements.

Methods
boolallow_feedback ()
std::stringdisplay_name ()
boolfeeds (Route)
boolisnil ()
voidset_allow_feedback (bool)
boolset_name (std::string)
Routesource_route ()
Routetarget_route ()

Inherited from ARDOUR:Send

Methods
GainControlgain_control ()
longget_delay_in ()
longget_delay_out ()
boolis_foldback ()
voidset_remove_on_disconnect (bool)
Cast
InternalSendto_internalsend ()

Inherited from ARDOUR:Delivery

Methods
PannerShellpanner_shell ()

Inherited from ARDOUR:IOProcessor

Methods
IOinput ()
ChanCountnatural_input_streams ()
ChanCountnatural_output_streams ()
IOoutput ()

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:LatencyRange

C‡: ARDOUR::LatencyRange

Constructor
ARDOUR.LatencyRange ()
Data Members
unsigned intmax
unsigned intmin

 ARDOUR:Latent

C‡: boost::shared_ptr< ARDOUR::Latent >, boost::weak_ptr< ARDOUR::Latent >

Methods
longeffective_latency ()
boolisnil ()
voidset_user_latency (long)
voidunset_user_latency ()
longuser_latency ()

 ARDOUR:Location

C‡: ARDOUR::Location

is-a: PBD:StatefulDestructible

Location on Timeline - abstract representation for Markers, Loop/Punch Ranges, CD-Markers etc.

Methods
timepos_t_end ()
Flagsflags ()
boolis_auto_loop ()
boolis_auto_punch ()
boolis_cd_marker ()
boolis_cue_marker ()
boolis_hidden ()
boolis_mark ()
boolis_range_marker ()
boolis_session_range ()
timecnt_tlength ()
voidlock ()
boollocked ()
boolmatches (Flags)
intmove_to (timepos_t)
std::stringname ()
intset (timepos_t, timepos_t)
intset_end (timepos_t, bool)
intset_length (timepos_t, timepos_t)
voidset_name (std::string)

Set location name

intset_start (timepos_t, bool)
timepos_tstart ()
voidunlock ()

Inherited from PBD:Stateful

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:LocationList

C‡: std::list<ARDOUR::Location* >

Constructor
ARDOUR.LocationList ()
Methods
Locationback ()
boolempty ()
Locationfront ()
LuaIteriter ()
voidreverse ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR:Locations

C‡: ARDOUR::Locations

is-a: PBD:StatefulDestructible

A collection of session locations including unique dedicated locations (loop, punch, etc)

Methods
Locationadd_range (timepos_t, timepos_t)
Locationauto_loop_location ()
Locationauto_punch_location ()
LuaTable(...)find_all_between (timepos_t, timepos_t, LocationList&, Flags)
timepos_tfirst_mark_after (timepos_t, bool)
Locationfirst_mark_at (timepos_t, timecnt_t)
timepos_tfirst_mark_before (timepos_t, bool)
LocationListlist ()
Locationmark_at (timepos_t, timecnt_t)
LuaTable(...)marks_either_side (timepos_t, timepos_t&, timepos_t&)
Locationrange_starts_at (timepos_t, timecnt_t, bool)
voidremove (Location)
Locationsession_range_location ()

Inherited from PBD:Stateful

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR.LuaAPI

Methods
std::stringascii_dtostr (double)
...build_filename (--lua--)

Creates a filename from a series of elements using the correct separator for filenames.

No attempt is made to force the resulting filename to be an absolute path. If the first element is a relative path, the result will be a relative path.

...color_to_rgba (--lua--)

A convenience function to expand RGBA parameters from an integer

convert a Canvas::Color (uint32_t 0xRRGGBBAA) into double RGBA values which can be passed as parameters to Cairo::Context::set_source_rgba

Example:

 local r, g, b, a = ARDOUR.LuaAPI.color_to_rgba (0x88aa44ff)
 cairo_ctx:set_source_rgba (ARDOUR.LuaAPI.color_to_rgba (0x11336699)

Returns 4 parameters: red, green, blue, alpha (in range 0..1)

...desc_scale_points (--lua--)
std::stringdump_untagged_plugins ()

Write a list of untagged plugins to a file, so we can bulk-tag them

Returns path to XML file or empty string on error

StringVectorenv ()

Return system environment variables (POSIX environ)

std::stringfile_get_contents (std::string)
boolfile_test (std::string, FileTest)
LuaTable(float, ...)get_plugin_insert_param (PluginInsert, unsigned int, bool&)

get a plugin control parameter value

pi
Plugin-Insert
which
control port to query (starting at 0, including ports of type input and output)
ok
boolean variable contains true or false after call returned. to be checked by caller before using value.

Returns value

LuaTable(float, ...)get_processor_param (Processor, unsigned int, bool&)

get a plugin control parameter value

proc
Plugin-Processor
which
control port to set (starting at 0, including ports of type input and output))
ok
boolean variable contains true or false after call returned. to be checked by caller before using value.

Returns value

...hsla_to_rgba (--lua--)

A convenience function for colorspace HSL to RGB conversion. All ranges are 0..1

Example:

 local r, g, b, a = ARDOUR.LuaAPI.hsla_to_rgba (hue, saturation, luminosity, alpha)

Returns 4 parameters: red, green, blue, alpha (in range 0..1)

PluginInfoListlist_plugins ()

List all installed plugins

longmonotonic_time ()
Processornew_luaproc (Session, std::string)
Processornew_luaproc_with_time_domain (Session, std::string, TimeDomain)

create a new Lua Processor (Plugin)

s
Session Handle
name
Identifier or Name of the Processor
td
Time domain (audio or beats) for any automation data

Returns Processor object (may be nil)

NotePtrnew_noteptr (unsigned char, Beats, Beats, unsigned char, unsigned char)
Processornew_plugin (Session, std::string, PluginType, std::string)
PluginInfonew_plugin_info (std::string, PluginType)

search a Plugin

name
Plugin Name, ID or URI
type
Plugin Type

Returns PluginInfo or nil if not found

Processornew_plugin_with_time_domain (Session, std::string, PluginType, TimeDomain, std::string)

create a new Plugin Instance

s
Session Handle
name
Plugin Name, ID or URI
type
Plugin Type
td
Time domain for any automation data
preset
name of plugin-preset to load, leave empty "" to not load any preset after instantiation

Returns Processor or nil

Processornew_send (Session, Route, Processor)

add a new [external] Send to the given Route

s
Session Handle
r
Route to add Send to
p
add send before given processor (or nil_processor to add at the end)
Processornil_proc ()
NotePtrListnote_list (MidiModel)
std::stringpath_get_basename (std::string)
...plugin_automation (--lua--)

A convenience function to get a Automation Lists and ParameterDescriptor for a given plugin control.

This is equivalent to the following lua code

 function (processor, param_id)
  local plugininsert = processor:to_insert ()
  local plugin = plugininsert:plugin(0)
  local _, t = plugin:get_parameter_descriptor(param_id, ARDOUR.ParameterDescriptor ())
  local ctrl = Evoral.Parameter (ARDOUR.AutomationType.PluginAutomation, 0, param_id)
  local ac = pi:automation_control (ctrl, false)
  local acl = ac:alist()
  return ac:alist(), ac:to_ctrl():list(), t[2]
 end

Example usage: get the third input parameter of first plugin on the given route (Ardour starts counting at zero).

 local al, cl, pd = ARDOUR.LuaAPI.plugin_automation (route:nth_plugin (0), 3)

Returns 3 parameters: AutomationList, ControlList, ParameterDescriptor

boolreset_processor_to_default (Processor)

reset a processor to its default values (only works for plugins )

This is a wrapper which looks up the Processor by plugin-insert.

proc
Plugin-Insert

Returns true on success, false when the processor is not a plugin

...sample_to_timecode (--lua--)

Generic conversion from audio sample count to timecode. (TimecodeType, sample-rate, sample-pos)

voidsegfault ()

Crash Test Dummy

boolset_plugin_insert_param (PluginInsert, unsigned int, float)

set a plugin control-input parameter value

This is a wrapper around set_processor_param which looks up the Processor by plugin-insert.

pi
Plugin-Insert
which
control-input to set (starting at 0)
value
value to set

Returns true on success, false on error or out-of-bounds value

boolset_processor_param (Processor, unsigned int, float)

set a plugin control-input parameter value

proc
Plugin-Processor
which
control-input to set (starting at 0)
value
value to set

Returns true on success, false on error or out-of-bounds value

...timecode_to_sample (--lua--)

Generic conversion from timecode to audio sample count. (TimecodeType, sample-rate, hh, mm, ss, ff)

voidusleep (unsigned long)
boolwait_for_process_callback (unsigned long, long)

Delay execution until next prcess cycle starts.

n_cycles
process-cycles to wait for. 0: means wait until next cycle-start, otherwise skip given number of cycles.
timeout_ms
wait at most this many milliseconds

Returns true on success, false if timeout was reached or engine was not running

 ARDOUR:LuaAPI:Rubberband

C‡: ARDOUR::LuaAPI::Rubberband

Constructor
ARDOUR.LuaAPI.Rubberband (AudioRegion, bool)
Methods
unsigned intn_channels ()
AudioRegionprocess (Lua-Function)
Readablereadable ()
longreadable_length ()
boolset_mapping (Lua-Function)
boolset_strech_and_pitch (double, double)

 ARDOUR:LuaAPI:Vamp

C‡: ARDOUR::LuaAPI::Vamp

Constructor
ARDOUR.LuaAPI.Vamp (std::string, float)
Methods
intanalyze (Readable, unsigned int, Lua-Function)

high-level abstraction to process a single channel of the given AudioReadable.

If the plugin is not yet initialized, initialize() is called.

if fn is not nil, it is called with the immediate Vamp::Plugin::Features on every process call.

r
readable
channel
channel to process
cb
lua callback function or nil

Returns 0 on success

boolinitialize ()

initialize the plugin for use with analyze().

This is equivalent to plugin():initialise (1, ssiz, bsiz) and prepares a plugin for analyze. (by preferred step and block sizes are used. if the plugin does not specify them or they're larger than 8K, both are set to 1024)

Manual initialization is only required to set plugin-parameters which depend on prior initialization of the plugin.

 vamp:reset ()
 vamp:initialize ()
 vamp:plugin():setParameter (0, 1.5, nil)
 vamp:analyze (r, 0)
StringVectorlist_plugins ()
Pluginplugin ()
FeatureSetprocess (FloatArrayVector, RealTime)

process given array of audio-samples.

This is a lua-binding for vamp:plugin():process ()

d
audio-data, the vector must match the configured channel count and hold a complete buffer for every channel as set during plugin():initialise()
rt
timestamp matching the provided buffer.

Returns features extracted from that data (if the plugin is causal)

voidreset ()

call plugin():reset() and clear initialization flag

 ARDOUR:LuaOSC:Address

C‡: ARDOUR::LuaOSC::Address

OSC transmitter

A Class to send OSC messages.

Constructor
ARDOUR.LuaOSC.Address (std::string)

Construct a new OSC transmitter object

uri
the destination uri e.g. "osc.udp://localhost:7890"
Methods
...send (--lua--)

Transmit an OSC message

Path (string) and type (string) must always be given. The number of following args must match the type. Supported types are:

'i': integer (lua number)

'f': float (lua number)

'd': double (lua number)

'h': 64bit integer (lua number)

's': string (lua string)

'c': character (lua string)

'T': boolean (lua bool) -- this is not implicily True, a lua true/false must be given

'F': boolean (lua bool) -- this is not implicily False, a lua true/false must be given

lua:
lua arguments: path, types, ...

Returns boolean true if successful, false on error.

 ARDOUR:LuaProc

C‡: boost::shared_ptr< ARDOUR::LuaProc >, boost::weak_ptr< ARDOUR::LuaProc >

is-a: ARDOUR:Plugin

A plugin is an external module (usually 3rd party provided) loaded into Ardour for the purpose of digital signal processing.

This class provides an abstraction for methords provided by all supported plugin standards such as presets, name, parameters etc.

Plugins are not used directly in Ardour but always wrapped by a PluginInsert.

Methods
boolisnil ()
DspShmshmem ()
LuaTableReftable ()

Inherited from ARDOUR:Plugin

Methods
IOPortDescriptiondescribe_io_port (DataType, bool, unsigned int)
std::stringget_docs ()
PluginInfoget_info ()
LuaTable(int, ...)get_parameter_descriptor (unsigned int, ParameterDescriptor&)
std::stringget_parameter_docs (unsigned int)
char*label ()
PresetRecordlast_preset ()

Returns Last preset to be requested; the settings may have been changed since; find out with parameter_changed_since_last_preset.

boolload_preset (PresetRecord)

Set parameters using a preset

char*maker ()
char*name ()
LuaTable(unsigned int, ...)nth_parameter (unsigned int, bool&)
unsigned intparameter_count ()
boolparameter_is_audio (unsigned int)
boolparameter_is_control (unsigned int)
boolparameter_is_input (unsigned int)
boolparameter_is_output (unsigned int)
std::stringparameter_label (unsigned int)
PresetRecordpreset_by_label (std::string)
PresetRecordpreset_by_uri (std::string)
voidremove_preset (std::string)
PresetRecordsave_preset (std::string)

Create a new plugin-preset from the current state

name
label to use for new preset (needs to be unique)

Returns PresetRecord with empty URI on failure

std::stringunique_id ()
Cast
LuaProcto_luaproc ()

Inherited from PBD:StatefulPtr

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:LuaTableRef

C‡: ARDOUR::LuaTableRef

Methods
...get (--lua--)
...set (--lua--)

 ARDOUR:MIDIPortMeters

C‡: std::map<std::string, ARDOUR::PortManager::MPM >

Constructor
ARDOUR.MIDIPortMeters ()
Methods
LuaTableadd (std::string, ARDOUR::PortManager::MPM )
...at (--lua--)
voidclear ()
unsigned longcount (std::string)
boolempty ()
LuaIteriter ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR:MPGainControl

C‡: boost::shared_ptr< ARDOUR::MPControl<float> >, boost::weak_ptr< ARDOUR::MPControl<float> >

is-a: PBD:Controllable

Methods
std::stringget_user_string ()
doubleget_value ()
boolisnil ()
doublelower ()
doublenormal ()
voidset_value (double, GroupControlDisposition)
doubleupper ()

Inherited from PBD:Controllable

Methods
voiddump_registry ()
std::stringname ()
ControllableSetregistered_controllables ()
Cast
AutomationControlto_automationcontrol ()
MPGainControlto_mpgain ()
MPToggleControlto_mptoggle ()

Inherited from PBD:StatefulPtr

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:MPToggleControl

C‡: boost::shared_ptr< ARDOUR::MPControl<bool> >, boost::weak_ptr< ARDOUR::MPControl<bool> >

is-a: PBD:Controllable

Methods
std::stringget_user_string ()
doubleget_value ()
boolisnil ()
doublelower ()
doublenormal ()
voidset_value (double, GroupControlDisposition)

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.

v
raw numeric value to set
gcd
if and how to propagate value to grouped controls
doubleupper ()

Inherited from PBD:Controllable

Methods
voiddump_registry ()
std::stringname ()
ControllableSetregistered_controllables ()
Cast
AutomationControlto_automationcontrol ()
MPGainControlto_mpgain ()
MPToggleControlto_mptoggle ()

Inherited from PBD:StatefulPtr

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:MidiBuffer

C‡: ARDOUR::MidiBuffer

Buffer containing 8-bit unsigned char (MIDI) data.

Methods
voidcopy (MidiBuffer)
boolempty ()
boolpush_back (long, EventType, unsigned long, unsigned char*)
boolpush_event (Event)
voidresize (unsigned long)

Reallocate the buffer used internally to handle at least size_t units of data.

The buffer is not silent after this operation. the capacity argument passed to the constructor must have been non-zero.

voidsilence (long, long)

Clear (eg zero, or empty) buffer

unsigned longsize ()
...table (--lua--)

 ARDOUR:MidiModel

C‡: boost::shared_ptr< ARDOUR::MidiModel >, boost::weak_ptr< ARDOUR::MidiModel >

is-a: ARDOUR:AutomatableSequence

This is a higher level (than MidiBuffer) model of MIDI data, with separate representations for notes (instead of just unassociated note on/off events) and controller data. Controller data is represented as part of the Automatable base (i.e. in a map of AutomationList, keyed by Parameter). Because of this MIDI controllers and automatable controllers/widgets/etc are easily interchangeable.

Methods
voidapply_command (Session, Command)
voidapply_diff_command_as_commit (Session, Command)
boolisnil ()
NoteDiffCommandnew_note_diff_command (std::string)

Start a new NoteDiff command.

This has no side-effects on the model or Session, the returned command can be held on to for as long as the caller wishes, or discarded without formality, until apply_diff_command_* is called and ownership is taken.

Inherited from ARDOUR:AutomatableSequence

Cast
Sequenceto_sequence ()

Inherited from ARDOUR:Automatable

Methods
ParameterListall_automatable_params ()

API for Lua binding

AutomationControlautomation_control (Parameter, bool)
Cast
Slavableto_slavable ()

 ARDOUR:MidiModel:DiffCommand

C‡: ARDOUR::MidiModel::DiffCommand

is-a: PBD:Command

Base class for Undo/Redo commands and changesets

This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.

Inherited from PBD:Command

Methods
std::stringname ()
voidset_name (std::string)

Inherited from PBD:Stateful

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:MidiModel:NoteDiffCommand

C‡: ARDOUR::MidiModel::NoteDiffCommand

is-a: ARDOUR:MidiModel:DiffCommand

Base class for Undo/Redo commands and changesets

Methods
voidadd (NotePtr)
voidremove (NotePtr)

Inherited from PBD:Command

Methods
std::stringname ()
voidset_name (std::string)

Inherited from PBD:Stateful

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:MidiPlaylist

C‡: boost::shared_ptr< ARDOUR::MidiPlaylist >, boost::weak_ptr< ARDOUR::MidiPlaylist >

is-a: ARDOUR:Playlist

A named object associated with a Session. Objects derived from this class are expected to be destroyed before the session calls drop_references().

Methods
boolisnil ()
voidset_note_mode (NoteMode)

Inherited from ARDOUR:Playlist

Methods
voidadd_region (Region, timepos_t, float, bool)
Regioncombine (RegionList, Track)
unsigned intcount_regions_at (timepos_t)
Playlistcut (TimelineRangeList&, bool)
DataTypedata_type ()
voidduplicate (Region, timepos_t&, timecnt_t, float)
voidduplicate_range (TimelineRange&, float)
voidduplicate_until (Region, timepos_t&, timecnt_t, timepos_t)
boolempty ()
Regionfind_next_region (timepos_t, RegionPoint, int)
timepos_tfind_next_region_boundary (timepos_t, int)
longfind_next_transient (timepos_t, int)
IDget_orig_track_id ()
boolhidden ()
voidlower_region (Region)
voidlower_region_to_bottom (Region)
unsigned intn_regions ()
voidraise_region (Region)
voidraise_region_to_top (Region)
Regionregion_by_id (ID)
RegionListPtrregion_list ()
RegionListPtrregions_at (timepos_t)
RegionListPtrregions_touched (timepos_t, timepos_t)
RegionListPtrregions_with_end_within (Range)
RegionListPtrregions_with_start_within (Range)
voidremove_region (Region)
boolset_name (std::string)
boolshared ()
voidsplit_region (Region, timepos_t)
Regiontop_region_at (timepos_t)
Regiontop_unmuted_region_at (timepos_t)
voiduncombine (Region)
boolused ()
Cast
AudioPlaylistto_audioplaylist ()
MidiPlaylistto_midiplaylist ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:MidiPort

C‡: boost::shared_ptr< ARDOUR::MidiPort >, boost::weak_ptr< ARDOUR::MidiPort >

is-a: ARDOUR:Port

Methods
MidiBufferget_midi_buffer (unsigned int)
boolinput_active ()
boolisnil ()
voidset_input_active (bool)
Cast
AsyncMIDIPortto_asyncmidiport ()

Inherited from ARDOUR:Port

Methods
intconnect (std::string)
boolconnected ()

Returns true if this port is connected to anything

boolconnected_to (std::string)
o
Port name

Returns true if this port is connected to o, otherwise false.

intdisconnect (std::string)
intdisconnect_all ()
PortFlagsflags ()

Returns flags

LuaTable(...)get_connected_latency_range (LatencyRange&, bool)
std::stringname ()

Returns Port short name

boolphysically_connected ()
std::stringpretty_name (bool)

Returns Port human readable name

LatencyRangeprivate_latency_range (bool)
LatencyRangepublic_latency_range (bool)
boolreceives_input ()

Returns true if this Port receives input, otherwise false

boolsends_output ()

Returns true if this Port sends output, otherwise false

Cast
AsyncMIDIPortto_asyncmidiport ()
AudioPortto_audioport ()
MidiPortto_midiport ()

 ARDOUR:MidiRegion

C‡: boost::shared_ptr< ARDOUR::MidiRegion >, boost::weak_ptr< ARDOUR::MidiRegion >

is-a: ARDOUR:Region

A named object associated with a Session. Objects derived from this class are expected to be destroyed before the session calls drop_references().

Methods
booldo_export (std::string)

Export the MIDI data of the MidiRegion to a new MIDI file (SMF).

boolisnil ()
MidiSourcemidi_source (unsigned int)
MidiModelmodel ()

Inherited from ARDOUR:Region

Methods
boolat_natural_position ()
boolautomatic ()
boolcan_move ()
boolcaptured ()
voidcaptured_xruns (XrunPositions&, bool)
voidclear_sync_position ()
Controlcontrol (Parameter, bool)
boolcovers (timepos_t)
voidcut_end (timepos_t)
voidcut_front (timepos_t)
DataTypedata_type ()
boolexternal ()
boolhas_transients ()
boolhidden ()
boolimport ()
boolis_compound ()
unsigned intlayer ()
timecnt_tlength ()
boollocked ()
voidlower ()
voidlower_to_bottom ()
StringVectormaster_source_names ()
SourceListmaster_sources ()
voidmove_start (timecnt_t)
voidmove_to_natural_position ()
boolmuted ()
voidnudge_position (timecnt_t)
boolopaque ()
Playlistplaylist ()
timepos_tposition ()

How the region parameters play together:

POSITION: first sample of the region along the timeline START: first sample of the region within its source(s) LENGTH: number of samples the region represents

boolposition_locked ()
voidraise ()
voidraise_to_top ()
voidset_hidden (bool)
voidset_initial_position (timepos_t)
voidset_length (timecnt_t)
voidset_locked (bool)
voidset_muted (bool)
boolset_name (std::string)

Note: changing the name of a Region does not constitute an edit

voidset_opaque (bool)
voidset_position (timepos_t)
voidset_position_locked (bool)
voidset_start (timepos_t)
voidset_sync_position (timepos_t)
voidset_video_locked (bool)
floatshift ()
Sourcesource (unsigned int)
timepos_tstart ()
floatstretch ()
boolsync_marked ()
LuaTable(timecnt_t, ...)sync_offset (int&)
timepos_tsync_position ()

Returns Sync position in session time

Int64Listtransients ()
voidtrim_end (timepos_t)
voidtrim_front (timepos_t)
voidtrim_to (timepos_t, timecnt_t)
boolvideo_locked ()
boolwhole_file ()
Cast
AudioRegionto_audioregion ()
MidiRegionto_midiregion ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:MidiSource

C‡: boost::shared_ptr< ARDOUR::MidiSource >, boost::weak_ptr< ARDOUR::MidiSource >

is-a: ARDOUR:Source

Source for MIDI data

Methods
boolempty ()
boolisnil ()
timepos_tlength ()
MidiModelmodel ()

Inherited from ARDOUR:Source

Methods
std::stringancestor_name ()
boolcan_be_analysed ()
XrunPositionscaptured_xruns ()
boolhas_been_analysed ()
timepos_tnatural_position ()
timepos_ttimeline_position ()
longtimestamp ()
intuse_count ()
boolused ()
boolwritable ()
Cast
AudioSourceto_audiosource ()
FileSourceto_filesource ()
MidiSourceto_midisource ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:MidiTrack

C‡: boost::shared_ptr< ARDOUR::MidiTrack >, boost::weak_ptr< ARDOUR::MidiTrack >

is-a: ARDOUR:Track

A track is an route (bus) with a recordable diskstream and related objects relevant to recording, playback and editing.

Specifically a track has a playlist object that describes material to be played from disk, and modifies that object during recording and editing.

Methods
unsigned shortget_capture_channel_mask ()
ChannelModeget_capture_channel_mode ()
ChannelModeget_playback_channel_mask ()
ChannelModeget_playback_channel_mode ()
boolinput_active ()
boolisnil ()
voidset_capture_channel_mask (unsigned short)
voidset_capture_channel_mode (ChannelMode, unsigned short)
voidset_input_active (bool)
voidset_playback_channel_mask (unsigned short)
voidset_playback_channel_mode (ChannelMode, unsigned short)
boolwrite_immediate_event (EventType, unsigned long, unsigned char*)

Inherited from ARDOUR:Track

Constructor
ARDOUR.Track ()
Methods
Regionbounce (InterThreadInfo&, std::string)

bounce track from session start to session end to new region

itt
asynchronous progress report and cancel

Returns a new audio region (or nil in case of error)

Regionbounce_range (long, long, InterThreadInfo&, Processor, bool, std::string)

Bounce the given range to a new audio region.

start
start time (in samples)
end
end time (in samples)
itt
asynchronous progress report and cancel
endpoint
the processor to tap the signal off (or nil for the top)
include_endpoint
include the given processor in the bounced audio.

Returns a new audio region (or nil in case of error)

boolbounceable (Processor, bool)

Test if the track can be bounced with the given settings. If sends/inserts/returns are present in the signal path or the given track has no audio outputs bouncing is not possible.

endpoint
the processor to tap the signal off (or nil for the top)
include_endpoint
include the given processor in the bounced audio.

Returns true if the track can be bounced, or false otherwise.

boolcan_record ()
intfind_and_use_playlist (DataType, ID)
Playlistplaylist ()
boolset_name (std::string)
intuse_copy_playlist ()
intuse_new_playlist (DataType)
intuse_playlist (DataType, Playlist, bool)
Cast
AudioTrackto_audio_track ()
MidiTrackto_midi_track ()

Inherited from ARDOUR:Route

Methods
boolactive ()
intadd_aux_send (Route, Processor)

Add an aux send to a route.

route
route to send to.
before
Processor to insert before, or 0 to insert at the end.
intadd_foldback_send (Route, bool)
intadd_processor_by_index (Processor, int, ProcessorStreams, bool)

Add a processor to a route such that it ends up with a given index into the visible processors.

index
Index to add the processor at, or -1 to add at the end of the list.

Returns 0 on success, non-0 on failure.

booladd_sidechain (Processor)
Ampamp ()
std::stringcomment ()
boolcustomize_plugin_insert (Processor, unsigned int, ChanCount, ChanCount)

enable custom plugin-insert configuration

proc
Processor to customize
count
number of plugin instances to use (if zero, reset to default)
outs
output port customization
sinks
input pins for variable-I/O plugins

Returns true if successful

DataTypedata_type ()
IOinput ()
Deliverymain_outs ()

the signal processorat at end of the processing chain which produces output

MonitorControlmonitoring_control ()
MonitorStatemonitoring_state ()
boolmuted ()
ChanCountn_inputs ()
ChanCountn_outputs ()
Processornth_plugin (unsigned int)
Processornth_processor (unsigned int)
Processornth_send (unsigned int)
IOoutput ()
PannerShellpanner_shell ()
PeakMeterpeak_meter ()

************************************************************* Pure interface begins here*************************************************************

longplayback_latency (bool)
intremove_processor (Processor, ProcessorStreams, bool)

remove plugin/processor

proc
processor to remove
err
error report (index where removal vailed, channel-count why it failed) may be nil
need_process_lock
if locking is required (set to true, unless called from RT context with lock)

Returns 0 on success

intremove_processors (ProcessorList, ProcessorStreams)
boolremove_sidechain (Processor)
intreorder_processors (ProcessorList, ProcessorStreams)
intreplace_processor (Processor, Processor, ProcessorStreams)

replace plugin/processor with another

old
processor to remove
sub
processor to substitute the old one with
err
error report (index where removal vailed, channel-count why it failed) may be nil

Returns 0 on success

boolreset_plugin_insert (Processor)

reset plugin-insert configuration to default, disable customizations.

This is equivalent to calling

 customize_plugin_insert (proc, 0, unused)
proc
Processor to reset

Returns true if successful

voidset_active (bool, void*)
voidset_comment (std::string, void*)
voidset_meter_point (MeterPoint)
boolset_strict_io (bool)
longsignal_latency ()
boolsoloed ()
boolstrict_io ()
Processorthe_instrument ()

Return the first processor that accepts has at least one MIDI input and at least one audio output. In the vast majority of cases, this will be "the instrument". This does not preclude other MIDI->audio processors later in the processing chain, but that would be a special case not covered by this utility function.

Amptrim ()
Cast
Trackto_track ()

Inherited from ARDOUR:Stripable

Methods
AutomationControlcomp_enable_controllable ()
AutomationControlcomp_makeup_controllable ()
AutomationControlcomp_mode_controllable ()
std::stringcomp_mode_name (unsigned int)
ReadOnlyControlcomp_redux_controllable ()
AutomationControlcomp_speed_controllable ()
std::stringcomp_speed_name (unsigned int)
AutomationControlcomp_threshold_controllable ()
unsigned inteq_band_cnt ()
std::stringeq_band_name (unsigned int)
AutomationControleq_enable_controllable ()
AutomationControleq_freq_controllable (unsigned int)
AutomationControleq_gain_controllable (unsigned int)
AutomationControleq_q_controllable (unsigned int)
AutomationControleq_shape_controllable (unsigned int)
AutomationControlfilter_enable_controllable (bool)
AutomationControlfilter_freq_controllable (bool)
AutomationControlfilter_slope_controllable (bool)
GainControlgain_control ()
boolis_auditioner ()
boolis_hidden ()
boolis_master ()
boolis_monitor ()
boolis_private_route ()
boolis_selected ()
AutomationControlmaster_send_enable_controllable ()
MonitorProcessormonitor_control ()
MuteControlmute_control ()
AutomationControlpan_azimuth_control ()
AutomationControlpan_elevation_control ()
AutomationControlpan_frontback_control ()
AutomationControlpan_lfe_control ()
AutomationControlpan_width_control ()
PhaseControlphase_control ()
PresentationInfopresentation_info_ptr ()
AutomationControlrec_enable_control ()
AutomationControlrec_safe_control ()
AutomationControlsend_enable_controllable (unsigned int)
AutomationControlsend_level_controllable (unsigned int)
std::stringsend_name (unsigned int)
AutomationControlsend_pan_azimuth_controllable (unsigned int)
AutomationControlsend_pan_azimuth_enable_controllable (unsigned int)
voidset_presentation_order (unsigned int)
boolslaved ()
boolslaved_to (VCA)
SoloControlsolo_control ()
SoloIsolateControlsolo_isolate_control ()
SoloSafeControlsolo_safe_control ()
GainControltrim_control ()
Cast
Automatableto_automatable ()
Routeto_route ()
Slavableto_slavable ()
VCAto_vca ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:MidiTrackList

C‡: std::list<boost::shared_ptr<ARDOUR::MidiTrack> >

Constructor
ARDOUR.MidiTrackList ()
Methods
LuaTableadd (LuaTable {MidiTrack})
MidiTrackback ()
boolempty ()
MidiTrackfront ()
LuaIteriter ()
voidpush_back (MidiTrack)
voidreverse ()
unsigned longsize ()
LuaTabletable ()
voidunique ()

 ARDOUR:MixerScene

C‡: boost::shared_ptr< ARDOUR::MixerScene >, boost::weak_ptr< ARDOUR::MixerScene >

Base class for objects with saveable and undoable state

Methods
boolapply ()
boolapply_to (ControllableSet, AutomationTypeSet)
voidclear ()
boolempty ()
boolisnil ()
std::stringname ()
boolset_name (std::string)
voidsnapshot ()

 ARDOUR:MonitorControl

C‡: boost::shared_ptr< ARDOUR::MonitorControl >, boost::weak_ptr< ARDOUR::MonitorControl >

is-a: ARDOUR:SlavableAutomationControl

A PBD::Controllable with associated automation data (AutomationList)

Methods
boolisnil ()
MonitorChoicemonitoring_choice ()

Inherited from ARDOUR:SlavableAutomationControl

Methods
voidadd_master (AutomationControl)
voidclear_masters ()
intget_boolean_masters ()
doubleget_masters_value ()
voidremove_master (AutomationControl)
boolslaved ()
boolslaved_to (AutomationControl)

Inherited from ARDOUR:AutomationControl

Methods
AutomationListalist ()
AutoStateautomation_state ()
ParameterDescriptordesc ()
doubleget_value ()

Get `internal' value

Returns raw value as used for the plugin/processor control port

doublelower ()
doublenormal ()
voidset_automation_state (AutoState)
voidset_value (double, GroupControlDisposition)

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.

value
raw numeric value to set
group_override
if and how to propagate value to grouped controls
voidstart_touch (timepos_t)
voidstop_touch (timepos_t)
booltoggled ()
doubleupper ()
boolwritable ()
Cast
Controlto_ctrl ()
SlavableAutomationControlto_slavable ()

Inherited from PBD:Controllable

Methods
voiddump_registry ()
std::stringname ()
ControllableSetregistered_controllables ()
Cast
AutomationControlto_automationcontrol ()
MPGainControlto_mpgain ()
MPToggleControlto_mptoggle ()

Inherited from PBD:StatefulPtr

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:MonitorProcessor

C‡: boost::shared_ptr< ARDOUR::MonitorProcessor >, boost::weak_ptr< ARDOUR::MonitorProcessor >

is-a: ARDOUR:Processor

A mixer strip element - plugin, send, meter, etc

Methods
Controllablechannel_cut_control (unsigned int)
Controllablechannel_dim_control (unsigned int)
Controllablechannel_polarity_control (unsigned int)
Controllablechannel_solo_control (unsigned int)
boolcut (unsigned int)
boolcut_all ()
Controllablecut_control ()
booldim_all ()
Controllabledim_control ()
floatdim_level ()
Controllabledim_level_control ()
booldimmed (unsigned int)
boolinverted (unsigned int)
boolisnil ()
boolmonitor_active ()
boolmono ()
Controllablemono_control ()
voidset_cut (unsigned int, bool)
voidset_cut_all (bool)
voidset_dim (unsigned int, bool)
voidset_dim_all (bool)
voidset_mono (bool)
voidset_polarity (unsigned int, bool)
voidset_solo (unsigned int, bool)
Controllablesolo_boost_control ()
floatsolo_boost_level ()
boolsoloed (unsigned int)

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:MuteControl

C‡: boost::shared_ptr< ARDOUR::MuteControl >, boost::weak_ptr< ARDOUR::MuteControl >

is-a: ARDOUR:SlavableAutomationControl

A PBD::Controllable with associated automation data (AutomationList)

Methods
boolisnil ()
MutePointmute_points ()
boolmuted ()
boolmuted_by_self ()
voidset_mute_points (MutePoint)

Inherited from ARDOUR:SlavableAutomationControl

Methods
voidadd_master (AutomationControl)
voidclear_masters ()
intget_boolean_masters ()
doubleget_masters_value ()
voidremove_master (AutomationControl)
boolslaved ()
boolslaved_to (AutomationControl)

Inherited from ARDOUR:AutomationControl

Methods
AutomationListalist ()
AutoStateautomation_state ()
ParameterDescriptordesc ()
doubleget_value ()

Get `internal' value

Returns raw value as used for the plugin/processor control port

doublelower ()
doublenormal ()
voidset_automation_state (AutoState)
voidset_value (double, GroupControlDisposition)

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.

value
raw numeric value to set
group_override
if and how to propagate value to grouped controls
voidstart_touch (timepos_t)
voidstop_touch (timepos_t)
booltoggled ()
doubleupper ()
boolwritable ()
Cast
Controlto_ctrl ()
SlavableAutomationControlto_slavable ()

Inherited from PBD:Controllable

Methods
voiddump_registry ()
std::stringname ()
ControllableSetregistered_controllables ()
Cast
AutomationControlto_automationcontrol ()
MPGainControlto_mpgain ()
MPToggleControlto_mptoggle ()

Inherited from PBD:StatefulPtr

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:NotePtrList

C‡: std::list<boost::shared_ptr<Evoral::Note<Temporal::Beats> > > >

Constructor
ARDOUR.NotePtrList ()
Methods
LuaTableadd (LuaTable {Beats})
NotePtrback ()
boolempty ()
NotePtrfront ()
LuaIteriter ()
voidpush_back (NotePtr)
voidreverse ()
unsigned longsize ()
LuaTabletable ()
voidunique ()

 ARDOUR:OwnedPropertyList

C‡: PBD::OwnedPropertyList

is-a: ARDOUR:PropertyList

Persistent Property List

A variant of PropertyList that does not delete its property list in its destructor. Objects with their own Properties store them in an OwnedPropertyList to avoid having them deleted at the wrong time.

This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.

 ARDOUR:PDC

C‡: ARDOUR::Latent

Methods
voidforce_zero_latency (bool)
boolzero_latency ()

 ARDOUR:PannerShell

C‡: boost::shared_ptr< ARDOUR::PannerShell >, boost::weak_ptr< ARDOUR::PannerShell >

is-a: ARDOUR:SessionObjectPtr

Class to manage panning by instantiating and controlling an appropriate Panner object for a given in/out configuration.

Methods
boolbypassed ()
boolisnil ()
voidset_bypassed (bool)

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:ParameterDescriptor

C‡: ARDOUR::ParameterDescriptor

is-a: Evoral:ParameterDescriptor

Descriptor of a parameter or control.

Essentially a union of LADSPA, VST and LV2 info.

Constructor
ARDOUR.ParameterDescriptor ()
Methods
std::stringmidi_note_name (unsigned char, bool)
Data Members
unsigned intdisplay_priority

higher is more important http://lv2plug.in/ns/ext/port-props#displayPriority

boolenumeration
boolinline_ctrl
boolinteger_step
std::stringlabel
floatlargestep
std::stringprint_fmt

format string for pretty printing

floatsmallstep
boolsr_dependent
floatstep

Inherited from Evoral:ParameterDescriptor

Constructor
Evoral.ParameterDescriptor ()
Data Members
boollogarithmic

True for log-scale parameters

floatlower

Minimum value (in Hz, for frequencies)

floatnormal

Default value

unsigned intrangesteps

number of steps, [min,max] (inclusive). <= 1 means continuous. == 2 only min, max. For integer controls this is usually (1 + max - min)

booltoggled

True iff parameter is boolean

floatupper

Maximum value (in Hz, for frequencies)

 ARDOUR:ParameterList

C‡: std::vector<Evoral::Parameter >

Constructor
ARDOUR.ParameterList ()
Methods
Parameterat (unsigned long)
boolempty ()
LuaIteriter ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR:PeakMeter

C‡: boost::shared_ptr< ARDOUR::PeakMeter >, boost::weak_ptr< ARDOUR::PeakMeter >

is-a: ARDOUR:Processor

Meters peaks on the input and stores them for access.

Methods
boolisnil ()
floatmeter_level (unsigned int, MeterType)
MeterTypemeter_type ()
voidreset_max ()
voidset_meter_type (MeterType)

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:PhaseControl

C‡: boost::shared_ptr< ARDOUR::PhaseControl >, boost::weak_ptr< ARDOUR::PhaseControl >

is-a: ARDOUR:AutomationControl

A PBD::Controllable with associated automation data (AutomationList)

Methods
boolinverted (unsigned int)
boolisnil ()
voidset_phase_invert (unsigned int, bool)
c
Audio channel index.
yn
true to invert phase, otherwise false.

Inherited from ARDOUR:AutomationControl

Methods
AutomationListalist ()
AutoStateautomation_state ()
ParameterDescriptordesc ()
doubleget_value ()

Get `internal' value

Returns raw value as used for the plugin/processor control port

doublelower ()
doublenormal ()
voidset_automation_state (AutoState)
voidset_value (double, GroupControlDisposition)

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.

value
raw numeric value to set
group_override
if and how to propagate value to grouped controls
voidstart_touch (timepos_t)
voidstop_touch (timepos_t)
booltoggled ()
doubleupper ()
boolwritable ()
Cast
Controlto_ctrl ()
SlavableAutomationControlto_slavable ()

Inherited from PBD:Controllable

Methods
voiddump_registry ()
std::stringname ()
ControllableSetregistered_controllables ()
Cast
AutomationControlto_automationcontrol ()
MPGainControlto_mpgain ()
MPToggleControlto_mptoggle ()

Inherited from PBD:StatefulPtr

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:Playlist

C‡: boost::shared_ptr< ARDOUR::Playlist >, boost::weak_ptr< ARDOUR::Playlist >

is-a: ARDOUR:SessionObjectPtr

A named object associated with a Session. Objects derived from this class are expected to be destroyed before the session calls drop_references().

Methods
voidadd_region (Region, timepos_t, float, bool)
Regioncombine (RegionList, Track)
unsigned intcount_regions_at (timepos_t)
Playlistcut (TimelineRangeList&, bool)
DataTypedata_type ()
voidduplicate (Region, timepos_t&, timecnt_t, float)
voidduplicate_range (TimelineRange&, float)
voidduplicate_until (Region, timepos_t&, timecnt_t, timepos_t)
boolempty ()
Regionfind_next_region (timepos_t, RegionPoint, int)
timepos_tfind_next_region_boundary (timepos_t, int)
longfind_next_transient (timepos_t, int)
IDget_orig_track_id ()
boolhidden ()
boolisnil ()
voidlower_region (Region)
voidlower_region_to_bottom (Region)
unsigned intn_regions ()
voidraise_region (Region)
voidraise_region_to_top (Region)
Regionregion_by_id (ID)
RegionListPtrregion_list ()
RegionListPtrregions_at (timepos_t)
RegionListPtrregions_touched (timepos_t, timepos_t)
RegionListPtrregions_with_end_within (Range)
RegionListPtrregions_with_start_within (Range)
voidremove_region (Region)
boolset_name (std::string)
boolshared ()
voidsplit_region (Region, timepos_t)
Regiontop_region_at (timepos_t)
Regiontop_unmuted_region_at (timepos_t)
voiduncombine (Region)
boolused ()
Cast
AudioPlaylistto_audioplaylist ()
MidiPlaylistto_midiplaylist ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:PlaylistList

C‡: std::vector<boost::shared_ptr<ARDOUR::Playlist> >

Constructor
ARDOUR.PlaylistList ()
ARDOUR.PlaylistList ()
Methods
LuaTableadd (LuaTable {Playlist})
Playlistat (unsigned long)
voidclear ()
boolempty ()
LuaIteriter ()
voidpush_back (Playlist)
unsigned longsize ()
LuaTabletable ()
...to_array (--lua--)

 ARDOUR:Plugin

C‡: boost::shared_ptr< ARDOUR::Plugin >, boost::weak_ptr< ARDOUR::Plugin >

is-a: PBD:StatefulDestructiblePtr

A plugin is an external module (usually 3rd party provided) loaded into Ardour for the purpose of digital signal processing.

This class provides an abstraction for methords provided by all supported plugin standards such as presets, name, parameters etc.

Plugins are not used directly in Ardour but always wrapped by a PluginInsert.

Methods
IOPortDescriptiondescribe_io_port (DataType, bool, unsigned int)
std::stringget_docs ()
PluginInfoget_info ()
LuaTable(int, ...)get_parameter_descriptor (unsigned int, ParameterDescriptor&)
std::stringget_parameter_docs (unsigned int)
boolisnil ()
char*label ()
PresetRecordlast_preset ()

Returns Last preset to be requested; the settings may have been changed since; find out with parameter_changed_since_last_preset.

boolload_preset (PresetRecord)

Set parameters using a preset

char*maker ()
char*name ()
LuaTable(unsigned int, ...)nth_parameter (unsigned int, bool&)
unsigned intparameter_count ()
boolparameter_is_audio (unsigned int)
boolparameter_is_control (unsigned int)
boolparameter_is_input (unsigned int)
boolparameter_is_output (unsigned int)
std::stringparameter_label (unsigned int)
PresetRecordpreset_by_label (std::string)
PresetRecordpreset_by_uri (std::string)
voidremove_preset (std::string)
PresetRecordsave_preset (std::string)

Create a new plugin-preset from the current state

name
label to use for new preset (needs to be unique)

Returns PresetRecord with empty URI on failure

std::stringunique_id ()
Cast
LuaProcto_luaproc ()

Inherited from PBD:StatefulPtr

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:Plugin:IOPortDescription

C‡: ARDOUR::Plugin::IOPortDescription

Data Members
unsigned intgroup_channel
std::stringgroup_name
boolis_sidechain
std::stringname

 ARDOUR:PluginControl

C‡: boost::shared_ptr< ARDOUR::PluginInsert::PluginControl >, boost::weak_ptr< ARDOUR::PluginInsert::PluginControl >

is-a: ARDOUR:AutomationControl

A control that manipulates a plugin parameter (control port).

Methods
boolisnil ()

Inherited from ARDOUR:AutomationControl

Methods
AutomationListalist ()
AutoStateautomation_state ()
ParameterDescriptordesc ()
doubleget_value ()

Get `internal' value

Returns raw value as used for the plugin/processor control port

doublelower ()
doublenormal ()
voidset_automation_state (AutoState)
voidset_value (double, GroupControlDisposition)

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.

value
raw numeric value to set
group_override
if and how to propagate value to grouped controls
voidstart_touch (timepos_t)
voidstop_touch (timepos_t)
booltoggled ()
doubleupper ()
boolwritable ()
Cast
Controlto_ctrl ()
SlavableAutomationControlto_slavable ()

Inherited from PBD:Controllable

Methods
voiddump_registry ()
std::stringname ()
ControllableSetregistered_controllables ()
Cast
AutomationControlto_automationcontrol ()
MPGainControlto_mpgain ()
MPToggleControlto_mptoggle ()

Inherited from PBD:StatefulPtr

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:PluginInfo

C‡: boost::shared_ptr< ARDOUR::PluginInfo >, boost::weak_ptr< ARDOUR::PluginInfo >

Constructor
ARDOUR.PluginInfo ()
Methods
PresetVectorget_presets (bool)
boolis_instrument ()
boolisnil ()
Data Members
std::stringcategory
std::stringcreator
ARDOUR:ChanCountn_inputs
ARDOUR:ChanCountn_outputs
std::stringname
std::stringpath
ARDOUR.PluginType_type
std::stringunique_id

 ARDOUR:PluginInfoList

C‡: std::list<boost::shared_ptr<ARDOUR::PluginInfo> >

Constructor
ARDOUR.PluginInfoList ()
Methods
LuaTableadd (LuaTable {PluginInfo})
PluginInfoback ()
boolempty ()
PluginInfofront ()
LuaIteriter ()
voidpush_back (PluginInfo)
voidreverse ()
unsigned longsize ()
LuaTabletable ()
voidunique ()

 ARDOUR:PluginInsert

C‡: boost::shared_ptr< ARDOUR::PluginInsert >, boost::weak_ptr< ARDOUR::PluginInsert >

is-a: ARDOUR:Processor

Plugin inserts: send data through a plugin

Methods
voidactivate ()
voidclear_stats ()
voiddeactivate ()
voidenable (bool)
boolenabled ()
unsigned intget_count ()
LuaTable(bool, ...)get_stats (long&, long&, double&, double&)
boolhas_sidechain ()
ChanMappinginput_map (unsigned int)
boolis_channelstrip ()
boolis_instrument ()
boolisnil ()
ChanCountnatural_input_streams ()
ChanCountnatural_output_streams ()
ChanMappingoutput_map (unsigned int)
Pluginplugin (unsigned int)
boolreset_parameters_to_default ()
voidset_input_map (unsigned int, ChanMapping)
voidset_output_map (unsigned int, ChanMapping)
voidset_thru_map (ChanMapping)
IOsidechain_input ()
longsignal_latency ()
boolstrict_io_configured ()
ChanMappingthru_map ()
PluginType_type ()
boolwrite_immediate_event (EventType, unsigned long, unsigned char*)

Inherited from ARDOUR:Processor

Methods
boolactive ()
longcapture_offset ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR.PluginType

Methods
std::stringname (PluginType, bool)

 ARDOUR:PolarityProcessor

C‡: boost::shared_ptr< ARDOUR::PolarityProcessor >, boost::weak_ptr< ARDOUR::PolarityProcessor >

is-a: ARDOUR:Processor

A mixer strip element - plugin, send, meter, etc

Methods
boolisnil ()

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:Port

C‡: boost::shared_ptr< ARDOUR::Port >, boost::weak_ptr< ARDOUR::Port >

Methods
intconnect (std::string)
boolconnected ()

Returns true if this port is connected to anything

boolconnected_to (std::string)
o
Port name

Returns true if this port is connected to o, otherwise false.

intdisconnect (std::string)
intdisconnect_all ()
PortFlagsflags ()

Returns flags

LuaTable(...)get_connected_latency_range (LatencyRange&, bool)
boolisnil ()
std::stringname ()

Returns Port short name

boolphysically_connected ()
std::stringpretty_name (bool)

Returns Port human readable name

LatencyRangeprivate_latency_range (bool)
LatencyRangepublic_latency_range (bool)
boolreceives_input ()

Returns true if this Port receives input, otherwise false

boolsends_output ()

Returns true if this Port sends output, otherwise false

Cast
AsyncMIDIPortto_asyncmidiport ()
AudioPortto_audioport ()
MidiPortto_midiport ()

 ARDOUR:PortEngine

C‡: ARDOUR::PortEngine

This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.

 ARDOUR:PortList

C‡: std::list<boost::shared_ptr<ARDOUR::Port> >

Constructor
ARDOUR.PortList ()
Methods
Portback ()
boolempty ()
Portfront ()
LuaIteriter ()
voidreverse ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR:PortManager

C‡: ARDOUR::PortManager

Methods
intconnect (std::string, std::string)
boolconnected (std::string)
intdisconnect (std::string, std::string)
intdisconnect_port (Port)
LuaTable(int, ...)get_backend_ports (std::string, DataType, PortFlags, StringVector&)
LuaTable(int, ...)get_connections (std::string, StringVector&)
voidget_physical_inputs (DataType, StringVector&, MidiPortFlags, MidiPortFlags)
voidget_physical_outputs (DataType, StringVector&, MidiPortFlags, MidiPortFlags)
Portget_port_by_name (std::string)
name
Full or short name of port

Returns Corresponding Port or 0.

LuaTable(int, ...)get_ports (DataType, PortList&)
std::stringget_pretty_name_by_name (std::string)
ChanCountn_physical_inputs ()
ChanCountn_physical_outputs ()
boolphysically_connected (std::string)
PortEngineport_engine ()
boolport_is_physical (std::string)
voidreset_input_meters ()

 ARDOUR:PortSet

C‡: boost::shared_ptr< ARDOUR::PortSet >, boost::weak_ptr< ARDOUR::PortSet >

An ordered list of Ports, possibly of various types.

This allows access to all the ports as a list, ignoring type, or accessing the nth port of a given type. Note that port(n) and nth_audio_port(n) may NOT return the same port.

Each port is held twice; once in a per-type vector of vectors (_ports) and once in a vector of all port (_all_ports). This is to speed up the fairly common case of iterating over all ports.

Methods
voidadd (Port)
voidclear ()

Remove all ports from the PortSet. Ports are not deregistered with the engine, it's the caller's responsibility to not leak here!

boolcontains (Port)
boolempty ()
boolisnil ()
unsigned longnum_ports (DataType)
Portport (DataType, unsigned long)

nth port of type t, or nth port if t = NIL

t
data type
index
port index
boolremove (Port)

 ARDOUR:PresentationInfo

C‡: ARDOUR::PresentationInfo

is-a: PBD:Stateful

Base class for objects with saveable and undoable state

Methods
unsigned intcolor ()
Flagflags ()
unsigned intorder ()
voidset_color (unsigned int)
boolspecial (bool)

Inherited from PBD:Stateful

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:PresetRecord

C‡: ARDOUR::Plugin::PresetRecord

Constructor
ARDOUR.PresetRecord ()
Data Members
std::stringlabel
std::stringuri
booluser
boolvalid

 ARDOUR:PresetVector

C‡: std::vector<ARDOUR::Plugin::PresetRecord >

Constructor
ARDOUR.PresetVector ()
ARDOUR.PresetVector ()
Methods
LuaTableadd (LuaTable {PresetRecord})
PresetRecordat (unsigned long)
voidclear ()
boolempty ()
LuaIteriter ()
voidpush_back (PresetRecord)
unsigned longsize ()
LuaTabletable ()
...to_array (--lua--)

 ARDOUR:Processor

C‡: boost::shared_ptr< ARDOUR::Processor >, boost::weak_ptr< ARDOUR::Processor >

is-a: ARDOUR:SessionObjectPtr

A mixer strip element - plugin, send, meter, etc

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
boolisnil ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:ProcessorList

C‡: std::list<boost::shared_ptr<ARDOUR::Processor> >

Constructor
ARDOUR.ProcessorList ()
Methods
LuaTableadd (LuaTable {Processor})
Processorback ()
boolempty ()
Processorfront ()
LuaIteriter ()
voidpush_back (Processor)
voidreverse ()
unsigned longsize ()
LuaTabletable ()
voidunique ()

 ARDOUR:ProcessorVector

C‡: std::vector<boost::shared_ptr<ARDOUR::Processor> >

Constructor
ARDOUR.ProcessorVector ()
ARDOUR.ProcessorVector ()
Methods
LuaTableadd (LuaTable {Processor})
Processorat (unsigned long)
voidclear ()
boolempty ()
LuaIteriter ()
voidpush_back (Processor)
unsigned longsize ()
LuaTabletable ()
...to_array (--lua--)

 ARDOUR:Progress

C‡: ARDOUR::Progress

A class to handle reporting of progress of something

This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.

 ARDOUR:Properties:BoolProperty

C‡: PBD::PropertyDescriptor<bool>

This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.

 ARDOUR:Properties:FloatProperty

C‡: PBD::PropertyDescriptor<float>

This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.

 ARDOUR:Properties:SamplePosProperty

C‡: PBD::PropertyDescriptor<long>

This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.

 ARDOUR:Properties:StringProperty

C‡: PBD::PropertyDescriptor<std::string >

This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.

 ARDOUR:Properties:TimeCntProperty

C‡: PBD::PropertyDescriptor<Temporal::timecnt_t>

This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.

 ARDOUR:Properties:TimePosProperty

C‡: PBD::PropertyDescriptor<Temporal::timepos_t>

This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.

 ARDOUR:PropertyChange

C‡: PBD::PropertyChange

A list of IDs of Properties that have changed in some situation or other

Methods
boolcontainsBool (BoolProperty)
boolcontainsFloat (FloatProperty)
boolcontainsSamplePos (SamplePosProperty)
boolcontainsString (StringProperty)
boolcontainsTimeCnt (TimeCntProperty)
boolcontainsTimePos (TimePosProperty)

 ARDOUR:PropertyList

C‡: PBD::PropertyList

A list of properties, mapped using their ID

This class object is only used indirectly as return-value and function-parameter. It provides no methods by itself.

 ARDOUR:RCConfiguration

C‡: ARDOUR::RCConfiguration

is-a: PBD:Configuration

Base class for objects with saveable and undoable state

Methods
AFLPositionget_afl_position ()
boolget_all_safe ()
boolget_allow_special_bus_removal ()
boolget_ask_replace_instrument ()
boolget_ask_setup_instrument ()
floatget_audio_capture_buffer_seconds ()
floatget_audio_playback_buffer_seconds ()
std::stringget_auditioner_output_left ()
std::stringget_auditioner_output_right ()
boolget_auto_analyse_audio ()
boolget_auto_connect_standard_busses ()
boolget_auto_input_does_talkback ()
boolget_auto_return_after_rewind_ffwd ()
AutoReturnTargetget_auto_return_target_list ()
boolget_automation_follows_regions ()
floatget_automation_interval_msecs ()
doubleget_automation_thinning_factor ()
BufferingPresetget_buffering_preset ()
std::stringget_click_emphasis_sound ()
floatget_click_gain ()
boolget_click_record_only ()
std::stringget_click_sound ()
boolget_clicking ()
std::stringget_clip_library_dir ()
boolget_conceal_lv1_if_lv2_exists ()
boolget_conceal_vst2_if_vst3_exists ()
boolget_copy_demo_sessions ()
intget_cpu_dma_latency ()
boolget_create_xrun_marker ()
TimeDomainget_default_automation_time_domain ()
FadeShapeget_default_fade_shape ()
std::stringget_default_session_parent_dir ()
std::stringget_default_trigger_input_port ()
DenormalModelget_denormal_model ()
boolget_denormal_protection ()
boolget_disable_disarm_during_roll ()
boolget_discover_plugins_on_start ()
unsigned intget_disk_choice_space_threshold ()
std::stringget_donate_url ()
EditModeget_edit_mode ()
boolget_exclusive_solo ()
floatget_export_preroll ()
floatget_export_silence_threshold ()
unsigned intget_feedback_interval_ms ()
boolget_first_midi_bank_is_zero ()
boolget_group_override_inverts ()
boolget_hide_dummy_backend ()
boolget_hiding_groups_deactivates_groups ()
intget_history_depth ()
intget_initial_program_change ()
AutoConnectOptionget_input_auto_connect ()
intget_inter_scene_gap_samples ()
boolget_interview_editing ()
boolget_latched_record_enable ()
LayerModelget_layer_model ()
unsigned intget_limit_n_automatables ()
boolget_link_send_and_route_panner ()
ListenPositionget_listen_position ()
boolget_locate_while_waiting_for_sync ()
LoopFadeChoiceget_loop_fade_choice ()
boolget_loop_is_mode ()
std::stringget_ltc_output_port ()
floatget_ltc_output_volume ()
boolget_ltc_send_continuously ()
floatget_max_gain ()
unsigned intget_max_recent_sessions ()
unsigned intget_max_recent_templates ()
floatget_max_transport_speed ()
floatget_meter_falloff ()
MeterTypeget_meter_type_bus ()
MeterTypeget_meter_type_master ()
MeterTypeget_meter_type_track ()
std::stringget_midi_audition_synth_uri ()
boolget_midi_clock_sets_tempo ()
boolget_midi_feedback ()
boolget_midi_input_follows_selection ()
floatget_midi_track_buffer_seconds ()
unsigned intget_minimum_disk_read_bytes ()
unsigned intget_minimum_disk_write_bytes ()
boolget_mmc_control ()
intget_mmc_receive_device_id ()
intget_mmc_send_device_id ()
std::stringget_monitor_bus_preferred_bundle ()
MonitorModelget_monitoring_model ()
intget_mtc_qf_speed_tolerance ()
boolget_mute_affects_control_outs ()
boolget_mute_affects_main_outs ()
boolget_mute_affects_post_fader ()
boolget_mute_affects_pre_fader ()
boolget_new_plugins_active ()
unsigned intget_osc_port ()
AutoConnectOptionget_output_auto_connect ()
unsigned intget_periodic_safety_backup_interval ()
boolget_periodic_safety_backups ()
PFLPositionget_pfl_position ()
std::stringget_pingback_url ()
unsigned intget_plugin_cache_version ()
std::stringget_plugin_path_lxvst ()
std::stringget_plugin_path_vst ()
std::stringget_plugin_path_vst3 ()
unsigned intget_plugin_scan_timeout ()
boolget_plugins_stop_with_transport ()
unsigned intget_port_resampler_quality ()
floatget_preroll_seconds ()
intget_processor_usage ()
boolget_quieten_at_speed ()
longget_range_location_minimum ()
RangeSelectionAfterSplitget_range_selection_after_split ()
boolget_recording_resets_xrun_count ()
std::stringget_reference_manual_url ()
boolget_region_boundaries_from_onscreen_tracks ()
boolget_region_boundaries_from_selected_tracks ()
RegionEquivalenceget_region_equivalence ()
RegionSelectionAfterSplitget_region_selection_after_split ()
boolget_replicate_missing_region_channels ()
boolget_reset_default_speed_on_stop ()
std::stringget_resource_index_url ()
boolget_rewind_ffwd_like_tape_decks ()
RippleModeget_ripple_mode ()
boolget_run_all_transport_masters_always ()
std::stringget_sample_lib_path ()
boolget_save_history ()
intget_saved_history_depth ()
boolget_send_ltc ()
boolget_send_midi_clock ()
boolget_send_mmc ()
boolget_send_mtc ()
boolget_setup_sidechain ()
boolget_show_solo_mutes ()
boolget_show_video_server_dialog ()
boolget_show_vst3_micro_edit_inline ()
floatget_shuttle_max_speed ()
floatget_shuttle_speed_factor ()
floatget_shuttle_speed_threshold ()
ShuttleUnitsget_shuttle_units ()
boolget_skip_playback ()
boolget_solo_control_is_listen_control ()
floatget_solo_mute_gain ()
boolget_solo_mute_override ()
boolget_stop_at_session_end ()
boolget_stop_recording_on_xrun ()
boolget_strict_io ()
boolget_timecode_sync_frame_rate ()
boolget_trace_midi_input ()
boolget_trace_midi_output ()
TracksAutoNamingRuleget_tracks_auto_naming ()
floatget_transient_sensitivity ()
boolget_transport_masters_just_roll_when_sync_lost ()
boolget_try_autostart_engine ()
std::stringget_tutorial_manual_url ()
std::stringget_updates_url ()
boolget_use_audio_units ()
boolget_use_click_emphasis ()
boolget_use_lxvst ()
boolget_use_macvst ()
boolget_use_master_volume ()
boolget_use_monitor_bus ()
boolget_use_osc ()
boolget_use_plugin_own_gui ()
boolget_use_tranzport ()
boolget_use_vst3 ()
boolget_use_windows_vst ()
boolget_verbose_plugin_scan ()
boolget_verify_remove_last_capture ()
boolget_video_advanced_setup ()
std::stringget_video_server_docroot ()
std::stringget_video_server_url ()
boolget_work_around_jack_no_copy_optimization ()
std::stringget_xjadeo_binary ()
boolset_afl_position (AFLPosition)
boolset_all_safe (bool)
boolset_allow_special_bus_removal (bool)
boolset_ask_replace_instrument (bool)
boolset_ask_setup_instrument (bool)
boolset_audio_capture_buffer_seconds (float)
boolset_audio_playback_buffer_seconds (float)
boolset_auditioner_output_left (std::string)
boolset_auditioner_output_right (std::string)
boolset_auto_analyse_audio (bool)
boolset_auto_connect_standard_busses (bool)
boolset_auto_input_does_talkback (bool)
boolset_auto_return_after_rewind_ffwd (bool)
boolset_auto_return_target_list (AutoReturnTarget)
boolset_automation_follows_regions (bool)
boolset_automation_interval_msecs (float)
boolset_automation_thinning_factor (double)
boolset_buffering_preset (BufferingPreset)
boolset_click_emphasis_sound (std::string)
boolset_click_gain (float)
boolset_click_record_only (bool)
boolset_click_sound (std::string)
boolset_clicking (bool)
boolset_clip_library_dir (std::string)
boolset_conceal_lv1_if_lv2_exists (bool)
boolset_conceal_vst2_if_vst3_exists (bool)
boolset_copy_demo_sessions (bool)
boolset_cpu_dma_latency (int)
boolset_create_xrun_marker (bool)
boolset_default_automation_time_domain (TimeDomain)
boolset_default_fade_shape (FadeShape)
boolset_default_session_parent_dir (std::string)
boolset_default_trigger_input_port (std::string)
boolset_denormal_model (DenormalModel)
boolset_denormal_protection (bool)
boolset_disable_disarm_during_roll (bool)
boolset_discover_plugins_on_start (bool)
boolset_disk_choice_space_threshold (unsigned int)
boolset_donate_url (std::string)
boolset_edit_mode (EditMode)
boolset_exclusive_solo (bool)
boolset_export_preroll (float)
boolset_export_silence_threshold (float)
boolset_feedback_interval_ms (unsigned int)
boolset_first_midi_bank_is_zero (bool)
boolset_group_override_inverts (bool)
boolset_hide_dummy_backend (bool)
boolset_hiding_groups_deactivates_groups (bool)
boolset_history_depth (int)
boolset_initial_program_change (int)
boolset_input_auto_connect (AutoConnectOption)
boolset_inter_scene_gap_samples (int)
boolset_interview_editing (bool)
boolset_latched_record_enable (bool)
boolset_layer_model (LayerModel)
boolset_limit_n_automatables (unsigned int)
boolset_link_send_and_route_panner (bool)
boolset_listen_position (ListenPosition)
boolset_locate_while_waiting_for_sync (bool)
boolset_loop_fade_choice (LoopFadeChoice)
boolset_loop_is_mode (bool)
boolset_ltc_output_port (std::string)
boolset_ltc_output_volume (float)
boolset_ltc_send_continuously (bool)
boolset_max_gain (float)
boolset_max_recent_sessions (unsigned int)
boolset_max_recent_templates (unsigned int)
boolset_max_transport_speed (float)
boolset_meter_falloff (float)
boolset_meter_type_bus (MeterType)
boolset_meter_type_master (MeterType)
boolset_meter_type_track (MeterType)
boolset_midi_audition_synth_uri (std::string)
boolset_midi_clock_sets_tempo (bool)
boolset_midi_feedback (bool)
boolset_midi_input_follows_selection (bool)
boolset_midi_track_buffer_seconds (float)
boolset_minimum_disk_read_bytes (unsigned int)
boolset_minimum_disk_write_bytes (unsigned int)
boolset_mmc_control (bool)
boolset_mmc_receive_device_id (int)
boolset_mmc_send_device_id (int)
boolset_monitor_bus_preferred_bundle (std::string)
boolset_monitoring_model (MonitorModel)
boolset_mtc_qf_speed_tolerance (int)
boolset_mute_affects_control_outs (bool)
boolset_mute_affects_main_outs (bool)
boolset_mute_affects_post_fader (bool)
boolset_mute_affects_pre_fader (bool)
boolset_new_plugins_active (bool)
boolset_osc_port (unsigned int)
boolset_output_auto_connect (AutoConnectOption)
boolset_periodic_safety_backup_interval (unsigned int)
boolset_periodic_safety_backups (bool)
boolset_pfl_position (PFLPosition)
boolset_pingback_url (std::string)
boolset_plugin_cache_version (unsigned int)
boolset_plugin_path_lxvst (std::string)
boolset_plugin_path_vst (std::string)
boolset_plugin_path_vst3 (std::string)
boolset_plugin_scan_timeout (unsigned int)
boolset_plugins_stop_with_transport (bool)
boolset_port_resampler_quality (unsigned int)
boolset_preroll_seconds (float)
boolset_processor_usage (int)
boolset_quieten_at_speed (bool)
boolset_range_location_minimum (long)
boolset_range_selection_after_split (RangeSelectionAfterSplit)
boolset_recording_resets_xrun_count (bool)
boolset_reference_manual_url (std::string)
boolset_region_boundaries_from_onscreen_tracks (bool)
boolset_region_boundaries_from_selected_tracks (bool)
boolset_region_equivalence (RegionEquivalence)
boolset_region_selection_after_split (RegionSelectionAfterSplit)
boolset_replicate_missing_region_channels (bool)
boolset_reset_default_speed_on_stop (bool)
boolset_resource_index_url (std::string)
boolset_rewind_ffwd_like_tape_decks (bool)
boolset_ripple_mode (RippleMode)
boolset_run_all_transport_masters_always (bool)
boolset_sample_lib_path (std::string)
boolset_save_history (bool)
boolset_saved_history_depth (int)
boolset_send_ltc (bool)
boolset_send_midi_clock (bool)
boolset_send_mmc (bool)
boolset_send_mtc (bool)
boolset_setup_sidechain (bool)
boolset_show_solo_mutes (bool)
boolset_show_video_server_dialog (bool)
boolset_show_vst3_micro_edit_inline (bool)
boolset_shuttle_max_speed (float)
boolset_shuttle_speed_factor (float)
boolset_shuttle_speed_threshold (float)
boolset_shuttle_units (ShuttleUnits)
boolset_skip_playback (bool)
boolset_solo_control_is_listen_control (bool)
boolset_solo_mute_gain (float)
boolset_solo_mute_override (bool)
boolset_stop_at_session_end (bool)
boolset_stop_recording_on_xrun (bool)
boolset_strict_io (bool)
boolset_timecode_sync_frame_rate (bool)
boolset_trace_midi_input (bool)
boolset_trace_midi_output (bool)
boolset_tracks_auto_naming (TracksAutoNamingRule)
boolset_transient_sensitivity (float)
boolset_transport_masters_just_roll_when_sync_lost (bool)
boolset_try_autostart_engine (bool)
boolset_tutorial_manual_url (std::string)
boolset_updates_url (std::string)
boolset_use_audio_units (bool)
boolset_use_click_emphasis (bool)
boolset_use_lxvst (bool)
boolset_use_macvst (bool)
boolset_use_master_volume (bool)
boolset_use_monitor_bus (bool)
boolset_use_osc (bool)
boolset_use_plugin_own_gui (bool)
boolset_use_tranzport (bool)
boolset_use_vst3 (bool)
boolset_use_windows_vst (bool)
boolset_verbose_plugin_scan (bool)
boolset_verify_remove_last_capture (bool)
boolset_video_advanced_setup (bool)
boolset_video_server_docroot (std::string)
boolset_video_server_url (std::string)
boolset_work_around_jack_no_copy_optimization (bool)
boolset_xjadeo_binary (std::string)
Properties
ARDOUR.AFLPositionafl_position
boolall_safe
boolallow_special_bus_removal
boolask_replace_instrument
boolask_setup_instrument
floataudio_capture_buffer_seconds
floataudio_playback_buffer_seconds
std::stringauditioner_output_left
std::stringauditioner_output_right
boolauto_analyse_audio
boolauto_connect_standard_busses
boolauto_input_does_talkback
boolauto_return_after_rewind_ffwd
ARDOUR.AutoReturnTargetauto_return_target_list
boolautomation_follows_regions
floatautomation_interval_msecs
doubleautomation_thinning_factor
ARDOUR.BufferingPresetbuffering_preset
std::stringclick_emphasis_sound
floatclick_gain
boolclick_record_only
std::stringclick_sound
boolclicking
std::stringclip_library_dir
boolconceal_lv1_if_lv2_exists
boolconceal_vst2_if_vst3_exists
boolcopy_demo_sessions
intcpu_dma_latency
boolcreate_xrun_marker
Temporal.TimeDomaindefault_automation_time_domain
ARDOUR.FadeShapedefault_fade_shape
std::stringdefault_session_parent_dir
std::stringdefault_trigger_input_port
ARDOUR.DenormalModeldenormal_model
booldenormal_protection
booldisable_disarm_during_roll
booldiscover_plugins_on_start
unsigned intdisk_choice_space_threshold
std::stringdonate_url
ARDOUR.EditModeedit_mode
boolexclusive_solo
floatexport_preroll
floatexport_silence_threshold
unsigned intfeedback_interval_ms
boolfirst_midi_bank_is_zero
boolgroup_override_inverts
boolhide_dummy_backend
boolhiding_groups_deactivates_groups
inthistory_depth
intinitial_program_change
ARDOUR.AutoConnectOptioninput_auto_connect
intinter_scene_gap_samples
boolinterview_editing
boollatched_record_enable
ARDOUR.LayerModellayer_model
unsigned intlimit_n_automatables
boollink_send_and_route_panner
ARDOUR.ListenPositionlisten_position
boollocate_while_waiting_for_sync
ARDOUR.LoopFadeChoiceloop_fade_choice
boolloop_is_mode
std::stringltc_output_port
floatltc_output_volume
boolltc_send_continuously
floatmax_gain
unsigned intmax_recent_sessions
unsigned intmax_recent_templates
floatmax_transport_speed
floatmeter_falloff
ARDOUR.MeterTypemeter_type_bus
ARDOUR.MeterTypemeter_type_master
ARDOUR.MeterTypemeter_type_track
std::stringmidi_audition_synth_uri
boolmidi_clock_sets_tempo
boolmidi_feedback
boolmidi_input_follows_selection
floatmidi_track_buffer_seconds
unsigned intminimum_disk_read_bytes
unsigned intminimum_disk_write_bytes
boolmmc_control
intmmc_receive_device_id
intmmc_send_device_id
std::stringmonitor_bus_preferred_bundle
ARDOUR.MonitorModelmonitoring_model
intmtc_qf_speed_tolerance
boolmute_affects_control_outs
boolmute_affects_main_outs
boolmute_affects_post_fader
boolmute_affects_pre_fader
boolnew_plugins_active
unsigned intosc_port
ARDOUR.AutoConnectOptionoutput_auto_connect
unsigned intperiodic_safety_backup_interval
boolperiodic_safety_backups
ARDOUR.PFLPositionpfl_position
std::stringpingback_url
unsigned intplugin_cache_version
std::stringplugin_path_lxvst
std::stringplugin_path_vst
std::stringplugin_path_vst3
unsigned intplugin_scan_timeout
boolplugins_stop_with_transport
unsigned intport_resampler_quality
floatpreroll_seconds
intprocessor_usage
boolquieten_at_speed
longrange_location_minimum
ARDOUR.RangeSelectionAfterSplitrange_selection_after_split
boolrecording_resets_xrun_count
std::stringreference_manual_url
boolregion_boundaries_from_onscreen_tracks
boolregion_boundaries_from_selected_tracks
ARDOUR.RegionEquivalenceregion_equivalence
ARDOUR.RegionSelectionAfterSplitregion_selection_after_split
boolreplicate_missing_region_channels
boolreset_default_speed_on_stop
std::stringresource_index_url
boolrewind_ffwd_like_tape_decks
ARDOUR.RippleModeripple_mode
boolrun_all_transport_masters_always
std::stringsample_lib_path
boolsave_history
intsaved_history_depth
boolsend_ltc
boolsend_midi_clock
boolsend_mmc
boolsend_mtc
boolsetup_sidechain
boolshow_solo_mutes
boolshow_video_server_dialog
boolshow_vst3_micro_edit_inline
floatshuttle_max_speed
floatshuttle_speed_factor
floatshuttle_speed_threshold
ARDOUR.ShuttleUnitsshuttle_units
boolskip_playback
boolsolo_control_is_listen_control
floatsolo_mute_gain
boolsolo_mute_override
boolstop_at_session_end
boolstop_recording_on_xrun
boolstrict_io
booltimecode_sync_frame_rate
booltrace_midi_input
booltrace_midi_output
ARDOUR.TracksAutoNamingRuletracks_auto_naming
floattransient_sensitivity
booltransport_masters_just_roll_when_sync_lost
booltry_autostart_engine
std::stringtutorial_manual_url
std::stringupdates_url
booluse_audio_units
booluse_click_emphasis
booluse_lxvst
booluse_macvst
booluse_master_volume
booluse_monitor_bus
booluse_osc
booluse_plugin_own_gui
booluse_tranzport
booluse_vst3
booluse_windows_vst
boolverbose_plugin_scan
boolverify_remove_last_capture
boolvideo_advanced_setup
std::stringvideo_server_docroot
std::stringvideo_server_url
boolwork_around_jack_no_copy_optimization
std::stringxjadeo_binary

Inherited from PBD:Stateful

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:RawMidiParser

C‡: ARDOUR::RawMidiParser

Constructor
ARDOUR.RawMidiParser ()
Methods
unsigned longbuffer_size ()
unsigned char*midi_buffer ()
boolprocess_byte (unsigned char)
voidreset ()

 ARDOUR:ReadOnlyControl

C‡: boost::shared_ptr< ARDOUR::ReadOnlyControl >, boost::weak_ptr< ARDOUR::ReadOnlyControl >

is-a: PBD:StatefulDestructiblePtr

Methods
ParameterDescriptordesc ()
std::stringdescribe_parameter ()
doubleget_parameter ()
boolisnil ()

Inherited from PBD:StatefulPtr

Methods
voidclear_changes ()

Forget about any changes to this object's properties

IDid ()
OwnedPropertyListproperties ()

 ARDOUR:Readable

C‡: boost::shared_ptr< ARDOUR::AudioReadable >, boost::weak_ptr< ARDOUR::AudioReadable >

Methods
boolisnil ()
ReadableListload (Session&, std::string)
unsigned intn_channels ()
longread (FloatArray, long, long, int)
longreadable_length ()

 ARDOUR:ReadableList

C‡: std::vector<boost::shared_ptr<ARDOUR::AudioReadable> >

Constructor
ARDOUR.ReadableList ()
ARDOUR.ReadableList ()
Methods
LuaTableadd (LuaTable {Readable})
Readableat (unsigned long)
voidclear ()
boolempty ()
LuaIteriter ()
voidpush_back (Readable)
unsigned longsize ()
LuaTabletable ()
...to_array (--lua--)

 ARDOUR:Region

C‡: boost::shared_ptr< ARDOUR::Region >, boost::weak_ptr< ARDOUR::Region >

is-a: ARDOUR:SessionObjectPtr

A named object associated with a Session. Objects derived from this class are expected to be destroyed before the session calls drop_references().

Methods
boolat_natural_position ()
boolautomatic ()
boolcan_move ()
boolcaptured ()
voidcaptured_xruns (XrunPositions&, bool)
voidclear_sync_position ()
Controlcontrol (Parameter, bool)
boolcovers (timepos_t)
voidcut_end (timepos_t)
voidcut_front (timepos_t)
DataTypedata_type ()
boolexternal ()
boolhas_transients ()
boolhidden ()
boolimport ()
boolis_compound ()
boolisnil ()
unsigned intlayer ()
timecnt_tlength ()
boollocked ()
voidlower ()
voidlower_to_bottom ()
StringVectormaster_source_names ()
SourceListmaster_sources ()
voidmove_start (timecnt_t)
voidmove_to_natural_position ()
boolmuted ()
voidnudge_position (timecnt_t)
boolopaque ()
Playlistplaylist ()
timepos_tposition ()

How the region parameters play together:

POSITION: first sample of the region along the timeline START: first sample of the region within its source(s) LENGTH: number of samples the region represents

boolposition_locked ()
voidraise ()
voidraise_to_top ()
voidset_hidden (bool)
voidset_initial_position (timepos_t)
voidset_length (timecnt_t)
voidset_locked (bool)
voidset_muted (bool)
boolset_name (std::string)

Note: changing the name of a Region does not constitute an edit

voidset_opaque (bool)
voidset_position (timepos_t)
voidset_position_locked (bool)
voidset_start (timepos_t)
voidset_sync_position (timepos_t)
voidset_video_locked (bool)
floatshift ()
Sourcesource (unsigned int)
timepos_tstart ()
floatstretch ()
boolsync_marked ()
LuaTable(timecnt_t, ...)sync_offset (int&)
timepos_tsync_position ()

Returns Sync position in session time

Int64Listtransients ()
voidtrim_end (timepos_t)
voidtrim_front (timepos_t)
voidtrim_to (timepos_t, timecnt_t)
boolvideo_locked ()
boolwhole_file ()
Cast
AudioRegionto_audioregion ()
MidiRegionto_midiregion ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:RegionFactory

C‡: ARDOUR::RegionFactory

Methods
Regionclone_region (Region, bool, bool)
Regionregion_by_id (ID)
RegionMapregions ()

 ARDOUR:RegionList

C‡: std::list<boost::shared_ptr<ARDOUR::Region> >

Constructor
ARDOUR.RegionList ()
Methods
Regionback ()
boolempty ()
Regionfront ()
LuaIteriter ()
voidreverse ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR:RegionListPtr

C‡: boost::shared_ptr<std::list<boost::shared_ptr<ARDOUR::Region> > >

Constructor
ARDOUR.RegionListPtr ()
Methods
LuaTableadd (LuaTable {Region})
boolempty ()
LuaIteriter ()
voidpush_back (Region)
voidreverse ()
unsigned longsize ()
LuaTabletable ()
voidunique ()

 ARDOUR:RegionMap

C‡: std::map<PBD::ID, boost::shared_ptr<ARDOUR::Region> > >

Constructor
ARDOUR.RegionMap ()
Methods
LuaTableadd (LuaTable {Region})
...at (--lua--)
voidclear ()
unsigned longcount (ID)
boolempty ()
LuaIteriter ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR:RegionVector

C‡: std::vector<boost::shared_ptr<ARDOUR::Region> >

Constructor
ARDOUR.RegionVector ()
ARDOUR.RegionVector ()
Methods
LuaTableadd (LuaTable {Region})
Regionat (unsigned long)
voidclear ()
boolempty ()
LuaIteriter ()
voidpush_back (Region)
unsigned longsize ()
LuaTabletable ()
...to_array (--lua--)

 ARDOUR:Return

C‡: boost::shared_ptr< ARDOUR::Return >, boost::weak_ptr< ARDOUR::Return >

is-a: ARDOUR:IOProcessor

A mixer strip element (Processor) with 1 or 2 IO elements.

Methods
boolisnil ()

Inherited from ARDOUR:IOProcessor

Methods
IOinput ()
ChanCountnatural_input_streams ()
ChanCountnatural_output_streams ()
IOoutput ()

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:Route

C‡: boost::shared_ptr< ARDOUR::Route >, boost::weak_ptr< ARDOUR::Route >

is-a: ARDOUR:Stripable

A named object associated with a Session. Objects derived from this class are expected to be destroyed before the session calls drop_references().

Methods
boolactive ()
intadd_aux_send (Route, Processor)

Add an aux send to a route.

route
route to send to.
before
Processor to insert before, or 0 to insert at the end.
intadd_foldback_send (Route, bool)
intadd_processor_by_index (Processor, int, ProcessorStreams, bool)

Add a processor to a route such that it ends up with a given index into the visible processors.

index
Index to add the processor at, or -1 to add at the end of the list.

Returns 0 on success, non-0 on failure.

booladd_sidechain (Processor)
Ampamp ()
std::stringcomment ()
boolcustomize_plugin_insert (Processor, unsigned int, ChanCount, ChanCount)

enable custom plugin-insert configuration

proc
Processor to customize
count
number of plugin instances to use (if zero, reset to default)
outs
output port customization
sinks
input pins for variable-I/O plugins

Returns true if successful

DataTypedata_type ()
IOinput ()
boolisnil ()
Deliverymain_outs ()

the signal processorat at end of the processing chain which produces output

MonitorControlmonitoring_control ()
MonitorStatemonitoring_state ()
boolmuted ()
ChanCountn_inputs ()
ChanCountn_outputs ()
Processornth_plugin (unsigned int)
Processornth_processor (unsigned int)
Processornth_send (unsigned int)
IOoutput ()
PannerShellpanner_shell ()
PeakMeterpeak_meter ()

************************************************************* Pure interface begins here*************************************************************

longplayback_latency (bool)
intremove_processor (Processor, ProcessorStreams, bool)

remove plugin/processor

proc
processor to remove
err
error report (index where removal vailed, channel-count why it failed) may be nil
need_process_lock
if locking is required (set to true, unless called from RT context with lock)

Returns 0 on success

intremove_processors (ProcessorList, ProcessorStreams)
boolremove_sidechain (Processor)
intreorder_processors (ProcessorList, ProcessorStreams)
intreplace_processor (Processor, Processor, ProcessorStreams)

replace plugin/processor with another

old
processor to remove
sub
processor to substitute the old one with
err
error report (index where removal vailed, channel-count why it failed) may be nil

Returns 0 on success

boolreset_plugin_insert (Processor)

reset plugin-insert configuration to default, disable customizations.

This is equivalent to calling

 customize_plugin_insert (proc, 0, unused)
proc
Processor to reset

Returns true if successful

voidset_active (bool, void*)
voidset_comment (std::string, void*)
voidset_meter_point (MeterPoint)
boolset_name (std::string)
boolset_strict_io (bool)
longsignal_latency ()
boolsoloed ()
boolstrict_io ()
Processorthe_instrument ()

Return the first processor that accepts has at least one MIDI input and at least one audio output. In the vast majority of cases, this will be "the instrument". This does not preclude other MIDI->audio processors later in the processing chain, but that would be a special case not covered by this utility function.

Amptrim ()
Cast
Trackto_track ()

Inherited from ARDOUR:Stripable

Methods
AutomationControlcomp_enable_controllable ()
AutomationControlcomp_makeup_controllable ()
AutomationControlcomp_mode_controllable ()
std::stringcomp_mode_name (unsigned int)
ReadOnlyControlcomp_redux_controllable ()
AutomationControlcomp_speed_controllable ()
std::stringcomp_speed_name (unsigned int)
AutomationControlcomp_threshold_controllable ()
unsigned inteq_band_cnt ()
std::stringeq_band_name (unsigned int)
AutomationControleq_enable_controllable ()
AutomationControleq_freq_controllable (unsigned int)
AutomationControleq_gain_controllable (unsigned int)
AutomationControleq_q_controllable (unsigned int)
AutomationControleq_shape_controllable (unsigned int)
AutomationControlfilter_enable_controllable (bool)
AutomationControlfilter_freq_controllable (bool)
AutomationControlfilter_slope_controllable (bool)
GainControlgain_control ()
boolis_auditioner ()
boolis_hidden ()
boolis_master ()
boolis_monitor ()
boolis_private_route ()
boolis_selected ()
AutomationControlmaster_send_enable_controllable ()
MonitorProcessormonitor_control ()
MuteControlmute_control ()
AutomationControlpan_azimuth_control ()
AutomationControlpan_elevation_control ()
AutomationControlpan_frontback_control ()
AutomationControlpan_lfe_control ()
AutomationControlpan_width_control ()
PhaseControlphase_control ()
PresentationInfopresentation_info_ptr ()
AutomationControlrec_enable_control ()
AutomationControlrec_safe_control ()
AutomationControlsend_enable_controllable (unsigned int)
AutomationControlsend_level_controllable (unsigned int)
std::stringsend_name (unsigned int)
AutomationControlsend_pan_azimuth_controllable (unsigned int)
AutomationControlsend_pan_azimuth_enable_controllable (unsigned int)
voidset_presentation_order (unsigned int)
boolslaved ()
boolslaved_to (VCA)
SoloControlsolo_control ()
SoloIsolateControlsolo_isolate_control ()
SoloSafeControlsolo_safe_control ()
GainControltrim_control ()
Cast
Automatableto_automatable ()
Routeto_route ()
Slavableto_slavable ()
VCAto_vca ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:Route:ProcessorStreams

C‡: ARDOUR::Route::ProcessorStreams

A record of the stream configuration at some point in the processor list. Used to return where and why an processor list configuration request failed.

Constructor
ARDOUR.Route.ProcessorStreams ()

 ARDOUR:RouteGroup

C‡: ARDOUR::RouteGroup

is-a: ARDOUR:SessionObject

A group identifier for routes.

RouteGroups permit to define properties which are shared among all Routes that use the given identifier.

A route can at most be in one group.

Methods
intadd (Route)

Add a route to a group. Adding a route which is already in the group is allowed; nothing will happen.

r
Route to add.
voidclear ()
voiddestroy_subgroup ()
boolempty ()
intgroup_master_number ()
boolhas_subgroup ()
boolis_active ()
boolis_color ()
boolis_gain ()
boolis_hidden ()
boolis_monitoring ()
boolis_mute ()
boolis_recenable ()
boolis_relative ()
boolis_route_active ()
boolis_select ()
boolis_solo ()
voidmake_subgroup (bool, Placement)
intremove (Route)
unsigned intrgba ()
RouteListPtrroute_list ()
voidset_active (bool, void*)
voidset_color (bool)
voidset_gain (bool)
voidset_hidden (bool, void*)
voidset_monitoring (bool)
voidset_mute (bool)
voidset_recenable (bool)
voidset_relative (bool, void*)
voidset_rgba (unsigned int)

set route-group color and notify UI about change

voidset_route_active (bool)
voidset_select (bool)
voidset_solo (bool)
unsigned longsize ()

Inherited from ARDOUR:SessionObject

Methods
std::stringname ()
Cast
Statefulto_stateful ()

 ARDOUR:RouteGroupList

C‡: std::list<ARDOUR::RouteGroup* >

Constructor
ARDOUR.RouteGroupList ()
Methods
RouteGroupback ()
boolempty ()
RouteGroupfront ()
LuaIteriter ()
voidreverse ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR:RouteList

C‡: std::list<boost::shared_ptr<ARDOUR::Route> >

Constructor
ARDOUR.RouteList ()
Methods
Routeback ()
boolempty ()
Routefront ()
LuaIteriter ()
voidreverse ()
unsigned longsize ()
LuaTabletable ()

 ARDOUR:RouteListPtr

C‡: boost::shared_ptr<std::list<boost::shared_ptr<ARDOUR::Route> > >

Constructor
ARDOUR.RouteListPtr ()
Methods
LuaTableadd (LuaTable {Route})
boolempty ()
LuaIteriter ()
voidpush_back (Route)
voidreverse ()
unsigned longsize ()
LuaTabletable ()
voidunique ()

 ARDOUR:Send

C‡: boost::shared_ptr< ARDOUR::Send >, boost::weak_ptr< ARDOUR::Send >

is-a: ARDOUR:Delivery

A mixer strip element (Processor) with 1 or 2 IO elements.

Methods
GainControlgain_control ()
longget_delay_in ()
longget_delay_out ()
boolis_foldback ()
boolisnil ()
voidset_remove_on_disconnect (bool)
Cast
InternalSendto_internalsend ()

Inherited from ARDOUR:Delivery

Methods
PannerShellpanner_shell ()

Inherited from ARDOUR:IOProcessor

Methods
IOinput ()
ChanCountnatural_input_streams ()
ChanCountnatural_output_streams ()
IOoutput ()

Inherited from ARDOUR:Processor

Methods
voidactivate ()
boolactive ()
longcapture_offset ()
voiddeactivate ()
std::stringdisplay_name ()
booldisplay_to_user ()
longinput_latency ()
ChanCountinput_streams ()
longoutput_latency ()
ChanCountoutput_streams ()
longplayback_offset ()
longsignal_latency ()
Cast
Ampto_amp ()
Automatableto_automatable ()
DelayLineto_delayline ()
DiskIOProcessorto_diskioprocessor ()
DiskReaderto_diskreader ()
DiskWriterto_diskwriter ()
PluginInsertto_insert ()
InternalSendto_internalsend ()
IOProcessorto_ioprocessor ()
Latentto_latent ()
PeakMeterto_meter ()
MonitorProcessorto_monitorprocessor ()
PeakMeterto_peakmeter ()
PluginInsertto_plugininsert ()
PolarityProcessorto_polarityprocessor ()
Sendto_send ()
SideChainto_sidechain ()
UnknownProcessorto_unknownprocessor ()

Inherited from ARDOUR:SessionObjectPtr

Methods
std::stringname ()
Cast
Statefulto_stateful ()
StatefulDestructibleto_statefuldestructible ()

 ARDOUR:Session

C‡: ARDOUR::Session

Ardour Session

Methods
boolabort_empty_reversible_command ()

Abort reversible command IFF no undo changes have been collected.

Returns true if undo operation was aborted.

voidabort_reversible_command ()

abort an open undo command This must only be called after begin_reversible_command ()

boolactively_recording ()
doubleactual_speed ()
voidadd_command (Command)
voidadd_internal_send (Route, Processor, Route)
voidadd_internal_sends (Route, Placement, RouteListPtr)
intadd_master_bus (ChanCount)
StatefulDiffCommandadd_stateful_diff_command (StatefulDestructiblePtr)

create an StatefulDiffCommand from the given object and add it to the stack.

This function must only be called after begin_reversible_command. Failing to do so may lead to a crash.

sfd
the object to diff

Returns the allocated StatefulDiffCommand (already added via add_command)

boolapply_nth_mixer_scene (unsigned long)
boolapply_nth_mixer_scene_to (unsigned long, RouteList)
voidbegin_reversible_command (std::string)

begin collecting undo information

This call must always be followed by either begin_reversible_command() or commit_reversible_command()

cmd_name
human readable name for the undo operation
BundleListPtrbundles ()
voidcancel_all_solo ()
SessionConfigurationcfg ()
voidclear_all_solo_state (RouteListPtr)
boolcollected_undo_commands ()

Test if any undo commands were added since the call to begin_reversible_command ()

This is useful to determine if an undoable action was performed before adding additional information (e.g. selection changes) to the undo transaction.

Returns true if undo operation is valid but empty

voidcommit_reversible_command (Command)

finalize an undo command and commit pending transactions

This must only be called after begin_reversible_command ()

cmd
(additional) command to add
Controllablecontrollable_by_id (ID)
longcurrent_end_sample ()
longcurrent_start_sample ()
voidcut_copy_section (timepos_t, timepos_t, timepos_t, bool)
voiddisable_record (bool, bool)
AudioEngineengine ()
doubleengine_speed ()
boolexport_track_state (RouteListPtr, std::string)
unsigned intget_block_size ()
boolget_play_loop ()
Routeget_remote_nth_route (unsigned int)
Stripableget_remote_nth_stripable (unsigned int, Flag)
RouteListget_routelist (bool, Flag)
RouteListPtrget_routes ()
BufferSetget_scratch_buffers (ChanCount, bool)
BufferSetget_silent_buffers (ChanCount)
StripableListget_stripables ()
RouteListPtrget_tracks ()
unsigned intget_xrun_count ()
voidgoto_end ()
voidgoto_start (bool)
longio_latency ()
longlast_transport_start ()
boollistening ()
Locationslocations ()
Routemaster_out ()
voidmaybe_enable_record (bool)
Routemonitor_out ()
std::stringname ()
RouteListnew_audio_route (int, int, RouteGroup, unsigned int, std::string, Flag, unsigned int)
AudioTrackListnew_audio_track (int, int, RouteGroup, unsigned int, std::string, unsigned int, TrackMode, bool, bool)
RouteListnew_midi_route (RouteGroup, unsigned int, std::string, bool, PluginInfo, PresetRecord, Flag, unsigned int)
MidiTrackListnew_midi_track (ChanCount, ChanCount, bool, PluginInfo, PresetRecord, RouteGroup, unsigned int, std::string, unsigned int, TrackMode, bool, bool)
RouteListnew_route_from_template (unsigned int, unsigned int, std::string, std::string, PlaylistDisposition)
RouteGroupnew_route_group (std::string)
longnominal_sample_rate ()

"native" sample rate of session, regardless of current audioengine rate, pullup/down etc

MixerScenenth_mixer_scene (unsigned long, bool)
boolnth_mixer_scene_valid (unsigned long)
std::stringpath ()
SessionPlaylistsplaylists ()
boolplot_process_graph (std::string)
Processorprocessor_by_id (ID)
RecordStaterecord_status ()
voidremove_route_group (RouteGroup)
intrename (std::string)
voidrequest_bounded_roll (long, long)
voidrequest_locate (long, bool, LocateTransportDisposition, TransportRequestSource)
voidrequest_play_loop (bool, bool)
voidrequest_roll (TransportRequestSource)
voidrequest_stop (bool, bool, TransportRequestSource)
voidrequest_transport_speed (double, TransportRequestSource)
voidreset_xrun_count ()
Routeroute_by_id (ID)