ardour
|
#include <midi_scene_changer.h>
Public Member Functions | |
MIDISceneChanger (Session &) | |
~MIDISceneChanger () | |
void | run (framepos_t start, framepos_t end) |
void | set_input_port (MIDI::Port *) |
void | set_output_port (boost::shared_ptr< MidiPort >) |
uint8_t | bank_at (framepos_t, uint8_t channel) |
uint8_t | program_at (framepos_t, uint8_t channel) |
void | set_recording (bool) |
void | locate (framepos_t) |
Public Member Functions inherited from ARDOUR::SceneChanger | |
SceneChanger (Session &s) | |
virtual | ~SceneChanger () |
Public Member Functions inherited from ARDOUR::SessionHandleRef | |
SessionHandleRef (ARDOUR::Session &s) | |
virtual | ~SessionHandleRef () |
Public Member Functions inherited from PBD::ScopedConnectionList | |
ScopedConnectionList () | |
virtual | ~ScopedConnectionList () |
void | add_connection (const UnscopedConnection &c) |
void | drop_connections () |
Public Attributes | |
PBD::Signal0< void > | MIDIInputActivity |
PBD::Signal0< void > | MIDIOutputActivity |
Private Types | |
typedef std::multimap < framepos_t, boost::shared_ptr < MIDISceneChange > > | Scenes |
Private Member Functions | |
void | gather (const Locations::LocationList &) |
bool | recording () const |
void | jump_to (int bank, int program) |
void | rt_deliver (MidiBuffer &, framepos_t, boost::shared_ptr< MIDISceneChange >) |
void | non_rt_deliver (boost::shared_ptr< MIDISceneChange >) |
void | bank_change_input (MIDI::Parser &, unsigned short, int channel) |
void | program_change_input (MIDI::Parser &, MIDI::byte, int channel) |
void | locations_changed () |
Private Attributes | |
MIDI::Port * | input_port |
boost::shared_ptr< MidiPort > | output_port |
Glib::Threads::RWLock | scene_lock |
Scenes | scenes |
bool | _recording |
bool | have_seen_bank_changes |
framepos_t | last_program_message_time |
unsigned short | current_bank |
int | last_delivered_program |
int | last_delivered_bank |
PBD::ScopedConnectionList | incoming_connections |
Additional Inherited Members | |
Protected Member Functions inherited from ARDOUR::SessionHandleRef | |
virtual void | session_going_away () |
virtual void | insanity_check () |
Protected Attributes inherited from ARDOUR::SessionHandleRef | |
ARDOUR::Session & | _session |
Definition at line 32 of file midi_scene_changer.h.
|
private |
Definition at line 57 of file midi_scene_changer.h.
MIDISceneChanger::MIDISceneChanger | ( | Session & | s | ) |
Definition at line 37 of file midi_scene_changer.cc.
MIDISceneChanger::~MIDISceneChanger | ( | ) |
Definition at line 55 of file midi_scene_changer.cc.
uint8_t ARDOUR::MIDISceneChanger::bank_at | ( | framepos_t | , |
uint8_t | channel | ||
) |
|
private |
Definition at line 260 of file midi_scene_changer.cc.
|
private |
Use the session's list of locations to collect all patch changes.
This is called whenever the locations change in anyway.
Definition at line 70 of file midi_scene_changer.cc.
|
private |
Definition at line 341 of file midi_scene_changer.cc.
|
virtual |
Implements ARDOUR::SceneChanger.
Definition at line 182 of file midi_scene_changer.cc.
|
private |
Definition at line 60 of file midi_scene_changer.cc.
|
private |
Definition at line 122 of file midi_scene_changer.cc.
uint8_t ARDOUR::MIDISceneChanger::program_at | ( | framepos_t | , |
uint8_t | channel | ||
) |
|
private |
Definition at line 269 of file midi_scene_changer.cc.
|
private |
Definition at line 254 of file midi_scene_changer.cc.
|
private |
Definition at line 97 of file midi_scene_changer.cc.
|
virtual |
Implements ARDOUR::SceneChanger.
Definition at line 152 of file midi_scene_changer.cc.
void MIDISceneChanger::set_input_port | ( | MIDI::Port * | mp | ) |
Definition at line 221 of file midi_scene_changer.cc.
void MIDISceneChanger::set_output_port | ( | boost::shared_ptr< MidiPort > | mp | ) |
Definition at line 242 of file midi_scene_changer.cc.
void MIDISceneChanger::set_recording | ( | bool | yn | ) |
Definition at line 248 of file midi_scene_changer.cc.
|
private |
Definition at line 63 of file midi_scene_changer.h.
|
private |
Definition at line 66 of file midi_scene_changer.h.
|
private |
Definition at line 64 of file midi_scene_changer.h.
|
private |
Definition at line 80 of file midi_scene_changer.h.
|
private |
Definition at line 59 of file midi_scene_changer.h.
|
private |
Definition at line 68 of file midi_scene_changer.h.
|
private |
Definition at line 67 of file midi_scene_changer.h.
|
private |
Definition at line 65 of file midi_scene_changer.h.
PBD::Signal0<void> ARDOUR::MIDISceneChanger::MIDIInputActivity |
Signal emitted whenever any relevant MIDI input is detected.
Definition at line 50 of file midi_scene_changer.h.
PBD::Signal0<void> ARDOUR::MIDISceneChanger::MIDIOutputActivity |
Signal emitted whenever any relevant MIDI output is sent.
Definition at line 54 of file midi_scene_changer.h.
|
private |
Definition at line 60 of file midi_scene_changer.h.
|
private |
Definition at line 61 of file midi_scene_changer.h.
|
private |
Definition at line 62 of file midi_scene_changer.h.