if the short name of button i is not "Home" then send mouseUp to button i
if the mouse is down then exit repeat
end repeat
end playAll
on playForever
repeat
PlayAll
if the mouse is down then exit repeat
end repeat
end playForever
-- part 1 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=2 top=226 right=269 bottom=121
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: Jingle Bells
----- HyperTalk script -----
on mouseUp
global instrument,speed
push card
visual dissolve slowly
go next card
put the short name of me into card field 1
wait 60
play instrument tempo speed+100 "DQ BQ AQ GQ DH. DE DE DQ BQ AQ GQ EW EQ C5Q B4Q AQ F#H. F#Q D5Q DQ CQ A4Q BH. DQ DQ BQ AQ GQ DH. DQ DQ BQ AQ GQ EH. EQ EQ C5Q B4Q AQ D5Q DQ DQ DQ EQ DQ C5Q A4Q GH D5H"
play instrument tempo speed+100 "BQ BQ BH BQ BQ BH BQ D5Q G4Q. AE BW C5Q CQ CQ. CE CQ B4Q BQ BE BE BQ AQ AQ BQ AH D5H B4Q BQ BH BQ BQ BH BQ D5Q G4Q. AE BW C5Q CQ CQ. CE CQ B4Q BQ BE BE D5Q DQ CQ A4Q GW"
wait until the sound is "done" or the mouse is down
play stop
visual dissolve slowly
pop card
end mouseup
-- part 5 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=70 top=274 right=317 bottom=237
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: Joy to the World
----- HyperTalk script -----
on mouseUp
global instrument,speed
push card
visual dissolve slowly
go next card
put the short name of me into card field 1
wait 60
play instrument tempo speed "D5Q C#E. B4S AQ. GE F#Q EQ DQ. AE BQ. BE C5#Q. C#E DW DE DE C#E B4E AE AE. GS F#E D5E DE C#E B4E AE AE. GS F#E F#E F#E F#E F#E F#S GS AQ. GS F#S EE EE EE ES F#S GQ. F#S ES DE D5Q B4E AE. GS F#E GE F#Q EQ DH"
wait until the sound is "done" or the mouse is down
play stop
visual dissolve slowly
pop card
end mouseUp
-- part 14 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=128 top=225 right=268 bottom=266
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: Deck the Halls
----- HyperTalk script -----
on mouseUp
global instrument,speed
push card
visual dissolve slowly
go next card
put the short name of me into card field 1
wait 60
play instrument tempo speed+100 "AQ. GE F#Q EQ DQ EQ F#Q DQ EE F#E GE EE F#Q. EE DQ C#Q DH AQ. GE F#Q EQ DQ EQ F#Q DQ EE F#E GE EE F#Q. EE DQ C#Q DH EQ. F#E GQ EQ F#Q. GE AQ EQ F#E G#E AQ BE C5#E DQ C#Q B4Q AH AQ. GE F#Q EQ DQ EQ F#Q DQ BE BE BE BE AQ. GE F#Q EQ DH"
wait until the sound is "done" or the mouse is down
play stop
visual dissolve slowly
pop card
end mouseUp
-- part 23 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=270 top=225 right=268 bottom=511
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: O Come, All Ye Faithful
----- HyperTalk script -----
on mouseUp
global instrument,speed
push card
visual dissolve slowly
go next card
put the short name of me into card field 1
wait 60
play instrument tempo speed+50 "AQ AH EQ AQ BH EH C#5Q B4Q C#5Q DQ C#H B4Q AQ AH G#Q F#Q G#Q AQ BQ C#5Q G#4H F#Q. EE EW "
play instrument tempo speed+50 "E5H DQ C#Q DH C#H B4Q C#5Q A4Q BQ G#Q. F#E EQ AQ AQ G#Q AQ BQ AH EQ C#5Q C#Q B4Q C#5Q DQ C#H B4Q C#5Q DQ C#Q B4Q AQ G#H AQ D5Q C#H B4Q. AE AH."
wait until the sound is "done" or the mouse is down
play stop
visual dissolve slowly
pop card
end mouseUp
-- part 17 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=213 top=127 right=170 bottom=511
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: Angels We Have Heard on High
----- HyperTalk script -----
on mouseUp
global instrument,speed
push card
visual dissolve slowly
go next card
put the short name of me into card field 1
wait 60
play instrument tempo speed+50 "AQ AQ AQ C5Q CQ. B4BE AH AQ GQ AQ C5Q A4Q. GE FH AQ AQ AQ C5Q CQ. B4BE AH AQ GQ AQ C5Q A4Q. "
play instrument tempo speed+50 "GE FH C5H DE CE B4BE AE BBH C5E B4BE AE GE AH BBE AE GE FE GQ. CE CH FQ GQ AQ BBQ AH GH C5H DE CE B4BE AE BBH C5E B4BE AE GE AH BBE AE GE FE GQ. CE CH FQ GQ AQ BBQ AH GH FW"
wait until the sound is "done" or the mouse is down
play stop
visual dissolve slowly
pop card
end mouseUp
-- part 13 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=318 top=175 right=218 bottom=511
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: O Little Town
----- HyperTalk script -----
on mouseUp
global instrument,speed
push card
visual dissolve slowly
go next card
put the short name of me into card field 1
wait 60
play instrument tempo speed "BQ BQ BQ A#Q BQ D5Q CQ E4Q AQ GQ F#E GE AQ DQ BH. BQ BQ BQ E5Q DQ DQ CQ E4Q AQ GQ F#E GE BQ. AE GH. BQ BQ BQ AQ GQ F#H F#Q F#Q EQ F#Q GQ AQ BH. BQ BQ BQ A#Q BQ D5Q CQ E4Q E5Q DQ G4Q BQ. AE GH."
wait until the sound is "done" or the mouse is down
play stop
visual dissolve slowly
pop card
end mouseUp
-- part 22 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=1 top=80 right=123 bottom=289
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: God Rest Ye Merry Gentlemen
----- HyperTalk script -----
on mouseUp
global instrument,speed
push card
visual dissolve slowly
go next card
put the short name of me into card field 1
wait 60
play instrument tempo speed+100 "EQ EQ BQ BQ AQ GQ F#Q EQ DQ EQ F#Q GQ AQ BH. EQ EQ BQ BQ AQ GQ F#Q EQ DQ EQ F#Q GQ AQ BH. BQ C5Q A4Q BQ C5Q DQ EQ B4Q AQ GQ EQ F#Q GQ AH GQ AQ BH C5Q B4Q BQ AQ GQ F#Q EH GE F#E EQ AH GQ AQ BQ C5Q DQ EQ B4Q AQ GQ F#Q EH."
wait until the sound is "done" or the mouse is down
play stop
visual dissolve slowly
pop card
end mouseUp
-- part 15 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=255 top=274 right=317 bottom=394
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: Silent Night
----- HyperTalk script -----
on mouseUp
global instrument,speed
push card
visual dissolve slowly
go next card
put the short name of me into card field 1
wait 60
play instrument tempo speed "EBQ. FE EBQ CH. EBQ. FE EBQ CH. BBH BBQ GH. ABH ABQ EBH. FH FQ ABQ. GE FQ EBQ. FE EBQ CH. FH FQ ABQ. GE FQ EBQ. FE EBQ CH. BBH BBQ D5BQ. B4BE GQ ABH. C5H. A4BQ EBQ CQ EBQ. DBE B3BQ A3BH."
wait until the sound is "done" or the mouse is down
play stop
visual dissolve slowly
pop card
end mouseUp
-- part 26 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=198 top=31 right=74 bottom=511
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: We Wish You a Merry Christmas
----- HyperTalk script -----
on mouseUp
global instrument,speed
push card
visual dissolve slowly
go next card
put the short name of me into card field 1
wait 60
play instrument tempo speed+100 "GQ C5Q CE DE CE B4E AQ AQ AQ D5Q DE EE DE CE B4Q GQ GQ E5Q EE FE EE DE CQ A4Q GE GE AQ D5Q B4Q C5H "
play instrument tempo speed+100 "G4Q C5Q CQ CQ B4H BQ C5Q B4Q AQ GH D5Q EQ DQ CQ G5Q G4Q GE GE AQ D5Q B4Q C5H G4Q C5Q CE DE CE B4E AQ AQ AQ D5Q DE EE DE CE B4Q GQ GQ E5Q EE FE EE DE CQ A4Q GE GE AQ D5Q B4Q C5H."
wait until the sound is "done" or the mouse is down
wait until the sound is "done" or the mouse is down
play stop
visual dissolve slowly
pop card
end mouseUp
-- part 28 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=1 top=31 right=74 bottom=196
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: The First Noel
----- HyperTalk script -----
on mouseUp
global instrument,speed
push card
visual dissolve slowly
go next card
put the short name of me into card field 1
wait 60
play instrument tempo speed "F#E EE DQ. EE F#E GE AH BE C5#E DQ C#Q B4Q AH BE C5#E DQ C#Q B4Q AQ BQ C5#Q DQ A4Q GQ F#H F#E EE DQ. EE F#E GE AH BE C5E# DQ C#Q B4Q AH"
play instrument tempo speed "BE C5#E DQ C#Q B4Q AQ BQ C5#Q DQ A4Q GQ F#H F#E EE DQ. EE F#E GE AH D5E C#E B4Q. C5#E DE EE F#H. DQ C#Q B4Q AQ BQ C5#Q DQ A4Q GQ F#H."
wait until the sound is "done" or the mouse is down
play stop
visual dissolve slowly
pop card
end mouseUp
-- part 29 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=1 top=175 right=218 bottom=305
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: Hark, The Herald Angels Sing
----- HyperTalk script -----
on mouseUp
global instrument,speed
push card
visual dissolve slowly
go next card
put the short name of me into card field 1
wait 60
play instrument tempo speed "DQ GQ GQ. F#E GQ BQ BQ AQ D5Q DQ DQ. CE B4Q AQ BH DQ GQ GQ. F#E GQ BQ BQ AQ D5Q A4Q AQ. F#E F#Q EQ DH D5Q DQ DQ G4q C5Q B4Q BE C5S B4S AQ D5Q DQ DQ G4q C5Q B4Q BE C5S B4S AQ E5Q EQ EQ. "
play instrument tempo speed "D5E CQ B4Q C5H A4Q BE C5E Dq. G4E GQ AQ AS C5S DS ES EQ EQ EQ. DE CQ B4Q C5H A4Q BE C5E DQ. G4E GQ AQ GH"
wait until the sound is "done" or the mouse is down
play stop
pop card
visual dissolve slowly
end mouseUp
-- part 30 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=3 top=126 right=169 bottom=193
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: O Christmas Tree
----- HyperTalk script -----
on mouseUp
global instrument,speed
push card
visual dissolve slowly
go next card
put the short name of me into card field 1
wait 60
play instrument tempo speed "DQ GE. GS GQ AQ BE. BS BQ. BE AE BE C5Q F4#Q AQ GQ. D5E DE B4E E5Q. DE DE C#E CQ. CE CE A4E D5Q. CE CE B4E BQ DQ GE. GS GQ. AE BE. BS BQ. BE AE BE C5Q F4#Q AQ GH"
wait until the sound is "done" or the mouse is down
play stop
visual dissolve slowly
pop card
end mouseUp
-- part 31 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=143 top=6 right=26 bottom=347
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 33 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=466 top=303 right=335 bottom=502
-- title width / last selected line: 0
-- icon id / first selected line: 21847 / 21847
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: Home
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go home
end mouseUp
-- part 34 (button)
-- low flags: 00
-- high flags: 8004
-- rect: left=405 top=275 right=296 bottom=492
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Bell
----- HyperTalk script -----
on mouseDown
global instrument, choices
-- find out what number the button is
repeat with lastItem = 1 to number of lines in choices
if line lastItem of choices is the short name of me then exit repeat
end repeat
put line lastItem of choices into instrument
get HPopUpMenu(choices, -lastItem, top of me, left of me)
if the result is not empty then put the result
if item 1 of it is not empty then
put item 1 of it into lastItem
put item 1 of it into instrument
set the name of the target to lastItem
end if
end mouseDown
-- part 35 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=14 top=289 right=304 bottom=27
-- title width / last selected line: 0
-- icon id / first selected line: 3584 / 3584
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: hVolume
----- HyperTalk script -----
on mouseUp
-- make sure it snaps to certain locations
-- change these to change the control's location
put 14 into toff
put 6 into tstep
repeat with i = 0 to 7
put toff+i*tstep into item i+1 of stops
end repeat
get loc of me
get item 1 of it
put 1000 into m
put 0 into h
repeat with i = 1 to 8
if abs(it-item i of stops) < m then
put i into h
put abs(it-item i of stops) into m
end if
end repeat
set loc of me to item h of stops,296
play stop
SetVolume(h-1)
beep
end mouseUp
on mouseDown
put 14 into toff
put 6 into tstep
put toff+tstep*7 into tmax
repeat while the mouse is down
get item 1 of the mouseLoc
get max(it,toff)
get min(it,tmax)
set loc of me to it,296
end repeat
end mouseDown
on setMe
get getVolume()
put 14 into toff
put 6 into tstep
set loc of me to toff+it*tstep,296
end setMe
-- part 36 (button)
-- low flags: 00
-- high flags: 8004
-- rect: left=406 top=300 right=322 bottom=461
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Normal
----- HyperTalk script -----
on mouseDown
global instrument, speed
put "Fastest,Fast,Normal,Slow,Slowest" into speeds
put "170,130,100,70,50" into realSpeeds
-- find out what number the button is
repeat with lastItem = 1 to number of items in speeds
if item lastItem of speeds is the short name of me then exit repeat
end repeat
put item lastItem of realSpeeds into speed
-- lastItem is negative so that there is no check mark
get HPopUpMenu(speeds, -lastItem, top of me, left of me)