示例#1
0
        /// <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;
        }
示例#2
0
 public PluginEditor(PluginParameters parameters)
 {
     _parameters = parameters ?? throw new ArgumentNullException(nameof(parameters));
     _view       = new WinFormsControlWrapper <PluginEditorView>();
 }
示例#3
0
 /// <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));
 }