예제 #1
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);
        }
예제 #2
0
 public void PutMidiVoice(MidiVoice input, int offset)
 {
     Data[offset]     = (byte)input.Cc00;
     Data[offset + 1] = (byte)input.Cc32;
     Data[offset + 2] = (byte)input.Pc;
 }