Example #1
0
        /// <summary>
        /// Constructs a new instance.
        /// </summary>
        /// <param name="plugin">Must not be null.</param>
        public AudioProcessor(Plugin plugin)
            : base(0, 0, 0)
        {
            _plugin = plugin;

            _midiProcessor = plugin.GetInstance <MidiProcessor>();
        }
Example #2
0
 private void EnsureMidiProcessor()
 {
     if (_midiProcessor == null)
     {
         _midiProcessor = _plugin.GetInstance <MidiProcessor>();
     }
 }
Example #3
0
        /// <summary>
        /// Constructs a new instance.
        /// </summary>
        /// <param name="plugin">Must not be null.</param>
        public AudioProcessor(Plugin plugin)
            : base(0, 0, 0, noSoundInStop: true)
        {
            _plugin = plugin;

            _midiProcessor = plugin.GetInstance <MidiProcessor>();
        }
Example #4
0
 /// <summary>
 /// Constructs a new instance.
 /// </summary>
 /// <param name="plugin">Must not be null.</param>
 public PluginEditor(MidiProcessor midiProcessor, MapNoteItemList noteMap)
 {
     _midiProcessor = midiProcessor ?? throw new ArgumentNullException(nameof(midiProcessor));
     _noteMap       = noteMap ?? throw new ArgumentNullException(nameof(noteMap));
 }