resampler.py 695 B

1234567891011121314151617181920212223242526272829
  1. import subprocess
  2. def resample(utau,notenum,notelength,lyric):
  3. inputfile = utau+"/"+lyric+".wav"
  4. outputfile = lyric+".wav"
  5. velocity = "100"
  6. flags = ""
  7. offset_ms = "20"
  8. fixedlength = "10"
  9. end = "20"
  10. intensity = "100"
  11. modulation = ""
  12. tempo = ""
  13. pitchbends = ""
  14. subprocess.call(["macres",inputfile,
  15. outputfile,
  16. notenum,
  17. velocity,
  18. flags,
  19. offset_ms,
  20. notelength,
  21. fixedlength,
  22. end,
  23. intensity,
  24. modulation,
  25. tempo,
  26. pitchbends])