Home
last modified time | relevance | path

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

/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DSynthUnit.java30 double semitones = pitch - CONCERT_A_PITCH; in pitchToFrequency() local
31 return CONCERT_A_FREQUENCY * Math.pow(2.0, semitones / 12.0); in pitchToFrequency()
DSynthEngine.java248 double semitones = (mBendRange * (bend - 0x2000)) / 0x2000; in pitchBend() local
249 mFrequencyScaler = (float) Math.pow(2.0, semitones / 12.0); in pitchBend()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DSynthUnit.java30 double semitones = pitch - CONCERT_A_PITCH; in pitchToFrequency() local
31 return CONCERT_A_FREQUENCY * Math.pow(2.0, semitones / 12.0); in pitchToFrequency()
DSynthEngine.java248 double semitones = (mBendRange * (bend - 0x2000)) / 0x2000; in pitchBend() local
249 mFrequencyScaler = (float) Math.pow(2.0, semitones / 12.0); in pitchBend()