Skip to content

Commit ca5cc59

Browse files
committed
update default threshold for toll node
1 parent ab85082 commit ca5cc59

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/node/toll.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ import (
88
"signls/midi"
99
)
1010

11+
const (
12+
defaultThreshold = 2
13+
)
14+
1115
type TollEmitter struct {
1216
Threshold *common.ControlValue[int]
1317
count int
@@ -18,7 +22,7 @@ func NewTollEmitter(midi midi.Midi, direction common.Direction) *Emitter {
1822
direction: direction,
1923
note: music.NewNote(midi),
2024
behavior: &TollEmitter{
21-
Threshold: common.NewControlValue[int](1, 1, math.MaxInt32),
25+
Threshold: common.NewControlValue[int](defaultThreshold, 1, math.MaxInt32),
2226
},
2327
}
2428
}

0 commit comments

Comments
 (0)