#include "ardour/audio_unit.h"
#endif
-#ifdef HAVE_SLV2
+#ifdef LV2_SUPPORT
#include "ardour/lv2_plugin.h"
#endif
, _have_pending_stop_events (false)
, _parameter_changed_since_last_preset (false)
{
-
+
}
Plugin::~Plugin ()
{
-
+
}
void
plugs = mgr->ladspa_plugin_info();
break;
-#ifdef HAVE_SLV2
+#ifdef LV2_SUPPORT
case ARDOUR::LV2:
plugs = mgr->lv2_plugin_info();
break;
return &i->second;
}
}
-
+
return 0;
}
MidiBuffer& b = bufs.get_midi (0);
bool looped;
_tracker.track (b.begin(), b.end(), looped);
-
+
if (_have_pending_stop_events) {
/* Transmit note-offs that are pending from the last transport stop */
bufs.merge_from (_pending_stop_events, 0);
/* Create note-offs for any active notes and put them in _pending_stop_events, to be picked
up on the next call to connect_and_run ().
*/
-
+
_pending_stop_events.ensure_buffers (DataType::MIDI, 1, 4096);
_pending_stop_events.get_midi(0).clear ();
_tracker.resolve_notes (_pending_stop_events.get_midi (0), 0);
for (map<string, PresetRecord>::const_iterator i = _presets.begin(); i != _presets.end(); ++i) {
p.push_back (i->second);
}
-
+
return p;
}
return true;
}
+/** @param val `plugin' value */
void
Plugin::set_parameter (uint32_t which, float val)
{
_parameter_changed_since_last_preset = true;
- ParameterChanged (Evoral::Parameter (PluginAutomation, 0, which), val); /* EMIT SIGNAL */
+ _session.set_dirty ();
+ ParameterChanged (which, val); /* EMIT SIGNAL */
}
int