We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1553ed commit 07b2950Copy full SHA for 07b2950
tests/arduino/app_bricks/sound_generator/test_effects.py
@@ -3,12 +3,11 @@
3
# SPDX-License-Identifier: MPL-2.0
4
5
from arduino.app_bricks.sound_generator.effects import SoundEffect
6
-from arduino.app_bricks.sound_generator import SoundGenerator
7
-from arduino.app_utils.audio import WaveGenerator
+from arduino.app_bricks.sound_generator import SoundGenerator, WaveSamplesBuilder
8
9
10
def test_adsr_effect():
11
- generator = WaveGenerator(sample_rate=16000, wave_form="square")
+ generator = WaveSamplesBuilder(sample_rate=16000, wave_form="square")
12
adsr = SoundEffect.adsr()
13
blk = generator.generate_block(440.0, 1 / 8, 1.0) # Generate a block to initialize
14
assert adsr is not None
0 commit comments