Initial commit
This commit is contained in:
commit
778fe31c38
35 changed files with 1849 additions and 0 deletions
21
pub/level3.py
Normal file
21
pub/level3.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
"""
|
||||
Niveau 3
|
||||
Jouer une mélodie
|
||||
"""
|
||||
|
||||
import synth
|
||||
|
||||
encoder = synth.Encoder()
|
||||
|
||||
# Liste de notes, sous la forme [durée, note]
|
||||
music = [
|
||||
[1, 4],
|
||||
[1, 3],
|
||||
[1, 4],
|
||||
[1, 3],
|
||||
[1, 4],
|
||||
[1, -1],
|
||||
[1, 2],
|
||||
[1, 0],
|
||||
[2, -3]
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue