/// <summary> /// Constructs a new Midi Processor. /// </summary> /// <param name="plugin">Must not be null.</param> public MidiProcessor(IVstPluginEvents pluginEvents, PluginParameters parameters) { Gain = new Gain(parameters.GainParameters); Transpose = new Transpose(parameters.TransposeParameters); // for most hosts, midi output is expected during the audio processing cycle. SyncWithAudioProcessor = true; pluginEvents.Opened += Plugin_Opened; }
public PluginEditor(PluginParameters parameters) { _parameters = parameters ?? throw new ArgumentNullException(nameof(parameters)); _view = new WinFormsControlWrapper <PluginEditorView>(); }
/// <summary> /// Constructs a new instance. /// </summary> /// <param name="plugin">A reference to the plugin root object.</param> public PluginPrograms(PluginParameters parameters) { _parameters = parameters ?? throw new ArgumentNullException(nameof(parameters)); }