@@ -664,6 +664,7 @@ class Charter extends UIState {
664664 for (note in strL .notes ) {
665665 var n = new CharterNote ();
666666 var t = Conductor .getStepForTime (note .time );
667+ CharterNote .callScriptOnNote (' onCharterNoteCreation' , n );
667668 n .updatePos (t , note .id , Conductor .getStepForTime (note .time + note .sLen ) - t , note .type , strumLines .members [i ]);
668669 notesGroup .members [notesCreated ++ ] = n ;
669670 }
@@ -1026,6 +1027,7 @@ class Charter extends UIState {
10261027 if (mouseOnGrid && mousePos .y > 0 && mousePos .y < (__endStep )* 40 ) {
10271028 var note = new CharterNote ();
10281029 var targetStrumline = strumLines .getStrumlineFromID (id );
1030+ CharterNote .callScriptOnNote (' onCharterNoteCreation' , note );
10291031 note .updatePos (
10301032 CoolUtil .bound (FlxG .keys .pressed .SHIFT ? ((mousePos .y - 20 ) / 40 ) : quantStep (mousePos .y / 40 ), 0 , __endStep - 1 ),
10311033 (id - targetStrumline .startingID ) % targetStrumline .keyCount , 0 , noteType , targetStrumline
@@ -1057,6 +1059,7 @@ class Charter extends UIState {
10571059 if (s is CharterNote ) {
10581060 var n : CharterNote = cast s ;
10591061 var newNote = new CharterNote ();
1062+ CharterNote .callScriptOnNote (' onCharterNoteCreation' , newNote );
10601063 newNote .updatePos (n .step , n .id , n .susLength , n .type , n .strumLine );
10611064 notesGroup .add (newNote );
10621065 newSelection .push (newNote );
@@ -1285,6 +1288,7 @@ class Charter extends UIState {
12851288 var toBeCreated : Selection = [];
12861289 for (note in strL .notes ) {
12871290 var n = new CharterNote ();
1291+ CharterNote .callScriptOnNote (' onCharterNoteCreation' , n );
12881292 var t = Conductor .getStepForTime (note .time );
12891293 n .updatePos (t , note .id , Conductor .getStepForTime (note .time + note .sLen ) - t , note .type , cStr );
12901294 notesGroup .add (n );
@@ -1719,6 +1723,7 @@ class Charter extends UIState {
17191723 switch (c ) {
17201724 case CNote (step , id , strumLineID , susLength , type ):
17211725 var note = new CharterNote ();
1726+ CharterNote .callScriptOnNote (' onCharterNoteCreation' , note );
17221727 note .updatePos (minStep + step , id , susLength , type , strumLines .members [CoolUtil .boundInt (strumLineID , 0 , strumLines .length - 1 )]);
17231728 notesGroup .add (note );
17241729 sObjects .push (note );
@@ -1750,7 +1755,7 @@ class Charter extends UIState {
17501755 if (selection == null || selection .length == 0 ) return ;
17511756 selection .loop ((n : CharterNote ) -> {
17521757 noteDeleteAnims .deleteNotes .push ({note : n , time : noteDeleteAnims .deleteTime });
1753- @ :privateAccess CharterNote .callScriptOnNote (' onCharterNoteDelete' , n );
1758+ CharterNote .callScriptOnNote (' onCharterNoteDelete' , n );
17541759 });
17551760 selection = deleteSelection (selection , true );
17561761 }
@@ -1765,7 +1770,7 @@ class Charter extends UIState {
17651770 if (oldNote != null && oldNote .step == note .step && oldNote .strumLineID == note .strumLineID && oldNote .id == note .id ) {
17661771 noteDeleteAnims .deleteNotes .push ({note : oldNote , time : noteDeleteAnims .deleteTime });
17671772 toDelete .push (oldNote );
1768- @ :privateAccess CharterNote .callScriptOnNote (' onCharterNoteDelete' , oldNote );
1773+ CharterNote .callScriptOnNote (' onCharterNoteDelete' , oldNote );
17691774 }
17701775 oldNote = note ;
17711776 }
0 commit comments