Lines Matching defs:pitch
59 static void playtone(int pitch, int value, int sustain);
202 playtone(int pitch, int value, int sustain)
216 if (pitch == -1)
224 (void) printf("playtone: pitch %d for %d ticks, rest for %d ticks\n",
225 pitch, sound, silence);
228 tone(pitchtab[pitch], sound);
240 int pitch, oldfill, lastpitch = OCTAVE_NOTES * DFLT_OCTAVE;
260 /* compute pitch */
261 pitch = notetab[c - 'A'] + octave * OCTAVE_NOTES;
265 ++pitch;
269 --pitch;
280 if (abs(pitch-lastpitch) > abs(pitch+OCTAVE_NOTES -
283 pitch += OCTAVE_NOTES;
286 if (abs(pitch-lastpitch) > abs((pitch-OCTAVE_NOTES) -
289 pitch -= OCTAVE_NOTES;
293 lastpitch = pitch;
315 playtone(pitch, timeval, sustain);
346 GETNUM(cp, pitch);
357 playtone(pitch - 1, value, sustain);