@@ -1672,7 +1672,7 @@ export default {
16721672 .setAlign (Blockly .ALIGN_CENTRE )
16731673 .appendField (new Blockly.FieldImage (" /static/images/blocks/musical_note.png" , 30 , 30 , { alt: " note" , flipRtl: " FALSE" }))
16741674 .appendField (" NOTA " )
1675- .appendField (new Blockly.FieldDropdown ([[" DO " ," C2" ], [" RE " ," D2" ], [" MI " ," E2" ], [" FA " ," F2" ], [" SOL " ," G2" ], [" LA " ," A3" ], [" SI " ," B3" ], [" DO+ " ," C3" ], [" RE+ " ," D3" ], [ " PAUSA " , " PAUSE " ]] ), " NAME" );
1675+ .appendField (new Blockly.FieldDropdown ([[" DO " ," C2" ], [" RE " ," D2" ], [" MI " ," E2" ], [" FA " ," F2" ], [" SOL " ," G2" ], [" LA " ," A3" ], [" SI " ," B3" ], [" DO+ " ," C3" ], [" RE+ " ," D3" ]] ), " NAME" );
16761676 this .setInputsInline (true );
16771677 this .setPreviousStatement (true , null );
16781678 this .setNextStatement (true , null );
@@ -1716,7 +1716,7 @@ export default {
17161716 this .appendDummyInput ()
17171717 .appendField (new Blockly.FieldImage (" /static/images/blocks/musical_note.png" , 30 , 30 , { alt: " note" , flipRtl: " FALSE" }))
17181718 .appendField (" nota" )
1719- .appendField (new Blockly.FieldDropdown ([[" DO " ," C2" ], [" RE " ," D2" ], [" MI " ," E2" ], [" FA " ," F2" ], [" FA # " ," F#2" ], [" SOL " ," G2" ], [" LA " ," A2" ], [" SI b " ," Bb2" ], [" SI " ," B2" ], [" DO+ " ," C3" ], [" RE+ " ," D3" ], [ " PAUSA " , " PAUSE " ] ]), " note" );
1719+ .appendField (new Blockly.FieldDropdown ([[" DO " ," C2" ], [" RE " ," D2" ], [" MI " ," E2" ], [" FA " ," F2" ], [" FA # " ," F#2" ], [" SOL " ," G2" ], [" LA " ," A2" ], [" SI b " ," Bb2" ], [" SI " ," B2" ], [" DO+ " ," C3" ], [" RE+ " ," D3" ]]), " note" );
17201720 this .appendDummyInput ()
17211721 .appendField (" strumento" )
17221722 .appendField (new Blockly.FieldDropdown ([[" piano" ," piano" ], [" chitarra" ," guitar" ], [" flauto" ," flute" ]]), " instrument" );
@@ -1741,7 +1741,7 @@ export default {
17411741 var dropdown_instrument = block .getFieldValue (' instrument' );
17421742 var value_duration = Blockly .Python .valueToCode (block, ' duration' , Blockly .Python .ORDER_ATOMIC );
17431743 var alteration = " none"
1744- var code = ' get_music().play_note(note="' + dropdown_note+ ' ", instrument="' + dropdown_instrument+ ' ", alteration="' + alteration+ ' ", duration=" ' + value_duration+ ' " )\n ' ;
1744+ var code = ' get_music().play_note(note="' + dropdown_note+ ' ", instrument="' + dropdown_instrument+ ' ", alteration="' + alteration+ ' ", duration=' + value_duration+ ' )\n ' ;
17451745 return code;
17461746 }
17471747
@@ -1751,10 +1751,10 @@ export default {
17511751 this .appendDummyInput ()
17521752 .appendField (new Blockly.FieldImage (" /static/images/blocks/animal.png" , 30 , 30 , { alt: " note" , flipRtl: " FALSE" }))
17531753 .appendField (" nota" )
1754- .appendField (new Blockly.FieldDropdown ([[" DO " ," C2" ], [" RE " ," D2" ], [" MI " ," E2" ], [" FA " ," F2" ], [" FA # " ," F#2" ], [" SOL " ," G2" ], [" LA " ," A2" ], [" SI b " ," Bb2" ], [" SI " ," B2" ], [" DO+ " ," C3" ], [" RE+ " ," D3" ], [ " PAUSA " , " PAUSE " ] ]), " note" );
1754+ .appendField (new Blockly.FieldDropdown ([[" DO " ," C2" ], [" RE " ," D2" ], [" MI " ," E2" ], [" FA " ," F2" ], [" FA # " ," F#2" ], [" SOL " ," G2" ], [" LA " ," A2" ], [" SI b " ," Bb2" ], [" SI " ," B2" ], [" DO+ " ," C3" ], [" RE+ " ," D3" ] ]), " note" );
17551755 this .appendDummyInput ()
17561756 .appendField (" animale" )
1757- .appendField (new Blockly.FieldDropdown ([[" Gatto" ," cat" ], [" Cane" ," dog" ], [" Dinosaur" ," dinonsaur " ]]), " instrument" );
1757+ .appendField (new Blockly.FieldDropdown ([[" Gatto" ," cat" ], [" Cane" ," dog" ], [" Dinosaur" ," dinosaur " ]]), " instrument" );
17581758 this .appendValueInput (" duration" )
17591759 .setCheck (" Number" )
17601760 .setAlign (Blockly .ALIGN_CENTRE )
@@ -1776,7 +1776,7 @@ export default {
17761776 var dropdown_instrument = block .getFieldValue (' instrument' );
17771777 var value_duration = Blockly .Python .valueToCode (block, ' duration' , Blockly .Python .ORDER_ATOMIC );
17781778 var alteration = " none" ;
1779- var code = ' get_music().play_animal(note="' + dropdown_note+ ' ", instrument="' + dropdown_instrument+ ' ", alteration="' + alteration+ ' ", duration=" ' + value_duration+ ' " )\n ' ;
1779+ var code = ' get_music().play_animal(note="' + dropdown_note+ ' ", instrument="' + dropdown_instrument+ ' ", alteration="' + alteration+ ' ", duration=' + value_duration+ ' )\n ' ;
17801780 return code;
17811781 };
17821782
@@ -1803,7 +1803,7 @@ export default {
18031803
18041804 Blockly .Python [' coderbot_music_pause_std' ] = function (block ) {
18051805 var value_duration = Blockly .Python .valueToCode (block, ' duration' , Blockly .Python .ORDER_ATOMIC );
1806- var code = ' get_music().play_pause(" ' + value_duration+ ' " )\n ' ;
1806+ var code = ' get_music().play_pause(' + value_duration+ ' )\n ' ;
18071807 return code;
18081808 };
18091809
0 commit comments