1234567891011121314151617181920212223242526272829 |
- import subprocess
- def resample(utau,notenum,notelength,lyric):
- inputfile = utau+"/"+lyric+".wav"
- outputfile = lyric+".wav"
- velocity = "100"
- flags = ""
- offset_ms = "20"
- fixedlength = "10"
- end = "20"
- intensity = "100"
- modulation = ""
- tempo = ""
- pitchbends = ""
- subprocess.call(["macres",inputfile,
- outputfile,
- notenum,
- velocity,
- flags,
- offset_ms,
- notelength,
- fixedlength,
- end,
- intensity,
- modulation,
- tempo,
- pitchbends])
|