Clear() public method

public Clear ( ) : void
return void
Ejemplo n.º 1
0
 public void CopyTo(Instrument dest)
 {
     if (_instrument != null)
         _instrument.CopyTo(dest);
     else
         dest.Clear();
 }
Ejemplo n.º 2
0
        public void Setup(Player player)
        {
            Player = player;

            Percussion        = (player.IsMIDI && Channel == 9); // true;
            On                = true;
            PriorityEffective = player.Priority;
            Priority          = 0;
            _vol              = 127;
            _vol_eff          = player.GetEffectiveVolume();
            _pan              = Clamp(player.Pan, -64, 63);
            _transpose_eff    = player.GetTranspose();
            Transpose         = 0;
            _detune           = 0;
            _detune_eff       = player.Detune;
            _pitchbend_factor = 2;
            _pitchbend        = 0;
            _effect_level     = player._se.IsNativeMT32 ? 127 : 64;
            Instrument.Clear();
            _unassignedInstrument = true;
            _chorus     = 0;
            _modwheel   = 0;
            _bank       = 0;
            Pedal       = false;
            MidiChannel = null;
        }
 public void CopyTo(Instrument dest)
 {
     if (_instrument != null)
     {
         _instrument.CopyTo(dest);
     }
     else
     {
         dest.Clear();
     }
 }