Home
last modified time | relevance | path

Searched refs:octave (Results 1 – 4 of 4) sorted by relevance

/sound/oss/
Dopl3.c679 int f, octave; in freq_to_fnum() local
690 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()
Dsequencer.c1556 int note, octave, note_freq; in note_to_freq() local
1565 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()
/sound/drivers/opl4/
Dopl4_synth.c423 int note, pitch, octave; in snd_opl4_update_pitch() local
440 octave = pitch / 0x600 - 8; in snd_opl4_update_pitch()
444 (octave << 4) | ((pitch >> 7) & OPL4_F_NUMBER_HIGH_MASK)); in snd_opl4_update_pitch()
/sound/drivers/opl3/
Dopl3_synth.c435 reg_val |= (note->octave << 2) & OPL3_BLOCKNUM_MASK; in snd_opl3_play_note()