Preliminary finish of chapter 7 animations

This commit is contained in:
Grant Sanderson
2016-08-22 21:22:21 -07:00
parent 3391e645d7
commit 87c390f41e
9 changed files with 339 additions and 89 deletions

View File

@ -20,18 +20,24 @@ def play_chord(*nums):
"play",
"-n",
"-c1",
"--no-show-progress",
"synth",
] + [
"sin %-"+str(num)
for num in nums
] + [
"fade h 0.5 1 0.5"
"fade h 0.5 1 0.5",
"> /dev/null"
]
try:
os.system(" ".join(commands))
except:
pass
def play_error_sound():
play_chord(12, 11, 8, 6, 1)
def play_finish_sound():
play_chord(12, 9, 5, 2)