无法自动对齐起始音
Closed this issue · 3 comments
ZeroAurora commented
代码:
#! /usr/bin/python3
import ScoreDraft
from ScoreDraftRapChinese import CRap as r
from ScoreDraftNotes import *
doc=ScoreDraft.Document()
singer=ScoreDraft.GePing_UTAU()
seq_rap_1=[r('zhe',4,12),r('zhi',3,12),r('shi',4,12),r('yi',2,12),r('ge',4,12),r('an',1,12),r('jing',4,8),r('de',0,8),r('shi',2,8),r('zi',4,12),r('lu',4,12),r('kou',3,24)]
tempo_map_1=[(0,1135139.0),(ScoreDraft.TellDuration(seq_rap_1),1100242.0)]
doc.sing(seq_rap_1,singer)
doc.mixDown('hujiutest.wav')
生成的音频的起始点不会自动对齐到 1135139.0 采样。
编译版本:根目录下 /python_test 预编译版
系统:Windows 7 x64
fynv commented
检查一下伴奏音乐的采样率,是44100Hz的吗?目前ScoreDraft语音这块对非44100Hz采样支持得不好。
fynv commented
哦,你这里需要加一句话:
doc.setTempo(tempo_map_1)
fynv commented
Closing