File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ impl Units {
8585 pub const _MIN_ACCURACY: f32 = 0.00001 ;
8686 pub const MIN_ACCURACY : Units = Units ( Self :: _MIN_ACCURACY) ;
8787 /*
88- * This i quite messy here, the pasition passed checking needs some cleanup,
88+ * This is quite messy here, the pasition passed checking needs some cleanup,
8989 * mainly for control the guitar view timing, and seeking next note
9090 */
9191 pub const HALF_MIN_ACCURACY : Units = Units ( Self :: _MIN_ACCURACY * 0.5 ) ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ pub struct MidiMessage {
1010 pub midi : StructuredShortMessage ,
1111}
1212impl MidiMessage {
13+ pub const DELAY_GAP : Units = Units ( Units :: _MIN_ACCURACY * 2.0 ) ;
1314 pub fn new (
1415 pass_mode : EntryPassMode ,
1516 pos : BarPosition ,
@@ -39,7 +40,7 @@ impl MidiMessage {
3940 }
4041 pub fn effect_position ( & self ) -> BarPosition {
4142 if self . delay {
42- self . pos . with_delay ( self . duration )
43+ self . pos . with_delay ( self . duration - Self :: DELAY_GAP )
4344 } else {
4445 self . pos
4546 }
You can’t perform that action at this time.
0 commit comments