Home
last modified time | relevance | path

Searched refs:amplitude (Results 1 – 25 of 57) sorted by relevance

123

/external/skia/samplecode/
DSampleAnimBlur.cpp14 SkScalar get_anim_sin(double secs, SkScalar amplitude, SkScalar periodInSec, SkScalar phaseInSec) { in get_anim_sin() argument
20 amplitude = SK_ScalarHalf * amplitude; in get_anim_sin()
21 return amplitude * SkDoubleToScalar(sin(t)) + amplitude; in get_anim_sin()
/external/skqp/samplecode/
DSampleAnimBlur.cpp15 SkScalar get_anim_sin(double secs, SkScalar amplitude, SkScalar periodInSec, SkScalar phaseInSec) { in get_anim_sin() argument
21 amplitude = SK_ScalarHalf * amplitude; in get_anim_sin()
22 return amplitude * SkDoubleToScalar(sin(t)) + amplitude; in get_anim_sin()
/external/webrtc/modules/audio_processing/agc2/rnn_vad/
Dfeatures_extraction_unittest.cc44 void CreatePureTone(float amplitude, float freq_hz, rtc::ArrayView<float> dst) { in CreatePureTone() argument
46 dst[i] = amplitude * std::sin(2.f * kPi * freq_hz * i / kSampleRate24kHz); in CreatePureTone()
73 constexpr float amplitude = 1000.f; in TEST() local
90 CreatePureTone(amplitude, low_pitch_hz, samples); in TEST()
95 CreatePureTone(amplitude, high_pitch_hz, samples); in TEST()
/external/autotest/client/cros/audio/
Daudio_quality_measurement_unittest.py31 amplitude = 1
39 wave.append(float(amplitude) * (sine_wave + noise))
47 teager_value_of_wave /= float(length * (amplitude ** 2))
49 noise = audio_quality_measurement.noise_level(amplitude, frequency,
73 self.amplitude = 1
80 self.y.append(float(self.amplitude) * sine_wave)
85 noise_amplitude = 0.01 * self.amplitude
112 self.y[i] = 3 * self.amplitude
124 self.y[i] = self.amplitude
136 self.y[j] = self.amplitude * (3 + numpy.random.uniform(-1, 1))
Daudio_quality_measurement.py205 def average_teager_value(wave, amplitude): argument
222 teager_value = (float(teager_value) / length) / (amplitude ** 2)
226 def noise_level(amplitude, frequency, rate, teager_value_of_input): argument
253 teager_value_of_std_wave = average_teager_value(standard_wave, amplitude)
309 amplitude = numpy.abs(result)
314 return (amplitude, frequency)
827 amplitude, frequency = hilbert_analysis(signal, rate, block_size)
838 res = find_block_average_value(amplitude, block_size * 2, block_size)
860 sum_of_amplitude = float(sum(amplitude[start_index:end_index]))
/external/webrtc/modules/audio_processing/test/
Decho_canceller_test_tools.cc24 float amplitude) { in RandomizeSampleVector() argument
26 v_k = 2 * amplitude * random_generator->Rand<float>() - amplitude; in RandomizeSampleVector()
Decho_canceller_test_tools.h28 float amplitude);
/external/oboe/apps/fxlab/app/src/main/cpp/effects/utils/
DSineWave.h25 SineWave(float frequency, float amplitude, int sampleRate): in SineWave() argument
27 kAmplitude(amplitude) { } in SineWave()
/external/webrtc/modules/audio_mixer/
Dsine_wave_generator.h23 SineWaveGenerator(float wave_frequency_hz, int16_t amplitude) in SineWaveGenerator() argument
24 : wave_frequency_hz_(wave_frequency_hz), amplitude_(amplitude) { in SineWaveGenerator()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DToneGeneration.java59 public void setAmplitude(double amplitude) { in setAmplitude() argument
60 mAmplitude = amplitude; in setAmplitude()
DSoundLevelCalibration.java88 double amplitude = runAudioThread(mNativeAudioThread); in calibrate() local
90 Log.d(TAG, "calibrate: at sound level " + level + " volume was " + amplitude); in calibrate()
92 if (amplitude < Constant.SINE_WAVE_AMPLITUDE * ratio) { in calibrate()
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/synth/
DSawOscillator.java40 public void setAmplitude(float amplitude) { in setAmplitude() argument
41 mAmplitude = amplitude; in setAmplitude()
DSynthVoice.java75 public void setAmplitude(float amplitude) { in setAmplitude() argument
76 this.mAmplitude = amplitude; in setAmplitude()
/external/webrtc/modules/audio_processing/
Drms_level_unittest.cc47 int amplitude, in CreateInt16Sinusoid() argument
52 amplitude * std::sin(2 * M_PI * n * frequency_hz / kSampleRateHz)); in CreateInt16Sinusoid()
58 int amplitude, in CreateFloatSinusoid() argument
61 CreateInt16Sinusoid(frequency_hz, amplitude, num_samples); in CreateFloatSinusoid()
Dsplitting_filter_unittest.cc55 float amplitude = is_present[j] ? kAmplitude : 0.f; in TEST() local
58 amplitude * sin(2.f * M_PI * kFrequenciesHz[j] * in TEST()
Daudio_processing_impl_locking_unittest.cc458 float amplitude, in PopulateAudioFrame() argument
465 frame[ch][k] = amplitude * (2 * rand_gen->RandFloat() - 1); in PopulateAudioFrame()
471 void PopulateAudioFrame(float amplitude, in PopulateAudioFrame() argument
476 ASSERT_GT(amplitude, 0); in PopulateAudioFrame()
477 ASSERT_LE(amplitude, 32767); in PopulateAudioFrame()
482 frame[k * ch] = rand_gen->RandInt(2 * amplitude + 1) - amplitude - 1; in PopulateAudioFrame()
/external/oboe/samples/hello-oboe/src/main/cpp/
DSoundGenerator.cpp25 constexpr float amplitude = 1.0; in SoundGenerator() local
31 mOscillators[i].setAmplitude(amplitude); in SoundGenerator()
/external/oboe/samples/shared/
DOscillator.h53 inline void setAmplitude(float amplitude) { in setAmplitude() argument
54 mAmplitude = amplitude; in setAmplitude()
/external/oboe/apps/OboeTester/app/src/main/cpp/flowunits/
DOscillatorBase.cpp23 , amplitude(*this, 1) in OscillatorBase()
DSawtoothOscillator.cpp28 const float *amplitudes = amplitude.getBuffer(); in onProcess()
DSineOscillator.cpp32 const float *amplitudes = amplitude.getBuffer(); in onProcess()
DTriangleOscillator.cpp28 const float *amplitudes = amplitude.getBuffer(); in onProcess()
DImpulseOscillator.cpp28 const float *amplitudes = amplitude.getBuffer(); in onProcess()
/external/webrtc/modules/video_coding/
Djitter_estimator_tests.cc47 explicit ValueGenerator(int32_t amplitude) in ValueGenerator() argument
48 : amplitude_(amplitude), counter_(0) {} in ValueGenerator()
/external/webrtc/test/fuzzers/
Dneteq_signal_fuzzer.cc48 const float amplitude = fuzz_data_.ReadOrDefaultValue<uint16_t>(65000) / 2; in Generate() local
52 x = rtc::saturated_cast<int16_t>(amplitude * std::sin(phase_) + in Generate()

123