Initial commit
This commit is contained in:
commit
778fe31c38
35 changed files with 1849 additions and 0 deletions
12
stage/level2.py
Normal file
12
stage/level2.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
"""
|
||||
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))
|
||||
Loading…
Add table
Add a link
Reference in a new issue