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

12 lines
201 B
Python

"""
Niveau 2
Jouer des notes
"""
import synth
import math
encoder = synth.Encoder()
for note in range(13):
for t in range(16000):
encoder.write(math.sin(t/16000 * 220 * 2**(note/12) * 2*math.pi))