Skip to content

Commit a1a6d33

Browse files
author
Antonino Tramontana
committed
added example python code for note block
1 parent fe7b640 commit a1a6d33

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/Activity.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,6 +1681,13 @@ export default {
16811681
}
16821682
};
16831683
1684+
1685+
Blockly.Python['coderbot_music_note_sol'] = {
1686+
// TODO: Assemble Python into code variable.
1687+
var code = 'get_music().play_note("A2")\n';
1688+
return code;
1689+
1690+
};
16841691
16851692
Blockly.Python['coderbot_audio_listen'] = function(block) {
16861693
// Boolean values true and false.

0 commit comments

Comments
 (0)