Searched refs:octave (Results 1 – 4 of 4) sorted by relevance
679 int f, octave; in freq_to_fnum() local690 octave = 5; in freq_to_fnum()693 octave = 0; in freq_to_fnum()698 octave--; in freq_to_fnum()706 octave++; in freq_to_fnum()711 if (octave > 7) in freq_to_fnum()712 octave = 7; in freq_to_fnum()714 *fnum = freq * (1 << (20 - octave)) / 49716; in freq_to_fnum()715 *block = octave; in freq_to_fnum()
1556 int note, octave, note_freq; in note_to_freq() local1565 octave = note_num / 12; in note_to_freq()1570 if (octave < BASE_OCTAVE) in note_to_freq()1571 note_freq >>= (BASE_OCTAVE - octave); in note_to_freq()1572 else if (octave > BASE_OCTAVE) in note_to_freq()1573 note_freq <<= (octave - BASE_OCTAVE); in note_to_freq()
423 int note, pitch, octave; in snd_opl4_update_pitch() local440 octave = pitch / 0x600 - 8; in snd_opl4_update_pitch()444 (octave << 4) | ((pitch >> 7) & OPL4_F_NUMBER_HIGH_MASK)); in snd_opl4_update_pitch()
435 reg_val |= (note->octave << 2) & OPL3_BLOCKNUM_MASK; in snd_opl3_play_note()