Banuka commited on
Commit
5f7dd90
Β·
verified Β·
1 Parent(s): 366a31f

Update mastering.py

Browse files
Files changed (1) hide show
  1. mastering.py +1 -16
mastering.py CHANGED
@@ -1,22 +1,7 @@
1
  import subprocess
2
- #input path of audio file
3
- #inPath = "audioTracks/CinematicBoom.mp3"
4
-
5
- #desired path of output
6
- #outPath = "masteredAudio/CinematicBoomMastered.mp3"
7
-
8
- # try:
9
- # output = subprocess.check_output(["node", "masteringModule/main.js", "--input", inputPath, "--output", outputPath])
10
- # print(output.decode())
11
- # except subprocess.CalledProcessError as e:
12
- # print("Error running JavaScript file:", e)
13
-
14
 
15
  def masterAudio(inputPath,outputPath):
16
  try:
17
  master = subprocess.run(["node", "masteringModule/main.js", "--input", inputPath, "--output", outputPath])
18
  except subprocess.CalledProcessError as err:
19
- print("Error running Mastering Module: ", err)
20
-
21
- # testing
22
- # masterAudio(inputPath,outputPath)
 
1
  import subprocess
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  def masterAudio(inputPath,outputPath):
4
  try:
5
  master = subprocess.run(["node", "masteringModule/main.js", "--input", inputPath, "--output", outputPath])
6
  except subprocess.CalledProcessError as err:
7
+ print("Error running Mastering Module: ", err)