@@ -741,9 +741,8 @@ public override Result Process(Note[] notes, Note? prev, Note? next, Note? prevN
741
741
}
742
742
743
743
var nextAttr = nextNeighbour . Value . phonemeAttributes ? . FirstOrDefault ( attr => attr . index == 0 ) ?? default ;
744
- // Minimam is 30 tick, maximum is half of note
745
-
746
- ccLength = Convert . ToInt32 ( Math . Min ( totalDuration / 2 , Math . Max ( 30 , ccLength * ( nextAttr . consonantStretchRatio ?? 1 ) ) ) ) ;
744
+ // Minimum is 5 tick, maximum is half of note
745
+ ccLength = Convert . ToInt32 ( Math . Min ( totalDuration / 2 , Math . Max ( 5 , ccLength * ( nextAttr . consonantStretchRatio ?? 1 ) ) ) ) ;
747
746
748
747
if ( singer . TryGetMappedOto ( CV , note . tone + attr0 . toneShift , attr0 . voiceColor , out var oto1 ) && singer . TryGetMappedOto ( FC , note . tone + attr0 . toneShift , attr0 . voiceColor , out var oto2 ) && singer . TryGetMappedOto ( CC , note . tone + attr0 . toneShift , attr0 . voiceColor , out var oto3 ) ) {
749
748
CV = oto1 . Alias ;
@@ -782,8 +781,8 @@ public override Result Process(Note[] notes, Note? prev, Note? next, Note? prevN
782
781
}
783
782
784
783
var nextAttr = nextNeighbour . Value . phonemeAttributes ? . FirstOrDefault ( attr => attr . index == 0 ) ?? default ;
785
- // Minimam is 30 tick, maximum is half of note
786
- ccLength = Convert . ToInt32 ( Math . Min ( totalDuration / 2 , Math . Max ( 30 , ccLength * ( nextAttr . consonantStretchRatio ?? 1 ) ) ) ) ;
784
+ // Minimum is 5 tick, maximum is half of note
785
+ ccLength = Convert . ToInt32 ( Math . Min ( totalDuration / 2 , Math . Max ( 5 , ccLength * ( nextAttr . consonantStretchRatio ?? 1 ) ) ) ) ;
787
786
788
787
if ( singer . TryGetMappedOto ( CV , note . tone + attr0 . toneShift , attr0 . voiceColor , out var oto1 ) && singer . TryGetMappedOto ( FC , note . tone + attr0 . toneShift , attr0 . voiceColor , out var oto2 ) && singer . TryGetMappedOto ( CC , note . tone + attr0 . toneShift , attr0 . voiceColor , out var oto3 ) ) {
789
788
CV = oto1 . Alias ;
@@ -861,7 +860,7 @@ public override Result Process(Note[] notes, Note? prev, Note? next, Note? prevN
861
860
862
861
var nextAttr = nextNeighbour . Value . phonemeAttributes ? . FirstOrDefault ( attr => attr . index == 0 ) ?? default ;
863
862
// Minimam is 30 tick, maximum is half of note
864
- vcLength = Convert . ToInt32 ( Math . Min ( totalDuration / 2 , Math . Max ( 30 , vcLength * ( nextAttr . consonantStretchRatio ?? 1 ) ) ) ) ;
863
+ vcLength = Convert . ToInt32 ( Math . Min ( totalDuration / 2 , Math . Max ( 5 , vcLength * ( nextAttr . consonantStretchRatio ?? 1 ) ) ) ) ;
865
864
866
865
if ( singer . TryGetMappedOto ( CV , note . tone + attr0 . toneShift , attr0 . voiceColor , out var oto1 ) && singer . TryGetMappedOto ( VC , note . tone + attr0 . toneShift , attr0 . voiceColor , out var oto2 ) ) {
867
866
CV = oto1 . Alias ;
@@ -892,8 +891,8 @@ public override Result Process(Note[] notes, Note? prev, Note? next, Note? prevN
892
891
}
893
892
894
893
var nextAttr = nextNeighbour . Value . phonemeAttributes ? . FirstOrDefault ( attr => attr . index == 0 ) ?? default ;
895
- // Minimam is 30 tick, maximum is half of note
896
- vcLength = Convert . ToInt32 ( Math . Min ( totalDuration / 2 , Math . Max ( 30 , vcLength * ( nextAttr . consonantStretchRatio ?? 1 ) ) ) ) ;
894
+ // Minimum is 5 tick, maximum is half of note
895
+ vcLength = Convert . ToInt32 ( Math . Min ( totalDuration / 2 , Math . Max ( 5 , vcLength * ( nextAttr . consonantStretchRatio ?? 1 ) ) ) ) ;
897
896
898
897
if ( singer . TryGetMappedOto ( CV , note . tone + attr0 . toneShift , attr0 . voiceColor , out var oto1 ) && singer . TryGetMappedOto ( VC , note . tone + attr0 . toneShift , attr0 . voiceColor , out var oto2 ) ) {
899
898
CV = oto1 . Alias ;
@@ -1153,8 +1152,8 @@ public override Result Process(Note[] notes, Note? prev, Note? next, Note? prevN
1153
1152
vcLength = MsToTick ( oto0 . Preutter ) ;
1154
1153
}
1155
1154
}
1156
- // Minimam is 30 tick, maximum is half of note
1157
- vcLength = Convert . ToInt32 ( Math . Min ( totalDuration / 2 , Math . Max ( 30 , vcLength * ( nextAttr . consonantStretchRatio ?? 1 ) ) ) ) ;
1155
+ // Minimum is 5 tick, maximum is half of note
1156
+ vcLength = Convert . ToInt32 ( Math . Min ( totalDuration / 2 , Math . Max ( 5 , vcLength * ( nextAttr . consonantStretchRatio ?? 1 ) ) ) ) ;
1158
1157
1159
1158
return new Result {
1160
1159
phonemes = new Phoneme [ ] {
0 commit comments