Ardour
9.0-pre0-582-g084a23a80d
|
#include <triggerbox.h>
Classes | |
struct | UIRequests |
struct | UIState |
Public Types | |
enum | State { Stopped , WaitingToStart , Running , WaitingForRetrigger , WaitingToStop , WaitingToSwitch , Stopping } |
enum | LaunchStyle { OneShot , ReTrigger , Gate , Toggle , Repeat } |
enum | StretchMode { Crisp , Mixed , Smooth } |
Static Public Member Functions | |
static void | make_property_quarks () |
static void | request_trigger_delete (Trigger *t) |
Public Attributes | |
PBD::Signal< void()> | ArmChanged |
samplepos_t | transition_samples |
Temporal::Beats | transition_beats |
Temporal::BBT_Time | _transition_bbt |
Public Attributes inherited from PBD::Stateful | |
PBD::Signal< void(const PropertyChange &)> | PropertyChanged |
Static Public Attributes | |
static PBD::Signal< void(Trigger const *)> | TriggerArmChanged |
static Trigger *const | MagicClearPointerValue |
static PBD::Signal< void(PBD::PropertyChange, Trigger *)> | TriggerPropertyChange |
Static Public Attributes inherited from PBD::Stateful | |
static int | current_state_version |
static int | loading_state_version |
Protected Member Functions | |
void | copy_to_ui_state () |
void | when_stopped_during_run (BufferSet &bufs, pframes_t dest_offset) |
void | set_region_internal (std::shared_ptr< Region >) |
virtual void | retrigger () |
virtual void | _startup (BufferSet &, pframes_t dest_offset, Temporal::BBT_Offset const &) |
bool | internal_use_follow_length () const |
void | send_property_change (PBD::PropertyChange pc) |
Protected Member Functions inherited from PBD::Stateful | |
void | add_instant_xml (XMLNode &, const std::string &directory_path) |
XMLNode * | instant_xml (const std::string &str, const std::string &directory_path) |
void | add_properties (XMLNode &) const |
PropertyChange | set_values (XMLNode const &) |
virtual void | post_set (const PropertyChange &) |
virtual void | send_change (const PropertyChange &) |
virtual void | mid_thaw (const PropertyChange &) |
bool | regenerate_xml_or_string_ids () const |
Definition at line 88 of file triggerbox.h.
Enumerator | |
---|---|
OneShot | |
ReTrigger | |
Gate | |
Toggle | |
Repeat |
Definition at line 129 of file triggerbox.h.
Enumerator | |
---|---|
Stopped | |
WaitingToStart | |
Running | |
WaitingForRetrigger | |
WaitingToStop | |
WaitingToSwitch | |
Stopping |
Definition at line 90 of file triggerbox.h.
Enumerator | |
---|---|
Crisp | |
Mixed | |
Smooth |
Definition at line 137 of file triggerbox.h.
ARDOUR::Trigger::Trigger | ( | uint32_t | index, |
TriggerBox & | |||
) |
|
inlinevirtual |
Definition at line 144 of file triggerbox.h.
|
protectedvirtual |
Reimplemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
|
inline |
Definition at line 326 of file triggerbox.h.
bool ARDOUR::Trigger::allow_patch_changes | ( | ) | const |
|
virtual |
Reimplemented in ARDOUR::MIDITrigger.
|
inline |
Definition at line 302 of file triggerbox.h.
void ARDOUR::Trigger::bang | ( | float | velocity = 1.0f | ) |
void ARDOUR::Trigger::begin_stop | ( | bool | explicit_stop = false | ) |
void ARDOUR::Trigger::begin_switch | ( | TriggerPtr | ) |
|
inlinevirtual |
Reimplemented in ARDOUR::MIDITrigger.
Definition at line 437 of file triggerbox.h.
|
inline |
Definition at line 389 of file triggerbox.h.
std::shared_ptr<TriggerBox> ARDOUR::Trigger::boxptr | ( | ) | const |
|
inlinevirtual |
Reimplemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
Definition at line 299 of file triggerbox.h.
|
inlinevirtual |
Reimplemented in ARDOUR::MIDITrigger.
Definition at line 432 of file triggerbox.h.
void ARDOUR::Trigger::clear_region | ( | ) |
color_t ARDOUR::Trigger::color | ( | ) | const |
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
pframes_t ARDOUR::Trigger::compute_next_transition | ( | samplepos_t | start_sample, |
Temporal::Beats const & | start, | ||
Temporal::Beats const & | end, | ||
pframes_t | nframes, | ||
Temporal::BBT_Argument & | t_bbt, | ||
Temporal::Beats & | t_beats, | ||
samplepos_t & | t_samples, | ||
Temporal::TempoMap::SharedPtr const & | tmap | ||
) |
bool ARDOUR::Trigger::compute_quantized_transition | ( | samplepos_t | start_sample, |
Temporal::Beats const & | start, | ||
Temporal::Beats const & | end, | ||
Temporal::BBT_Argument & | t_bbt, | ||
Temporal::Beats & | t_beats, | ||
samplepos_t & | t_samples, | ||
Temporal::TempoMap::SharedPtr const & | tmap, | ||
Temporal::BBT_Offset const & | q | ||
) |
Temporal::BBT_Argument ARDOUR::Trigger::compute_start | ( | Temporal::TempoMap::SharedPtr const & | , |
samplepos_t | start, | ||
samplepos_t | end, | ||
Temporal::BBT_Offset const & | q, | ||
samplepos_t & | start_samples, | ||
bool & | will_start | ||
) |
|
protected |
bool ARDOUR::Trigger::cue_isolated | ( | ) | const |
|
inline |
Definition at line 316 of file triggerbox.h.
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
timepos_t ARDOUR::Trigger::current_pos | ( | ) | const |
|
virtual |
Reimplemented in ARDOUR::MIDITrigger.
|
inline |
Definition at line 392 of file triggerbox.h.
|
inline |
Definition at line 382 of file triggerbox.h.
FollowAction ARDOUR::Trigger::follow_action0 | ( | ) | const |
FollowAction ARDOUR::Trigger::follow_action1 | ( | ) | const |
int ARDOUR::Trigger::follow_action_probability | ( | ) | const |
uint32_t ARDOUR::Trigger::follow_count | ( | ) | const |
Temporal::BBT_Offset ARDOUR::Trigger::follow_length | ( | ) | const |
gain_t ARDOUR::Trigger::gain | ( | ) | const |
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
|
virtual |
Implements PBD::Stateful.
Reimplemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
void ARDOUR::Trigger::get_ui_state | ( | UIState & | state | ) | const |
|
inline |
Definition at line 336 of file triggerbox.h.
|
protected |
|
inlinevirtual |
Reimplemented in ARDOUR::AudioTrigger.
Definition at line 293 of file triggerbox.h.
|
virtual |
Reimplemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
Reimplemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
LaunchStyle ARDOUR::Trigger::launch_style | ( | ) | const |
bool ARDOUR::Trigger::legato | ( | ) | const |
|
inline |
Definition at line 384 of file triggerbox.h.
|
static |
void ARDOUR::Trigger::maybe_compute_next_transition | ( | samplepos_t | start_sample, |
Temporal::Beats const & | start, | ||
Temporal::Beats const & | end, | ||
pframes_t & | nframes, | ||
pframes_t & | dest_offset | ||
) |
|
inline |
Definition at line 412 of file triggerbox.h.
std::string ARDOUR::Trigger::name | ( | ) | const |
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
|
inline |
Definition at line 367 of file triggerbox.h.
|
inlinevirtual |
Reimplemented in ARDOUR::MIDITrigger.
Definition at line 405 of file triggerbox.h.
|
inlinevirtual |
Reimplemented in ARDOUR::MIDITrigger.
Definition at line 408 of file triggerbox.h.
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
double ARDOUR::Trigger::position_as_fraction | ( | ) | const |
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
Temporal::BBT_Offset ARDOUR::Trigger::quantization | ( | ) | const |
void ARDOUR::Trigger::region_property_change | ( | PBD::PropertyChange const & | ) |
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
void ARDOUR::Trigger::request_stop | ( | ) |
|
static |
|
protectedvirtual |
Reimplemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
|
protected |
void ARDOUR::Trigger::set_allow_patch_changes | ( | bool | ) |
void ARDOUR::Trigger::set_color | ( | color_t | ) |
void ARDOUR::Trigger::set_cue_isolated | ( | bool | ) |
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
void ARDOUR::Trigger::set_follow_action0 | ( | FollowAction const & | ) |
void ARDOUR::Trigger::set_follow_action1 | ( | FollowAction const & | ) |
void ARDOUR::Trigger::set_follow_action_probability | ( | int | ) |
void ARDOUR::Trigger::set_follow_count | ( | uint32_t | ) |
void ARDOUR::Trigger::set_follow_length | ( | Temporal::BBT_Offset const & | ) |
void ARDOUR::Trigger::set_gain | ( | gain_t | ) |
void ARDOUR::Trigger::set_launch_style | ( | LaunchStyle | ) |
void ARDOUR::Trigger::set_legato | ( | bool | ) |
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
void ARDOUR::Trigger::set_name | ( | std::string const & | ) |
void ARDOUR::Trigger::set_next_trigger | ( | int | n | ) |
|
inlinevirtual |
Reimplemented in ARDOUR::MIDITrigger.
Definition at line 404 of file triggerbox.h.
void ARDOUR::Trigger::set_pending | ( | Trigger * | ) |
void ARDOUR::Trigger::set_quantization | ( | Temporal::BBT_Offset const & | ) |
void ARDOUR::Trigger::set_region | ( | std::shared_ptr< Region > | , |
bool | use_thread = true |
||
) |
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
|
protected |
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
|
virtual |
Implements PBD::Stateful.
Reimplemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
void ARDOUR::Trigger::set_stretch_mode | ( | StretchMode | ) |
void ARDOUR::Trigger::set_stretchable | ( | bool | ) |
void ARDOUR::Trigger::set_ui | ( | void * | ) |
void ARDOUR::Trigger::set_ui_state | ( | UIState & | state | ) |
void ARDOUR::Trigger::set_use_follow_length | ( | bool | ) |
|
inlinevirtual |
Reimplemented in ARDOUR::MIDITrigger.
Definition at line 401 of file triggerbox.h.
void ARDOUR::Trigger::set_velocity_effect | ( | float | ) |
|
inline |
Definition at line 414 of file triggerbox.h.
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
Reimplemented in ARDOUR::MIDITrigger.
void ARDOUR::Trigger::shutdown_from_fwd | ( | ) |
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
void ARDOUR::Trigger::start_and_roll_to | ( | samplepos_t | start_pos, |
samplepos_t | end_position, | ||
TriggerType & | trigger, | ||
pframes_t(TriggerType::*)(BufferSet &bufs, samplepos_t start_sample, samplepos_t end_sample, Temporal::Beats const &start_beats, Temporal::Beats const &end_beats, pframes_t nframes, pframes_t dest_offset, double bpm, pframes_t &) | run_method, | ||
uint32_t | cnt | ||
) |
|
pure virtual |
Implemented in ARDOUR::MIDITrigger, and ARDOUR::AudioTrigger.
void ARDOUR::Trigger::startup | ( | BufferSet & | , |
pframes_t | dest_offset, | ||
Temporal::BBT_Offset const & | start_quantization = Temporal::BBT_Offset(9, 3, 0) |
||
) |
void ARDOUR::Trigger::startup_from_ffwd | ( | BufferSet & | , |
uint32_t | loop_cnt | ||
) |
|
inline |
Definition at line 327 of file triggerbox.h.
void ARDOUR::Trigger::stop_quantized | ( | ) |
StretchMode ARDOUR::Trigger::stretch_mode | ( | ) | const |
bool ARDOUR::Trigger::stretchable | ( | ) | const |
|
inlinevirtual |
Reimplemented in ARDOUR::MIDITrigger.
Definition at line 284 of file triggerbox.h.
|
inline |
Definition at line 333 of file triggerbox.h.
|
inline |
Definition at line 387 of file triggerbox.h.
void ARDOUR::Trigger::unbang | ( | ) |
|
inlinevirtual |
Reimplemented in ARDOUR::MIDITrigger.
Definition at line 407 of file triggerbox.h.
|
inlinevirtual |
Reimplemented in ARDOUR::MIDITrigger.
Definition at line 406 of file triggerbox.h.
void ARDOUR::Trigger::update_properties | ( | ) |
bool ARDOUR::Trigger::use_follow_length | ( | ) | const |
|
inlinevirtual |
Reimplemented in ARDOUR::MIDITrigger.
Definition at line 400 of file triggerbox.h.
float ARDOUR::Trigger::velocity_effect | ( | ) | const |
|
inline |
Definition at line 313 of file triggerbox.h.
bool ARDOUR::Trigger::will_not_follow | ( | ) | const |
|
protected |
Definition at line 164 of file triggerbox.h.
|
protected |
Definition at line 463 of file triggerbox.h.
|
protected |
Definition at line 453 of file triggerbox.h.
|
protected |
Definition at line 487 of file triggerbox.h.
|
protected |
Definition at line 449 of file triggerbox.h.
|
protected |
Definition at line 468 of file triggerbox.h.
|
protected |
Definition at line 170 of file triggerbox.h.
|
protected |
Definition at line 163 of file triggerbox.h.
|
protected |
Definition at line 462 of file triggerbox.h.
|
protected |
Definition at line 475 of file triggerbox.h.
|
protected |
Definition at line 459 of file triggerbox.h.
|
protected |
Definition at line 152 of file triggerbox.h.
|
protected |
Definition at line 153 of file triggerbox.h.
|
protected |
Definition at line 154 of file triggerbox.h.
|
protected |
Definition at line 155 of file triggerbox.h.
|
protected |
Definition at line 157 of file triggerbox.h.
|
protected |
Definition at line 160 of file triggerbox.h.
|
protected |
Definition at line 455 of file triggerbox.h.
|
protected |
Definition at line 151 of file triggerbox.h.
|
protected |
Definition at line 159 of file triggerbox.h.
|
protected |
Definition at line 457 of file triggerbox.h.
|
protected |
Definition at line 488 of file triggerbox.h.
|
protected |
Definition at line 169 of file triggerbox.h.
|
protected |
Definition at line 456 of file triggerbox.h.
|
protected |
Definition at line 492 of file triggerbox.h.
|
protected |
Definition at line 467 of file triggerbox.h.
|
protected |
Definition at line 493 of file triggerbox.h.
|
protected |
Definition at line 460 of file triggerbox.h.
|
protected |
Definition at line 452 of file triggerbox.h.
|
protected |
Definition at line 156 of file triggerbox.h.
|
protected |
Definition at line 445 of file triggerbox.h.
|
protected |
Definition at line 450 of file triggerbox.h.
|
protected |
Definition at line 476 of file triggerbox.h.
|
protected |
Definition at line 491 of file triggerbox.h.
|
protected |
Definition at line 451 of file triggerbox.h.
|
protected |
Definition at line 165 of file triggerbox.h.
|
protected |
Definition at line 162 of file triggerbox.h.
Temporal::BBT_Time ARDOUR::Trigger::_transition_bbt |
Definition at line 344 of file triggerbox.h.
|
protected |
Definition at line 458 of file triggerbox.h.
|
protected |
Definition at line 454 of file triggerbox.h.
|
protected |
Definition at line 158 of file triggerbox.h.
|
protected |
Definition at line 466 of file triggerbox.h.
|
protected |
Definition at line 161 of file triggerbox.h.
|
protected |
Definition at line 461 of file triggerbox.h.
PBD::Signal<void()> ARDOUR::Trigger::ArmChanged |
Definition at line 303 of file triggerbox.h.
|
protected |
Definition at line 490 of file triggerbox.h.
|
protected |
Definition at line 447 of file triggerbox.h.
|
protected |
Definition at line 494 of file triggerbox.h.
|
static |
Definition at line 421 of file triggerbox.h.
|
protected |
Definition at line 446 of file triggerbox.h.
|
protected |
Definition at line 495 of file triggerbox.h.
Temporal::Beats ARDOUR::Trigger::transition_beats |
Definition at line 343 of file triggerbox.h.
samplepos_t ARDOUR::Trigger::transition_samples |
Definition at line 342 of file triggerbox.h.
|
static |
Definition at line 304 of file triggerbox.h.
|
static |
Definition at line 434 of file triggerbox.h.
|
protected |
Definition at line 448 of file triggerbox.h.