Searched refs:OCTAVE_NOTES (Results 1 - 1 of 1) sorted by relevance

/freebsd-11-stable/sys/dev/speaker/
H A Dspkr.c174 #define OCTAVE_NOTES 12 /* semitones per octave */ macro
240 int pitch, oldfill, lastpitch = OCTAVE_NOTES * DFLT_OCTAVE;
261 pitch = notetab[c - 'A'] + octave * OCTAVE_NOTES;
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;
330 if (octave >= nitems(pitchtab) / OCTAVE_NOTES)
336 if (octave < nitems(pitchtab) / OCTAVE_NOTES - 1)

Completed in 146 milliseconds