summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/instrument_info.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-06-11 12:07:17 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-06-11 12:07:17 +0000
commit960de7306f8573f6cb698cf031fad46daa3c741d (patch)
tree690e6312cbe1d25bfe3845cdd578b6c864d83ab8 /libs/ardour/ardour/instrument_info.h
parent80afb6e08b52f05d672df2d991265df713792010 (diff)
partially-done (but compile-friendly) move of instrument info into a new backend object
git-svn-id: svn://localhost/ardour2/branches/3.0@12652 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/instrument_info.h')
-rw-r--r--libs/ardour/ardour/instrument_info.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/libs/ardour/ardour/instrument_info.h b/libs/ardour/ardour/instrument_info.h
new file mode 100644
index 0000000000..d4c9bf4f46
--- /dev/null
+++ b/libs/ardour/ardour/instrument_info.h
@@ -0,0 +1,56 @@
+/*
+ Copyright (C) 2012 Paul Davis
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef __ardour_instrument_info_h__
+#define __ardour_instrument_info_h__
+
+#include <string>
+#include <stdint.h>
+
+#include "pbd/signals.h"
+
+#include <boost/weak_ptr.hpp>
+
+namespace ARDOUR {
+
+class Processor;
+
+class InstrumentInfo {
+ public:
+ InstrumentInfo();
+ ~InstrumentInfo ();
+
+ void set_external_instrument (const std::string& model, const std::string& mode);
+ void set_internal_instrument (boost::shared_ptr<ARDOUR::Processor>);
+
+ std::string get_patch_name (uint16_t bank, uint8_t program, uint8_t channel) const;
+ std::string get_instrument_name () const;
+
+ PBD::Signal0<void> Changed;
+
+ private:
+ std::string external_instrument_model;
+ std::string external_instrument_mode;
+
+ boost::weak_ptr<ARDOUR::Processor> internal_instrument;
+};
+
+} /* namespace ARDOUR */
+
+
+#endif /* __ardour_instrument_info_h__ */