Home
last modified time | relevance | path

Searched refs:mScaler (Results 1 – 2 of 2) sorted by relevance

/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DSawOscillatorDPW.java26 private float mScaler; // frequency dependent scaler field in SawOscillatorDPW
35 mScaler = (float) (0.125 * 44100 / VERY_LOW_FREQ); in setFrequency()
37 mScaler = (float) (0.125 * 44100 / freq); in setFrequency()
49 return diffed * mScaler * getAmplitude(); in render()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DSawOscillatorDPW.java26 private float mScaler; // frequency dependent scaler field in SawOscillatorDPW
35 mScaler = (float) (0.125 * 44100 / VERY_LOW_FREQ); in setFrequency()
37 mScaler = (float) (0.125 * 44100 / freq); in setFrequency()
49 return diffed * mScaler * getAmplitude(); in render()