aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-03-31 17:04:31 +0530
committerGitHub <noreply@github.com>2020-03-31 17:04:31 +0530
commitc08879c25afa1240ddecc33b61c273404019579b (patch)
tree230d41ff21d07d9117d7ed69b1d05f6d8abe6d94 /src
parent82df6cb02a5b5c277c58f54f08740268c76456cd (diff)
parentc52c15cef23bdbf9ec246039d1178529f631fa28 (diff)
Merge pull request #3 from navanchauhan/navanchauhan-patch-1
Fix for #2
Diffstat (limited to 'src')
-rw-r--r--src/VaporSong.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/VaporSong.py b/src/VaporSong.py
index bb75646..aaa55b9 100644
--- a/src/VaporSong.py
+++ b/src/VaporSong.py
@@ -3,6 +3,8 @@ import subprocess
import re
from random import randint
+from sys import platform
+
import logzero
from logzero import logger
from logzero import setup_logger
@@ -49,7 +51,7 @@ class VaporSong:
# TODO: Move away from executable and use aubio's Python module
def fetchbeats(src):
beat_matrix = []
- if os.name == 'posix':
+ if platform == 'darwin':
beats = subprocess.check_output(["noah", "get-beats",src]).rstrip()
else:
beats = subprocess.check_output(["get-beats",src]).rstrip()