-
Notifications
You must be signed in to change notification settings - Fork 4
/
run.sh
executable file
·34 lines (23 loc) · 922 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# exmample: ./run.sh output/test.musicxml
# Project settings
NEUTRINO_DIR=/Applications/NEUTRINO/0.1
BASENAME=test
NumThreads=3
# musicXML_to_label
SUFFIX=musicxml
# NEUTRINO
ModelDir=KIRITAN
# WORLD
PitchShift=1.0
FormantShift=1.0
input="`pwd`/$1"
cd $NEUTRINO_DIR
echo "input: $input"
echo "`date +"%M:%S.%2N"` : start MusicXMLtoLabel"
./bin/musicXMLtoLabel $input score/label/full/${BASENAME}.lab score/label/mono/${BASENAME}.lab
echo "`date +"%M:%S.%2N"` : start NEUTRINO"
./bin/NEUTRINO score/label/full/${BASENAME}.lab score/label/timing/${BASENAME}.lab ./output/${BASENAME}.f0 ./output/${BASENAME}.mgc ./output/${BASENAME}.bap ./model/${ModelDir}/ -n ${NumThreads} -t
echo "`date +"%M:%S.%2N"` : start WORLD"
./bin/WORLD output/${BASENAME}.f0 output/${BASENAME}.mgc output/${BASENAME}.bap -f ${PitchShift} -m ${FormantShift} -o $input.wav -n ${NumThreads} -t
echo "`date +"%M:%S.%2N"` : END"