GetTranspose() public méthode

public GetTranspose ( ) : sbyte
Résultat sbyte
Exemple #1
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;
        }
Exemple #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;
        }
Exemple #3
0
 public void SetTranspose(sbyte transpose)
 {
     Transpose      = transpose;
     _transpose_eff = (Transpose == -128) ? 0 : Player.TransposeClamp(Transpose + Player.GetTranspose(), -24, 24);
     SendPitchBend();
 }