Change Synth backend

This commit is contained in:
Bartłomiej Pluta
2019-06-30 18:43:58 +02:00
parent 2b52a5e0d5
commit 607e9f9214
8 changed files with 320 additions and 178 deletions

View File

@@ -4,10 +4,7 @@ import time
BREAK = 0
def playNote(note, bpm):
frequency = note.toFrequency()
duration = 60 * 4 / note.duration / bpm
pysine.sine(frequency, duration)
#TODO: duration powinno byc w prawdziwych nutach: 4 = cwierc, 2 = pol etc.