12 lines
201 B
Python
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))
|