diff --git a/__pycache__/main.cpython-38.pyc b/__pycache__/main.cpython-38.pyc new file mode 100644 index 0000000..2a64f70 Binary files /dev/null and b/__pycache__/main.cpython-38.pyc differ diff --git a/chordWavs/.DS_Store b/chordWavs/.DS_Store new file mode 100644 index 0000000..d5f5119 Binary files /dev/null and b/chordWavs/.DS_Store differ diff --git a/main.py b/main.py index 12c742b..239cc1c 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,7 @@ import time from playsound import playsound from threading import Thread +import getch def metronome(): @@ -12,8 +13,7 @@ def chords(): queue=['F','Am','C','G'] while 1: for i in queue: - playsound(f'chordWavs/90BPM/{i}.wav',False) - time.sleep(2.5) + playsound(f"chordWavs/90BPM/{getch.getche()}.wav",False) #2==120BPM #2.5==90BPM