@@ -1672,7 +1672,7 @@ export default {
1672
1672
.setAlign (Blockly .ALIGN_CENTRE )
1673
1673
.appendField (new Blockly.FieldImage (" /static/images/blocks/musical_note.png" , 30 , 30 , { alt: " note" , flipRtl: " FALSE" }))
1674
1674
.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" );
1676
1676
this .setInputsInline (true );
1677
1677
this .setPreviousStatement (true , null );
1678
1678
this .setNextStatement (true , null );
@@ -1716,7 +1716,7 @@ export default {
1716
1716
this .appendDummyInput ()
1717
1717
.appendField (new Blockly.FieldImage (" /static/images/blocks/musical_note.png" , 30 , 30 , { alt: " note" , flipRtl: " FALSE" }))
1718
1718
.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" );
1720
1720
this .appendDummyInput ()
1721
1721
.appendField (" strumento" )
1722
1722
.appendField (new Blockly.FieldDropdown ([[" piano" ," piano" ], [" chitarra" ," guitar" ], [" flauto" ," flute" ]]), " instrument" );
@@ -1741,7 +1741,7 @@ export default {
1741
1741
var dropdown_instrument = block .getFieldValue (' instrument' );
1742
1742
var value_duration = Blockly .Python .valueToCode (block, ' duration' , Blockly .Python .ORDER_ATOMIC );
1743
1743
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 ' ;
1745
1745
return code;
1746
1746
}
1747
1747
@@ -1751,10 +1751,10 @@ export default {
1751
1751
this .appendDummyInput ()
1752
1752
.appendField (new Blockly.FieldImage (" /static/images/blocks/animal.png" , 30 , 30 , { alt: " note" , flipRtl: " FALSE" }))
1753
1753
.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" );
1755
1755
this .appendDummyInput ()
1756
1756
.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" );
1758
1758
this .appendValueInput (" duration" )
1759
1759
.setCheck (" Number" )
1760
1760
.setAlign (Blockly .ALIGN_CENTRE )
@@ -1776,7 +1776,7 @@ export default {
1776
1776
var dropdown_instrument = block .getFieldValue (' instrument' );
1777
1777
var value_duration = Blockly .Python .valueToCode (block, ' duration' , Blockly .Python .ORDER_ATOMIC );
1778
1778
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 ' ;
1780
1780
return code;
1781
1781
};
1782
1782
@@ -1803,7 +1803,7 @@ export default {
1803
1803
1804
1804
Blockly .Python [' coderbot_music_pause_std' ] = function (block ) {
1805
1805
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 ' ;
1807
1807
return code;
1808
1808
};
1809
1809
0 commit comments