@@ -190,11 +190,11 @@ function penultimateNote(options: TestOptions): void {
190
190
f . getContext ( ) . fillText ( `softmax: ${ softmax . toString ( ) } ` , staffWidth + 20 , y + 50 ) ;
191
191
y += 100 ;
192
192
} ;
193
- draw ( 100 ) ;
193
+ draw ( 15 ) ;
194
194
draw ( 10 ) ;
195
195
draw ( 5 ) ;
196
196
draw ( 2 ) ;
197
- draw ( 1.5 ) ;
197
+ draw ( 1 ) ;
198
198
ok ( true ) ;
199
199
}
200
200
@@ -270,7 +270,7 @@ function accidentalJustification(options: TestOptions): void {
270
270
let beams = Beam . generateBeams ( notes11 . slice ( 2 ) ) ;
271
271
beams = beams . concat ( beams , Beam . generateBeams ( notes21 . slice ( 1 , 3 ) ) ) ;
272
272
beams = beams . concat ( Beam . generateBeams ( notes21 . slice ( 3 ) ) ) ;
273
- const formatter = f . Formatter ( { softmaxFactor : 100 } ) . joinVoices ( [ voice11 ] ) . joinVoices ( [ voice21 ] ) ;
273
+ const formatter = f . Formatter ( { } ) . joinVoices ( [ voice11 ] ) . joinVoices ( [ voice21 ] ) ;
274
274
275
275
const width = formatter . preCalculateMinTotalWidth ( [ voice11 , voice21 ] ) ;
276
276
const stave11 = f . Stave ( { y : 20 , width : width + Stave . defaultPadding } ) ;
@@ -359,7 +359,7 @@ function unalignedNoteDurations2(options: TestOptions): void {
359
359
const voice2 = new Voice ( { num_beats : 4 , beat_value : 4 } ) ;
360
360
voice2 . addTickables ( notes2 ) ;
361
361
362
- const formatter = new Formatter ( { softmaxFactor : 100 , globalSoftmax : options . params . globalSoftmax } ) ;
362
+ const formatter = new Formatter ( { globalSoftmax : options . params . globalSoftmax } ) ;
363
363
formatter . joinVoices ( [ voice1 ] ) ;
364
364
formatter . joinVoices ( [ voice2 ] ) ;
365
365
const width = formatter . preCalculateMinTotalWidth ( [ voice1 , voice2 ] ) ;
@@ -690,17 +690,17 @@ function softMax(options: TestOptions): void {
690
690
691
691
draw ( 50 , 1 ) ;
692
692
draw ( 150 , 2 ) ;
693
- draw ( 250 , 10 ) ;
694
- draw ( 350 , 20 ) ;
695
- draw ( 450 , 200 ) ;
693
+ draw ( 250 , 5 ) ;
694
+ draw ( 350 , 10 ) ;
695
+ draw ( 450 , 15 ) ;
696
696
}
697
697
698
698
function mixTime ( options : TestOptions ) : void {
699
699
const f = VexFlowTests . makeFactory ( options , 400 + Stave . defaultPadding , 250 ) ;
700
700
f . getContext ( ) . scale ( 0.8 , 0.8 ) ;
701
701
const score = f . EasyScore ( ) ;
702
702
const system = f . System ( {
703
- details : { softmaxFactor : 100 } ,
703
+ details : { } ,
704
704
autoWidth : true ,
705
705
debugFormatter : true ,
706
706
} ) ;
@@ -801,22 +801,22 @@ function annotations(options: TestOptions): void {
801
801
title : '550px,softMax:5' ,
802
802
} ,
803
803
{
804
- sm : 10 ,
804
+ sm : 5 ,
805
805
width : 550 ,
806
806
lyrics : lyrics2 ,
807
- title : '550px,softmax:10 ,different word order' ,
807
+ title : '550px,softmax:5 ,different word order' ,
808
808
} ,
809
809
{
810
- sm : 5 ,
810
+ sm : 10 ,
811
811
width : 550 ,
812
812
lyrics : lyrics2 ,
813
- title : '550px,softmax:5 ' ,
813
+ title : '550px,softmax:10 ' ,
814
814
} ,
815
815
{
816
- sm : 100 ,
816
+ sm : 15 ,
817
817
width : 550 ,
818
818
lyrics : lyrics2 ,
819
- title : '550px,softmax:100 ' ,
819
+ title : '550px,softmax:15 ' ,
820
820
} ,
821
821
] ;
822
822
0 commit comments