summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/lua_api.h3
-rw-r--r--libs/ardour/ardour/midi_model.h22
-rw-r--r--libs/ardour/ardour/playlist.h5
-rw-r--r--libs/ardour/ardour/plugin.h8
4 files changed, 35 insertions, 3 deletions
diff --git a/libs/ardour/ardour/lua_api.h b/libs/ardour/ardour/lua_api.h
index 3e1caac49a..9f5e0d0aa1 100644
--- a/libs/ardour/ardour/lua_api.h
+++ b/libs/ardour/ardour/lua_api.h
@@ -65,8 +65,7 @@ namespace ARDOUR { namespace LuaAPI {
*/
boost::shared_ptr<ARDOUR::Processor> new_luaproc (ARDOUR::Session *s, const std::string& p);
- /** return a PluginInfoList (all plugin)
- */
+ /** List all installed plugins */
std::list<boost::shared_ptr<ARDOUR::PluginInfo> > list_plugins ();
/** search a Plugin
diff --git a/libs/ardour/ardour/midi_model.h b/libs/ardour/ardour/midi_model.h
index 78a8e3189d..90375754e9 100644
--- a/libs/ardour/ardour/midi_model.h
+++ b/libs/ardour/ardour/midi_model.h
@@ -254,11 +254,33 @@ public:
PatchChangePtr unmarshal_patch_change (XMLNode *);
};
+ /** Start a new NoteDiff command.
+ *
+ * This has no side-effects on the model or Session, the returned command
+ * can be held on to for as long as the caller wishes, or discarded without
+ * formality, until apply_command is called and ownership is taken.
+ */
MidiModel::NoteDiffCommand* new_note_diff_command (const std::string& name = "midi edit");
+ /** Start a new SysExDiff command */
MidiModel::SysExDiffCommand* new_sysex_diff_command (const std::string& name = "midi edit");
+
+ /** Start a new PatchChangeDiff command */
MidiModel::PatchChangeDiffCommand* new_patch_change_diff_command (const std::string& name = "midi edit");
+
+ /** Apply a command.
+ *
+ * Ownership of cmd is taken, it must not be deleted by the caller.
+ * The command will constitute one item on the undo stack.
+ */
void apply_command (Session& session, Command* cmd);
+
void apply_command (Session* session, Command* cmd) { if (session) { apply_command (*session, cmd); } }
+
+ /** Apply a command as part of a larger reversible transaction
+ *
+ * Ownership of cmd is taken, it must not be deleted by the caller.
+ * The command will constitute one item on the undo stack.
+ */
void apply_command_as_subcommand (Session& session, Command* cmd);
bool sync_to_source (const Glib::Threads::Mutex::Lock& source_lock);
diff --git a/libs/ardour/ardour/playlist.h b/libs/ardour/ardour/playlist.h
index 6ed211c376..032a4fb7fb 100644
--- a/libs/ardour/ardour/playlist.h
+++ b/libs/ardour/ardour/playlist.h
@@ -187,6 +187,11 @@ public:
boost::shared_ptr<RegionList> regions_at (samplepos_t sample);
uint32_t count_regions_at (samplepos_t) const;
+
+ /** @param start Range start.
+ * @param end Range end.
+ * @return regions which have some part within this range.
+ */
boost::shared_ptr<RegionList> regions_touched (samplepos_t start, samplepos_t end);
boost::shared_ptr<RegionList> regions_with_start_within (Evoral::Range<samplepos_t>);
boost::shared_ptr<RegionList> regions_with_end_within (Evoral::Range<samplepos_t>);
diff --git a/libs/ardour/ardour/plugin.h b/libs/ardour/ardour/plugin.h
index 04879eb95c..9b35b75bf9 100644
--- a/libs/ardour/ardour/plugin.h
+++ b/libs/ardour/ardour/plugin.h
@@ -209,9 +209,15 @@ class LIBARDOUR_API Plugin : public PBD::StatefulDestructible, public HasLatency
bool valid;
};
- PresetRecord save_preset (std::string);
+ /** Create a new plugin-preset from the current state
+ *
+ * @param_name label to use for new preset (needs to be unique)
+ * @return PresetRecord with empty URI on failure
+ */
+ PresetRecord save_preset (std::string name);
void remove_preset (std::string);
+ /** Set parameters using a preset */
virtual bool load_preset (PresetRecord);
void clear_preset ();