Example #1
0
        public void Property(MidiParserProperty prop, int value)
        {
            switch (prop)
            {
            case MidiParserProperty.AutoLoop:
                _autoLoop = (value != 0);
                break;

            case MidiParserProperty.SmartJump:
                _smartJump = (value != 0);
                break;

            case MidiParserProperty.CenterPitchWheelOnUnload:
                CenterPitchWheelOnUnload = (value != 0);
                break;

            case MidiParserProperty.SendSustainOffOnNotesOff:
                SendSustainOffOnNotesOff = (value != 0);
                break;
            }
        }
Example #2
0
 public void Property(MidiParserProperty prop, int value)
 {
     switch (prop)
     {
         case MidiParserProperty.AutoLoop:
             _autoLoop = (value != 0);
             break;
         case MidiParserProperty.SmartJump:
             _smartJump = (value != 0);
             break;
         case MidiParserProperty.CenterPitchWheelOnUnload:
             CenterPitchWheelOnUnload = (value != 0);
             break;
         case MidiParserProperty.SendSustainOffOnNotesOff:
             SendSustainOffOnNotesOff = (value != 0);
             break;
     }
 }