Lines Matching full:pitch
56 static void playtone(int pitch, int value, int sustain);
187 playtone(int pitch, int value, int sustain) in playtone() argument
201 if (pitch == -1) in playtone()
209 (void) printf("playtone: pitch %d for %d ticks, rest for %d ticks\n", in playtone()
210 pitch, sound, silence); in playtone()
213 tone(pitchtab[pitch], sound); in playtone()
225 int pitch, oldfill, lastpitch = OCTAVE_NOTES * DFLT_OCTAVE; in playstring() local
245 /* compute pitch */ in playstring()
246 pitch = notetab[c - 'A'] + octave * OCTAVE_NOTES; in playstring()
250 ++pitch; in playstring()
254 --pitch; in playstring()
265 if (abs(pitch-lastpitch) > abs(pitch+OCTAVE_NOTES - in playstring()
268 pitch += OCTAVE_NOTES; in playstring()
271 if (abs(pitch-lastpitch) > abs((pitch-OCTAVE_NOTES) - in playstring()
274 pitch -= OCTAVE_NOTES; in playstring()
278 lastpitch = pitch; in playstring()
300 playtone(pitch, timeval, sustain); in playstring()
331 GETNUM(cp, pitch); in playstring()
342 playtone(pitch - 1, value, sustain); in playstring()