Allow the selected Instrument to be used as the auditioner synth.
authorBen Loftis <ben@harrisonconsoles.com>
Fri, 1 Feb 2019 16:17:48 +0000 (10:17 -0600)
committerBen Loftis <ben@harrisonconsoles.com>
Tue, 12 Feb 2019 19:04:59 +0000 (13:04 -0600)
gtk2_ardour/sfdb_ui.cc
gtk2_ardour/sfdb_ui.h

index 37a9126a8ca6916f419639bf1f683f992982740e..67eda8914a700d3e1daa7385b6145bc325334f7d 100644 (file)
@@ -1798,6 +1798,9 @@ SoundFileOmega::SoundFileOmega (string title, ARDOUR::Session* s,
        where_combo.set_active_text (str.back());
        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);
        l->set_markup (_("<b>Add files ...</b>"));
        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());
 }
 
+void
+SoundFileOmega::instrument_combo_changed()
+{
+       _session->the_auditioner()->set_audition_synth_info( instrument_combo.selected_instrument() );
+}
+
 MidiTrackNameSource
 SoundFileOmega::get_midi_track_name_source () const
 {
index a1ac98fd8abc5ae09d6abbacc8455e606d51f63e..e25931f5824c44afcc97fc84ba6a4d4f47f3a7cc 100644 (file)
@@ -324,6 +324,8 @@ private:
 
        static bool check_link_status (const ARDOUR::Session*, const std::vector<std::string>& paths);
 
+       void instrument_combo_changed ();
+
        void file_selection_changed ();
        bool reset_options ();
        void reset_options_noret ();