Lines Matching defs:pitch
232 int pitch;
260 /* compute pitch */
261 pitch = notetab[c - 'A'] + sc->sc_octave * OCTAVE_NOTES;
265 ++pitch;
269 --pitch;
281 int d = abs(pitch - lastpitch);
282 if (d > abs(pitch + OCTAVE_NOTES - lastpitch)) {
285 pitch += OCTAVE_NOTES;
289 if (d > abs(pitch - OCTAVE_NOTES - lastpitch)) {
292 pitch -= OCTAVE_NOTES;
297 lastpitch = pitch;
314 playtone(sc, pitch, timeval, sustain);
349 GETNUM(cp, pitch);
350 KASSERTMSG(pitch >= 0, "pitch=%d", pitch);
351 if (pitch >= __arraycount(pitchtab))
357 playtone(sc, pitch - 1, sc->sc_value, sustain);
412 * tone(device_t self, u_int pitch, u_int tick)
414 * The argument 'pitch' specifies the pitch of a beep in Hz. The argument
417 * If the pitch is zero, it halts all sound if any (for compatibility