Esempio n. 1
0
        public MidiNoteMapper()
        {
            _inChainMgr = new MidiInPortChainManager(_inPort);

            _diagnosticsReceiver = new MidiDiagnosticReceiver();
            _inChainMgr.Add(_diagnosticsReceiver);

            _inChainMgr.Add(this);

            _inChainMgr.Initialize(0, 0);
        }
Esempio n. 2
0
        public MidiSysExReceiver(AppData appData)
        {
            _appData  = appData;
            _inPort   = new MidiInPort();
            _chainMgr = new MidiInPortChainManager(_inPort);

            _chainMgr.Add(this);

            // also hookup error notification
            _inPort.NextErrorReceiver = this;

            _inPort.BufferManager.Initialize(10, 1024);
        }