@name Bubble Bobble 2
@inputs X On

if(On&~On) {soundPlay(0,0,"synth/tri.wav")}
if(!On&~On) {soundPurge()}

Song = "    ggggggggggg ggggggg vvv ccccccc vvv ggggggg nnn sssssssssssssss ccccccccccc ]]]]]]] ]]] vvvvvvv ggggggg [[[[[[[ ]]]]]]"+
"]]] zzzzzzzzzzzz  lll ,,, mmmmm n ,,, mmm nnn ggg mmm nnn g vvvv nnnnnnnnnnnn v c sss ccc vvv ggg ccc v ggggg nnn nnn mmm , mmmmm"+
" nnn nnn mmm ,,, lll ,,, mmmmm n ,,, mmm nnn ggg mmm nnn g vvvv nnnnnnnnnnnn v c sss ccc vvv ggg ccc v ggggg nnn nnn mmm ,,, nnn "+
"lll [[[ ]]] aaa zzz                 [[[ ]]] zzz sss                 [[[ ]]] zzz ccc                 [[[ ]]] zzz vvv              "+
"   sss ccc vvv ggg ggggggg ggggggg vvv ccccccc vvvvvvvvvvvvvvvvvvvvvvv vvvvvvv ccccccccccc ]]]]]]] ttt vvvvvvv cccccccccccccccccc"+
"c [[[ ]]] aaa zzz                 [[[ ]]] zzz sss                 [[[ ]]] zzz ccc                 [[[ ]]] zzz vvv                "+
" sss ccc vvv ggg ggggggg ggggggg vvv ccccccc vvvvvvvvvvvvvvvvvvvvvvv vvvvvvv ccccccccccc [[[[[[[ vvv [[[ vvv ssssssssssssssssssss "

Note = Song:index(X)

#gvars for piano
timer("timer",1)
if(clk("timer")) {gSetStr("S2",Note)}

if(Note == " ") {PV = 0}
if(Note == "q") {PV = 59} # C
if(Note == "2") {PV = 60} # C#
if(Note == "w") {PV = 61} # D
if(Note == "3") {PV = 62} # D#
if(Note == "e") {PV = 63} # E
if(Note == "r") {PV = 64} # F
if(Note == "5") {PV = 65} # F#
if(Note == "t") {PV = 66} # G
if(Note == "6") {PV = 67} # G#
if(Note == "y") {PV = 68} # A
if(Note == "7") {PV = 69} # A#
if(Note == "u") {PV = 70} # B
if(Note == "i") {PV = 71} # C - Home
if(Note == "9") {PV = 72} # C#
if(Note == "o") {PV = 73} # D
if(Note == "0") {PV = 74} # D#
if(Note == "p") {PV = 75} # E
if(Note == "[") {PV = 76} # F
if(Note == "=") {PV = 77} # F#
if(Note == "]") {PV = 78} # G
if(Note == "a") {PV = 79} # G#
if(Note == "z") {PV = 80} # A
if(Note == "s") {PV = 81} # A#
if(Note == "x") {PV = 82} # B
if(Note == "c") {PV = 83} # C
if(Note == "f") {PV = 84} # C#
if(Note == "v") {PV = 85} # D
if(Note == "g") {PV = 86} # D#
if(Note == "b") {PV = 87} # E
if(Note == "n") {PV = 88} # F
if(Note == "j") {PV = 89} # F#
if(Note == "m") {PV = 90} # G
if(Note == "k") {PV = 91} # G#
if(Note == ",") {PV = 92} # A
if(Note == "l") {PV = 93} # A#
if(Note == ".") {PV = 94} # B
if(Note == "/") {PV = 95} # C
if(Note == "'") {PV = 96} # C#

soundPitch(0,2^(PV/12))