Skip to content

Instantly share code, notes, and snippets.

@syusui-s
Last active February 26, 2020 14:13
Show Gist options
  • Select an option

  • Save syusui-s/9cf5ee4efe642e9b1f454d74cee4873c to your computer and use it in GitHub Desktop.

Select an option

Save syusui-s/9cf5ee4efe642e9b1f454d74cee4873c to your computer and use it in GitHub Desktop.

LiunxでNEUTRINO(AIきりたん)をうごかす

Requirements

  • Wineを入れておく

Tips

musicxmlの作り方

  • LMMSで打ち込む
  • MIDIにエクスポートしておく(LMMS1.2以上)
  • musescoreでインポートする
  • 歌詞を打ち込む
    • 助詞の「は」は、「わ」で入れておくと良い
    • オクターブが高すぎると発振してしまうっぽいので、高すぎるなら下げておく
  • シェルスクリプトで生成する
#!/bin/sh
cd "$(dirname "$0")"
# Project settings
BASENAME=sample1
NumThreads=0
# musicXML_to_label
SUFFIX=musicxml
# NEUTRINO
ModelDir=KIRITAN
# WORLD
PitchShift=1.0
FormantShift=1.0
echo $(date) : start MusicXMLtoLabel
wine ./bin/musicXMLtoLabel.exe score/musicxml/${BASENAME}.${SUFFIX} score/label/full/${BASENAME}.lab score/label/mono/${BASENAME}.lab
echo $(date) : start NEUTRINO
wine ./bin/NEUTRINO.exe 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) : start WORLD
wine ./bin/WORLD.exe output/${BASENAME}.f0 output/${BASENAME}.mgc output/${BASENAME}.bap -f ${PitchShift} -m ${FormantShift} -o output/${BASENAME}_syn.wav -n ${NumThreads} -t
echo $(date) : end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment