Home
last modified time | relevance | path

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

/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DSineOscillator.java35 public static float fastSin(float currentPhase) { in fastSin() argument
38 float yp = (currentPhase > 0.5f) ? 1.0f - currentPhase in fastSin()
39 : ((currentPhase < (-0.5f)) ? (-1.0f) - currentPhase : currentPhase); in fastSin()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DSineOscillator.java35 public static float fastSin(float currentPhase) { in fastSin() argument
38 float yp = (currentPhase > 0.5f) ? 1.0f - currentPhase in fastSin()
39 : ((currentPhase < (-0.5f)) ? (-1.0f) - currentPhase : currentPhase); in fastSin()