@@ -595,7 +595,7 @@ def mapping(self, midinumber, prototype='Hello World'):
595595 elif midinumber == 95 :
596596 self .__keyboard .press (Key .backspace )
597597 self .__keyboard .release (Key .backspace )
598- self .formatAndSend ('' , display = 5 , syntax_color = 'delete:' , spacing = False )
598+ self .formatAndSend ('' , display = 5 , syntax_color = 'delete:' , spacing = False )
599599 # supercollider commands:
600600 elif midinumber == 33 :
601601 self .evaluateSC ('noEnter_eval' )
@@ -606,12 +606,12 @@ def mapping(self, midinumber, prototype='Hello World'):
606606 elif midinumber == 21 :
607607 self .__keyboard .type ('.play' )
608608 self .formatAndSend ('.play' , display = 5 , syntax_color = 'hello:' , spacing = False )
609- elif midinumber == 102 :
610- self .__keyboard .type ('TempoClock.default ' )
611- self .formatAndSend ('TempoClock.default ' , display = 5 , syntax_color = 'hello:' , spacing = False )
609+ elif midinumber == 101 :
610+ self .__keyboard .type ('u ' )
611+ self .formatAndSend ('u ' , display = 5 , syntax_color = 'hello:' , spacing = False )
612612 elif midinumber == 108 :
613613 self .goDown ()
614- self .formatAndSend ('\n ' , display = 5 , syntax_color = 'hello:' , spacing = False )
614+ self .formatAndSend ('\n ' , display = 5 , syntax_color = 'hello:' , spacing = False )
615615 # motippets only commands:
616616 elif prototype == 'Motippets' :
617617 if midinumber == 66 :
@@ -850,7 +850,7 @@ def result(self, result_num, text, mod=0): #how to make optional params?
850850 self .enter ()
851851 self .formatAndSend ('if true -> stop ~snippet2' , display = 3 , syntax_color = 'snippet:' )
852852 elif text == 'code' :
853- self .__keyboard .type ('~snippet2.stop(3 );' )
853+ self .__keyboard .type ('~snippet2.stop(0.5 );' )
854854 self .evaluateSC ('eval' )
855855 self .formatAndSend ('~snippet2.stop;' , display = 3 , syntax_color = 'snippet:' )
856856 elif text == 'less than' :
@@ -938,7 +938,7 @@ def result(self, result_num, text, mod=0): #how to make optional params?
938938 self .__keyboard .type ("" )
939939 self .enter ()
940940 elif text == 'huygens' :
941- self .__keyboard .type ('~stop.now;' )
941+ self .__keyboard .type ('~stop.now;' )
942942 self .__keyboard .type ('~huygens.end;' )
943943 self .evaluateSC ('eval' )
944944
0 commit comments