Exemplo n.º 1
0
 public MasterStatus()
 {
     midiVolume.Init();
     midiPitch.Init();
     reverbFilter.Init();
     chorusFilter.Init();
 }
Exemplo n.º 2
0
        public MidiGenerator(MasterStatus aMasterStatus)
        {
            instrument  = 0;
            bank        = 0;
            bankData    = 0;
            rpnMsb      = 0;
            rpnLsb      = 0;
            nrpnMsb     = 0;
            nrpnLsb     = 0;
            mode        = 3;
            isOnChannel = true;

            midiVolume.Init();
            midiPitch.Init();

            noteOnList     = new List <int>();
            oscillatorList = new List <MidiOscillator>();

            masterStatus = aMasterStatus;

            reverbFilter.Init();
            chorusFilter.Init();

            sampleValue    = new double[2];
            sampleValueSum = new double[2];
        }