GetTranspose() 공개 메소드

public GetTranspose ( ) : sbyte
리턴 sbyte
예제 #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;
        }
예제 #2
0
파일: Part.cs 프로젝트: scemino/nscumm
        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;
        }
예제 #3
0
 public void SetTranspose(sbyte transpose)
 {
     Transpose      = transpose;
     _transpose_eff = (Transpose == -128) ? 0 : Player.TransposeClamp(Transpose + Player.GetTranspose(), -24, 24);
     SendPitchBend();
 }