jsb-synth/level1.py
2025-02-27 00:41:31 +01:00

11 lines
211 B
Python

"""
Niveau 1
Jouer des sons
"""
import synthlib, math
sound_encoder = synthlib.SoundEncoder()
for i in range(13):
for t in range(4000):
sound_encoder.write_sample(math.sin(t/16000*440*2**(i/12)*2*math.pi))