Пример #1
0
 public void SetTrebleVoice(int voice, TrebleVoice input)
 {
     Data[8 + voice]  = (byte)input.Patch.Cc00;
     Data[18 + voice] = (byte)input.Patch.Cc32;
     Data[28 + voice] = (byte)input.Patch.Pc;
     PutBoolean(input.Enabled, 38 + voice);
     PutBoolean(input.Cassotto, 48 + voice);
     Data[58 + voice] = input.Volume;
 }
Пример #2
0
        public TrebleVoice GetTrebleVoice(int voice)
        {
            MidiVoice thePatch = new MidiVoice()
            {
                Cc00 = Data[8 + voice], Cc32 = Data[18 + voice], Pc = Data[28 + voice]
            };
            TrebleVoice tv = new TrebleVoice()
            {
                Patch    = thePatch,
                Enabled  = GetBoolean(38 + voice),
                Cassotto = GetBoolean(48 + voice),
                Volume   = Data[58 + voice]
            };

            return(tv);
        }