Allow the selected Instrument to be used as the auditioner synth.
This commit is contained in:
parent
c881b4a85f
commit
5eca084d00
@ -1798,6 +1798,9 @@ SoundFileOmega::SoundFileOmega (string title, ARDOUR::Session* s,
|
|||||||
where_combo.set_active_text (str.back());
|
where_combo.set_active_text (str.back());
|
||||||
where_combo.signal_changed().connect (sigc::mem_fun (*this, &SoundFileOmega::where_combo_changed));
|
where_combo.signal_changed().connect (sigc::mem_fun (*this, &SoundFileOmega::where_combo_changed));
|
||||||
|
|
||||||
|
instrument_combo_changed();
|
||||||
|
instrument_combo.signal_changed().connect(sigc::mem_fun(*this, &SoundFileOmega::instrument_combo_changed) );
|
||||||
|
|
||||||
Label* l = manage (new Label);
|
Label* l = manage (new Label);
|
||||||
l->set_markup (_("<b>Add files ...</b>"));
|
l->set_markup (_("<b>Add files ...</b>"));
|
||||||
options.attach (*l, 0, 1, 0, 1, FILL, SHRINK, 8, 0);
|
options.attach (*l, 0, 1, 0, 1, FILL, SHRINK, 8, 0);
|
||||||
@ -1984,6 +1987,12 @@ SoundFileOmega::where_combo_changed()
|
|||||||
preview.set_import_position(get_position());
|
preview.set_import_position(get_position());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
SoundFileOmega::instrument_combo_changed()
|
||||||
|
{
|
||||||
|
_session->the_auditioner()->set_audition_synth_info( instrument_combo.selected_instrument() );
|
||||||
|
}
|
||||||
|
|
||||||
MidiTrackNameSource
|
MidiTrackNameSource
|
||||||
SoundFileOmega::get_midi_track_name_source () const
|
SoundFileOmega::get_midi_track_name_source () const
|
||||||
{
|
{
|
||||||
|
@ -324,6 +324,8 @@ private:
|
|||||||
|
|
||||||
static bool check_link_status (const ARDOUR::Session*, const std::vector<std::string>& paths);
|
static bool check_link_status (const ARDOUR::Session*, const std::vector<std::string>& paths);
|
||||||
|
|
||||||
|
void instrument_combo_changed ();
|
||||||
|
|
||||||
void file_selection_changed ();
|
void file_selection_changed ();
|
||||||
bool reset_options ();
|
bool reset_options ();
|
||||||
void reset_options_noret ();
|
void reset_options_noret ();
|
||||||
|
Loading…
Reference in New Issue
Block a user