Lines Matching defs:pitch
423 int note, pitch, octave;
427 * pitch is in 100/128 cents, so 0x80 is one semitone and
430 pitch = ((note - 60) << 7) * voice->sound->key_scaling / 100 + (60 << 7);
431 pitch += voice->sound->pitch_offset;
433 pitch += chan->gm_rpn_coarse_tuning;
434 pitch += chan->gm_rpn_fine_tuning >> 7;
435 pitch += chan->midi_pitchbend * chan->gm_rpn_pitch_bend_range / 0x2000;
436 if (pitch < 0)
437 pitch = 0;
438 else if (pitch >= 0x6000)
439 pitch = 0x5fff;
440 octave = pitch / 0x600 - 8;
441 pitch = snd_opl4_pitch_map[pitch % 0x600];
444 (octave << 4) | ((pitch >> 7) & OPL4_F_NUMBER_HIGH_MASK));
446 | ((pitch << 1) & OPL4_F_NUMBER_LOW_MASK);