Update graph.py
Browse files
graph.py
CHANGED
|
@@ -28,7 +28,7 @@ def normalise_transcript(xcp):
|
|
| 28 |
def get_pitch_tracks(wav_path):
|
| 29 |
f0_data = subprocess.run(["REAPER/build/reaper", "-i", wav_path, '-f', '/dev/stdout', '-a'],capture_output=True).stdout
|
| 30 |
f0_data = f0_data.decode().split('EST_Header_End\n')[1].splitlines()
|
| 31 |
-
#print(f0_data)
|
| 32 |
f0_data = [l.split(' ') for l in f0_data[:-1]] # the last line is other info
|
| 33 |
f0_data = [ [float(t), float(f)] for t,v,f in f0_data if v=='1']
|
| 34 |
return f0_data
|
|
|
|
| 28 |
def get_pitch_tracks(wav_path):
|
| 29 |
f0_data = subprocess.run(["REAPER/build/reaper", "-i", wav_path, '-f', '/dev/stdout', '-a'],capture_output=True).stdout
|
| 30 |
f0_data = f0_data.decode().split('EST_Header_End\n')[1].splitlines()
|
| 31 |
+
#print(f0_data)
|
| 32 |
f0_data = [l.split(' ') for l in f0_data[:-1]] # the last line is other info
|
| 33 |
f0_data = [ [float(t), float(f)] for t,v,f in f0_data if v=='1']
|
| 34 |
return f0_data
|