|
Ardour
9.0-pre0-1950-g391fe97693
|
#include <step_sequencer.h>
Classes | |
| struct | Note |
| struct | ParameterValue |
Public Types | |
| enum | Mode { AbsolutePitch , RelativePitch } |
| typedef boost::rational< int > | DurationRatio |
Public Member Functions | |
| Step (StepSequence &, size_t n, Temporal::Beats const &beat, int notenum) | |
| ~Step () | |
| size_t | index () const |
| void | set_note (double note, double velocity=0.5, int n=0) |
| void | set_chord (size_t note_cnt, double *notes) |
| void | set_parameter (int number, double value, int n=0) |
| void | adjust_velocity (int amt) |
| void | adjust_pitch (int amt) |
| void | adjust_duration (DurationRatio const &amt) |
| void | adjust_octave (int amt) |
| void | adjust_offset (double fraction) |
| Mode | mode () const |
| void | set_mode (Mode m) |
| double | note (size_t n=0) const |
| double | velocity (size_t n=0) const |
| void | set_velocity (double, size_t n=0) |
| DurationRatio | duration () const |
| void | set_duration (DurationRatio const &) |
| void | set_offset (Temporal::Beats const &, size_t n=0) |
| Temporal::Beats | offset (size_t n=0) const |
| int | parameter (size_t n=0) const |
| int | parameter_value (size_t n=0) const |
| void | set_enabled (bool) |
| bool | enabled () const |
| void | set_repeat (size_t r) |
| size_t | repeat () const |
| void | set_beat (Temporal::Beats const &beat) |
| Temporal::Beats | beat () const |
| bool | run (MidiBuffer &buf, bool running, samplepos_t, samplepos_t, MidiNoteTracker &) |
| bool | skipped () const |
| void | set_skipped (bool) |
| void | reschedule (Temporal::Beats const &, Temporal::Beats const &) |
| int | octave_shift () const |
| void | set_octave_shift (int) |
| XMLNode & | get_state () const |
| int | set_state (XMLNode const &, int) |
| void | dump (MusicTimeEvents &, Temporal::Beats const &) const |
Public Member Functions inherited from PBD::Stateful | |
| Stateful () | |
| virtual | ~Stateful () |
| virtual bool | apply_change (PropertyBase const &) |
| PropertyChange | apply_changes (PropertyList const &) |
| const OwnedPropertyList & | properties () const |
| void | add_property (PropertyBase &s) |
| void | add_extra_xml (XMLNode &) |
| XMLNode * | extra_xml (const std::string &str, bool add_if_missing=false) |
| void | save_extra_xml (const XMLNode &) |
| const PBD::ID & | id () const |
| bool | set_id (const XMLNode &) |
| void | set_id (const std::string &) |
| void | reset_id () |
| void | clear_changes () |
| virtual void | clear_owned_changes () |
| PropertyList * | get_changes_as_properties (PBD::Command *) const |
| virtual void | rdiff (std::vector< PBD::Command * > &) const |
| bool | changed () const |
| virtual PropertyList * | property_factory (const XMLNode &) const |
| virtual void | suspend_property_changes () |
| virtual void | resume_property_changes () |
| bool | property_changes_suspended () const |
Static Public Attributes | |
| static const int | _notes_per_step = 5 |
| static const int | _parameters_per_step = 5 |
Static Public Attributes inherited from PBD::Stateful | |
| static int | current_state_version |
| static int | loading_state_version |
Private Member Functions | |
| void | check_note (size_t n, MidiBuffer &buf, bool, samplepos_t, samplepos_t, MidiNoteTracker &) |
| void | check_parameter (size_t n, MidiBuffer &buf, bool, samplepos_t, samplepos_t) |
| void | dump_note (MusicTimeEvents &, size_t n, Temporal::Beats const &) const |
| void | dump_parameter (MusicTimeEvents &, size_t n, Temporal::Beats const &) const |
| StepSequencer & | sequencer () const |
Private Attributes | |
| StepSequence & | _sequence |
| size_t | _index |
| bool | _enabled |
| Temporal::Beats | _nominal_beat |
| Temporal::Beats | _scheduled_beat |
| bool | _skipped |
| Mode | _mode |
| int | _octave_shift |
| DurationRatio | _duration |
| Note | _notes [_notes_per_step] |
| ParameterValue | _parameters [_parameters_per_step] |
| size_t | _repeat |
Friends | |
| class | StepSequence |
Additional Inherited Members | |
Public Attributes inherited from PBD::Stateful | |
| PBD::Signal< void(const PropertyChange &)> | PropertyChanged |
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 |
Protected Attributes inherited from PBD::Stateful | |
| XMLNode * | _extra_xml |
| XMLNode * | _instant_xml |
| PBD::PropertyChange | _pending_changed |
| Glib::Threads::Mutex | _lock |
| std::string | _xml_node_name |
| name of node to use for this object in XML More... | |
| OwnedPropertyList * | _properties |
Definition at line 59 of file step_sequencer.h.
| typedef boost::rational<int> ARDOUR::Step::DurationRatio |
Definition at line 66 of file step_sequencer.h.
| enum ARDOUR::Step::Mode |
| Enumerator | |
|---|---|
| AbsolutePitch | |
| RelativePitch | |
Definition at line 61 of file step_sequencer.h.
| ARDOUR::Step::Step | ( | StepSequence & | , |
| size_t | n, | ||
| Temporal::Beats const & | beat, | ||
| int | notenum | ||
| ) |
| ARDOUR::Step::~Step | ( | ) |
| void ARDOUR::Step::adjust_duration | ( | DurationRatio const & | amt | ) |
| void ARDOUR::Step::adjust_octave | ( | int | amt | ) |
| void ARDOUR::Step::adjust_offset | ( | double | fraction | ) |
| void ARDOUR::Step::adjust_pitch | ( | int | amt | ) |
| void ARDOUR::Step::adjust_velocity | ( | int | amt | ) |
|
inline |
Definition at line 106 of file step_sequencer.h.
|
private |
|
private |
| void ARDOUR::Step::dump | ( | MusicTimeEvents & | , |
| Temporal::Beats const & | |||
| ) | const |
|
private |
|
private |
|
inline |
Definition at line 90 of file step_sequencer.h.
|
inline |
Definition at line 100 of file step_sequencer.h.
|
virtual |
Implements PBD::Stateful.
|
inline |
Definition at line 71 of file step_sequencer.h.
|
inline |
Definition at line 83 of file step_sequencer.h.
|
inline |
Definition at line 86 of file step_sequencer.h.
|
inline |
Definition at line 115 of file step_sequencer.h.
|
inline |
Definition at line 94 of file step_sequencer.h.
|
inline |
Definition at line 96 of file step_sequencer.h.
|
inline |
Definition at line 97 of file step_sequencer.h.
|
inline |
Definition at line 103 of file step_sequencer.h.
| void ARDOUR::Step::reschedule | ( | Temporal::Beats const & | , |
| Temporal::Beats const & | |||
| ) |
| bool ARDOUR::Step::run | ( | MidiBuffer & | buf, |
| bool | running, | ||
| samplepos_t | , | ||
| samplepos_t | , | ||
| MidiNoteTracker & | |||
| ) |
|
private |
| void ARDOUR::Step::set_beat | ( | Temporal::Beats const & | beat | ) |
| void ARDOUR::Step::set_chord | ( | size_t | note_cnt, |
| double * | notes | ||
| ) |
| void ARDOUR::Step::set_duration | ( | DurationRatio const & | ) |
| void ARDOUR::Step::set_enabled | ( | bool | ) |
| void ARDOUR::Step::set_mode | ( | Mode | m | ) |
| void ARDOUR::Step::set_note | ( | double | note, |
| double | velocity = 0.5, |
||
| int | n = 0 |
||
| ) |
| void ARDOUR::Step::set_octave_shift | ( | int | ) |
| void ARDOUR::Step::set_offset | ( | Temporal::Beats const & | , |
| size_t | n = 0 |
||
| ) |
| void ARDOUR::Step::set_parameter | ( | int | number, |
| double | value, | ||
| int | n = 0 |
||
| ) |
| void ARDOUR::Step::set_repeat | ( | size_t | r | ) |
| void ARDOUR::Step::set_skipped | ( | bool | ) |
|
virtual |
Implements PBD::Stateful.
| void ARDOUR::Step::set_velocity | ( | double | , |
| size_t | n = 0 |
||
| ) |
|
inline |
Definition at line 110 of file step_sequencer.h.
|
inline |
Definition at line 87 of file step_sequencer.h.
|
friend |
Definition at line 127 of file step_sequencer.h.
|
private |
Definition at line 137 of file step_sequencer.h.
|
private |
Definition at line 131 of file step_sequencer.h.
|
private |
Definition at line 130 of file step_sequencer.h.
|
private |
Definition at line 135 of file step_sequencer.h.
|
private |
Definition at line 132 of file step_sequencer.h.
|
private |
Definition at line 157 of file step_sequencer.h.
|
static |
Definition at line 123 of file step_sequencer.h.
|
private |
Definition at line 136 of file step_sequencer.h.
|
private |
Definition at line 158 of file step_sequencer.h.
|
static |
Definition at line 124 of file step_sequencer.h.
|
private |
Definition at line 159 of file step_sequencer.h.
|
private |
Definition at line 133 of file step_sequencer.h.
|
private |
Definition at line 129 of file step_sequencer.h.
|
private |
Definition at line 134 of file step_sequencer.h.