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