{deck}
version:1
card:0
size:[512,342]
script:"0"
name:"sound.deck"

{script:0}
on navigate x do
 play[0 "loop"]
 send navigate[x]
end
{end}

{sounds}
sosumi:"%%SND0DAwMDAwMDA0PERUTCQYEAgQJDxYaIBEBBQgLDxIWGBoZAgAABQsSGB0eHxcAAAAABQ4WHB4fEgAABAwWHyUfGhkEAAAHFxgNFBkgJBEAAQAAAA4cJi4oEQAAAAcSGCEoKhEAAAACFic1PjIPAAAAAAYWJCQRFhkOBQoPEQkABBgeFgoDDA8CDBAYIychDwAAAAAIJDtBQSUAAAAABx8uKiILAAAADxkZISENBgcAAAADFyQdGh8VDgYBBgkAAAAGIDM3KxcAAAAAECo8Oh0AAAAAEigwLioSAAAAAAADGy0tIBcHAAAFFiAWAgAAAQkSIiodBAAHDhcZEgAAAAAIKT9BORgAAAAAABAeLjkyFgAAAAADGiorHAYAAAAHGiksGwUAAAQLFBcKAAAAEygvJxMAAAAADxweFg4CAAAADhsnMTMhAgAAAAAHLEBBOhcAAAAABxsgFAYFCxMcHxcHAAAAChccFAkEAQAGEhwfHRcNAAAAAAAPJDIxHwIAAAAIJjs6IQAAAAADITY6KxYGAAAAAAAABxAbJislFggAAAAAAAYQHCUnHw8AAAADGSkqGQAAAAAOLT8+KAUAAAAAESInIhYJAgABBAgPFxsZEwsAAAACDhQWFRMWGx4YCgAAAAAJKz9BMhAAAAAADyInHgwAAAALGiIiHRMGAAAAAAIWKTEsHAgAAAAFEBQQCQYKFB0gGAcAAAALIzEvGgAAAAAEHzM4LxwHAAAAAAESISkmGgoAAAAOGx8XBgAAAAccKywgDgAAAgkNCgEAAAUZLDQtGQEAAAAADyApKSESAgAAAAQYKTAnEgAAAAAMJTMvHQgAAAAMFBMKAQAEEBwiHhMHAAAGDhIRCwUBAwgQGR8iIBkLAAAAAAAcNkE6IAAAAAADHCooGAYAAAQRGRsVDQgICg0MCAMCBg0VGxwYEgwHAwAAAAYRHCMhFQQAAAASJCsjDQAAAAASKjUxIQwAAAAAAgoQFhodGxYNBQEBBgsODw0MDRASEQ0IBQgPFxsYDQAAAAASIysmFwUAAAAIFBsaFA0HBAUIDBEVGBcSCwMAAAILFRsbFxEMCgoKCAQBAQcRHCIfFQgAAAAJFBoZEgkDAgYNFBgYFA8JBAEBBAsTGRsYEAgCAgYNEhQSDQgHCQ4REQ4LCQsPExUSCwMAAAYQGR4cFg0FAAACBw0TFhcUDwoGBQkOExQRCwUCBAsSGBkVDgkGBwoMDQwKCg0QFBUSDggFBQgMERMTEQ4KCAcICw8UFxYSCgMAAAYPFxsZEwsFBAcLDxAODAoKDRAREQ8NCwoLDA0MCwoLDA4QEREQDw0KCAUFBwwSFxkVDwcBAQYNFBcVEAkFBQgNERMSEA0LCwoKCgsLDQ4QEBAPDQwMCwsKCgsMDxERDwwKCQsPEhMQCwYDBAkQFxkXEQoFAwUIDRASEhEPDQwLCgsMDg8ODQwLCwwODg4NDAwNDxAQDQkGBgkOExUUEAsHBggMEBIRDgsJCAoMDxESEhANCQcGBwoPEhQTEA0KCQoLDAwMCwwOEBISDwwIBwkMEBIRDwsJCAoNEBISEA4LCQgJCg0PERIQDQoICQsOERIQDAkICQsPEREQDgwMDQ0NCwoJCQwPEhMSDwwJBwgJDA4QEREPDQsJCgsOEBEPDAkHCAsPEhMRDgsJCQsNDg4NDAwNDg4ODQwLDAwNDg4NDAsLCwwNDg8QERAOCgcGBwoPExQTDwsIBwkMDxAPDQwLDA0ODw8ODQwMDAwMDAwNDg4PDg4NDAwMCwsLDA0ODxAODQsJCgsNDxAPDQsKCgsNDg4ODQwMDAwMDAwMDAwMDAwM"
amen:"%%[encoded data, 18512 characters]"
clip1:"%%[encoded data, 12560 characters]"
clip2:"%%[encoded data, 7892 characters]"
clip3:"%%[encoded data, 16100 characters]"
buffer:"%%SND00NPZ4/D/DBokLC8uKSATBfjq3tbR0dXe6fcFEx8pLi8sJRoN//Hk2dPR09nj8P4MGSQsLy4pIBQG+Ore1tHR1d7p9wQTHyguLywlGg3/8eTa09HT2eP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LC8uKSAUBvjq39bR0dXd6fYEEh8oLi8sJRoNAPHk2tPR0tni7/0LGSQsLy8pIBQG+evf1tHR1d3o9gQSHiguLy0lGw4A8uXa09HS2OLv/QsYJCsvLyohFQf569/W0dHV3ej2AxIeKC4vLSYbDg=="

{card:home}
image:"%%[encoded data, 9264 characters]"
{widgets}
field1:{"type":"field","size":[108,13],"pos":[334,240],"locked":1,"border":0,"style":"plain","align":"center","value":"An interactive tutorial"}
button2:{"type":"button","size":[94,23],"pos":[401,306],"script":"home.0","text":"Begin..."}

{script:home.0}
on click do
  go["TheBasics" "SlideLeft"]
end
{end}

{card:TheBasics}
image:"%%IMG2AgABVgD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/A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8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wBu"
{widgets}
button1:{"type":"button","size":[60,20],"pos":[15,307],"script":"TheBasics.0","text":"Back"}
button2:{"type":"button","size":[60,20],"pos":[436,307],"script":"TheBasics.1","text":"Next"}
field1:{"type":"field","size":[204,19],"pos":[148,28],"locked":1,"font":"menu","border":0,"style":"plain","align":"center","value":"The Basics"}
field2:{"type":"field","size":[316,47],"pos":[101,292],"locked":1,"border":0,"style":"plain","align":"center","value":"The play[] function plays sounds.\nYou can view a list of existing sounds in File -> Sounds...\nYou can also drag and drop any .WAV audio file onto Decker to import it.\nSounds may be up to 10 seconds long."}
button3:{"type":"button","size":[103,32],"pos":[119,146],"script":"TheBasics.2","text":"Click Me!"}
field3:{"type":"field","size":[111,44],"pos":[277,141],"locked":1,"style":"code","value":"on click do\n play[\"sosumi\"]\nend"}

{script:TheBasics.0}
on click do
 go["Prev" "SlideRight"]
end
{end}

{script:TheBasics.1}
on click do
 go["Next" "SlideLeft"]
end
{end}

{script:TheBasics.2}
on click do
 play["sosumi"]
end
{end}

{card:Names and Interfaces}
image:"%%IMG2AgABVgD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD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8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wAR"
{widgets}
button1:{"type":"button","size":[60,20],"pos":[15,307],"script":"TheBasics.0","text":"Back"}
button2:{"type":"button","size":[60,20],"pos":[436,307],"script":"TheBasics.1","text":"Next"}
field1:{"type":"field","size":[204,19],"pos":[148,28],"locked":1,"font":"menu","border":0,"style":"plain","align":"center","value":"Names and Interfaces"}
field2:{"type":"field","size":[316,47],"pos":[101,292],"locked":1,"border":0,"style":"plain","align":"center","value":"Sounds can be played by name, if you provide play[] with a string.\nYou can also play them by value, if you reach into \"deck.sounds\".\nThe above examples are equivalent."}
button3:{"type":"button","size":[103,32],"pos":[105,114],"script":"TheBasics.2","text":"Click Me!"}
field3:{"type":"field","size":[164,45],"pos":[263,109],"locked":1,"style":"code","value":"on click do\n play[\"sosumi\"]\nend"}
button4:{"type":"button","size":[103,32],"pos":[106,198],"script":"Names and Interfaces.0","text":"Click Me!"}
field4:{"type":"field","size":[164,44],"pos":[264,193],"locked":1,"style":"code","value":"on click do\n play[deck.sounds.sosumi]\nend"}

{script:Names and Interfaces.0}
on click do
 play[deck.sounds.sosumi]
end
{end}

{card:Sleeping}
image:"%%IMG2AgABVgD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8AtAECAP8A/gEEAP8A+QEHAP8A+AEIAP8A9QEKAP8A9gEHAP8A+QE2AP8AzAEBAAEBNAD/ANABMAD/ANMBBAD/AP8BBAD/AP4BBAD/AP4BAgD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/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:{"type":"button","size":[60,20],"pos":[15,307],"script":"TheBasics.0","text":"Back"}
button2:{"type":"button","size":[60,20],"pos":[436,307],"script":"TheBasics.1","text":"Next"}
field1:{"type":"field","size":[204,19],"pos":[148,28],"locked":1,"font":"menu","border":0,"style":"plain","align":"center","value":"Sleeping"}
field2:{"type":"field","size":[316,47],"pos":[101,292],"locked":1,"border":0,"style":"plain","align":"center","value":"If you play[] multiple sounds rapidly, they'll play on top of one another.\nThe sleep[] function normally waits for frames to elapse.\nCalled with the string \"play\", it will instead wait for sounds to finish,\nwhich will usually take many frames."}
button3:{"type":"button","size":[103,32],"pos":[112,197],"script":"Sleeping.0","text":"Play Twice"}
field3:{"type":"field","size":[133,65],"pos":[275,181],"locked":1,"style":"code","value":"on click do\n play[\"sosumi\"]\n sleep[\"play\"]\n play[\"sosumi\"]\nend"}
button4:{"type":"button","size":[103,45],"pos":[112,85],"script":"TheBasics.2","text":"Click Me!\n(Rapidly)"}
field4:{"type":"field","size":[134,45],"pos":[273,87],"locked":1,"style":"code","value":"on click do\n play[\"sosumi\"]\nend"}

{script:Sleeping.0}
on click do
 play["sosumi"]
 sleep["play"]
 play["sosumi"]
end
{end}

{card:Busywaiting}
image:"%%IMG2AgABVgD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/w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AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wDc"
script:"Busywaiting.0"
{widgets}
button1:{"type":"button","size":[60,20],"pos":[15,307],"script":"TheBasics.0","text":"Back"}
button2:{"type":"button","size":[60,20],"pos":[436,307],"script":"TheBasics.1","text":"Next"}
field1:{"type":"field","size":[204,19],"pos":[148,28],"locked":1,"font":"menu","border":0,"style":"plain","align":"center","value":"Busy Waiting"}
field2:{"type":"field","size":[316,47],"pos":[101,292],"locked":1,"border":0,"style":"plain","align":"center","value":"If you want to do something else while waiting for a sound to finish, \nyou can consult \"app.playing\",\nwhich is truthy as long as some sound is playing.\nIn this case we use it to keep a canvas animation going."}
button3:{"type":"button","size":[103,32],"pos":[117,220],"script":"Busywaiting.1","text":"Busy Wait"}
field3:{"type":"field","size":[133,96],"pos":[275,187],"locked":1,"style":"code","value":"on click do\n play[\"amen\"]\n while app.playing\n  view[]\n  sleep[1]\n end\n play[\"sosumi\"]\nend"}
target:{"type":"canvas","size":[66,62],"pos":[220,51],"locked":1,"image":"%%IMG2AEIAPgD/AP8A/wD/AP8A/wCZAQMAOwECAAIBAgA8AQMAAQECAAIBAgA5AQIAAQECAAEBAwA2AQEAAwEDAAEBAwA3AQQAAQEEADkBDQA5AQQAAQEEADcBAwABAQMAAwEBADYBAwABAQIAAQECADkBAgACAQIAAQEDADwBAgACAQIAOwEDAP8A/wD/AP8A/wD/AFY=","scale":1}
button4:{"type":"button","size":[103,32],"pos":[116,135],"script":"Busywaiting.2","text":"Blocking Wait"}
field4:{"type":"field","size":[133,65],"pos":[275,119],"locked":1,"style":"code","value":"on click do\n play[\"amen\"]\n sleep[\"play\"]\n play[\"sosumi\"]\nend"}

{script:Busywaiting.0}
on pinwheel t do
 target.clear[]
 c:target.size/2                  # center of canvas
 r:c[0]*.6+.4*sin 0.02*t          # radius of the pattern
 a:(0.005*t)+(pi/0.5*16)*range 16 # angle per wedge
 p:flip c+flip r*unit a           # points around a circle
 each x i in p
  if 2%i target.poly[c x p[(count p)%1+i]] end # draw every other wedge
 end
end

on view do
 pinwheel[sys.frame]
 go[card]
end
{end}

{script:Busywaiting.1}
on click do
 play["amen"]
 while app.playing
  view[]
  sleep[1]
 end
 play["sosumi"]
end
{end}

{script:Busywaiting.2}
on click do
 play["amen"]
 sleep["play"]
 play["sosumi"]
end
{end}

{card:Looping}
image:"%%IMG2AgABVgD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/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D/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wDy"
{widgets}
button1:{"type":"button","size":[60,20],"pos":[15,307],"script":"Looping.0","text":"Back"}
button2:{"type":"button","size":[60,20],"pos":[436,307],"script":"Looping.1","text":"Next"}
field1:{"type":"field","size":[204,19],"pos":[148,28],"locked":1,"font":"menu","border":0,"style":"plain","align":"center","value":"Looping"}
field2:{"type":"field","size":[316,56],"pos":[101,279],"locked":1,"border":0,"style":"plain","align":"center","value":"If the second argument to play[] is the string \"loop\",\nit controls a background audio loop.\nThe loop will automatically repeat until it is stopped.\nIf you try to loop a sound that is already looped, it will continue playing;\nTo re-start the loop, you must first stop it or play a different sound."}
button3:{"type":"button","size":[103,32],"pos":[122,89],"script":"Looping.2","text":"Start Loop"}
field3:{"type":"field","size":[133,45],"pos":[280,84],"locked":1,"style":"code","value":"on click do\n play[\"amen\" \"loop\"]\nend"}
button4:{"type":"button","size":[103,32],"pos":[121,144],"script":"Looping.3","text":"Reset Loop"}
field4:{"type":"field","size":[134,52],"pos":[279,139],"locked":1,"style":"code","value":"on click do\n play[0      \"loop\"]\n play[\"amen\" \"loop\"]\nend"}
button5:{"type":"button","size":[103,32],"pos":[121,206],"script":"Looping.4","text":"Stop Loop"}
field5:{"type":"field","size":[134,45],"pos":[279,201],"locked":1,"script":"Looping.5","style":"code","value":"on click do\n play[0      \"loop\"]\nend"}

{script:Looping.0}
on click do
 play[0 "loop"]
 go["Prev" "SlideRight"]
end
{end}

{script:Looping.1}
on click do
 play[0 "loop"]
 go["Next" "SlideLeft"]
end
{end}

{script:Looping.2}
on click do
 play["amen" "loop"]
end
{end}

{script:Looping.3}
on click do
 play[0      "loop"]
 play["amen" "loop"]
end
{end}

{script:Looping.4}
on click do
 play[0 "loop"]
end
{end}

{script:Looping.5}
on click do
 play[0      "loop"]
end
{end}

{card:The Loop Event}
image:"%%IMG2AgABVgD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/A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/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AEQ="
script:"The Loop Event.0"
{widgets}
button1:{"type":"button","size":[60,20],"pos":[15,307],"script":"Looping.0","text":"Back"}
button2:{"type":"button","size":[60,20],"pos":[436,307],"script":"Looping.1","text":"Next"}
field1:{"type":"field","size":[204,19],"pos":[148,28],"locked":1,"font":"menu","border":0,"style":"plain","align":"center","value":"The Loop Event"}
field2:{"type":"field","size":[316,56],"pos":[101,279],"locked":1,"border":0,"style":"plain","align":"center","value":"The \"loop\" event fires whenever a card is visited or a loop finishes.\nThe value this function returns is played as the next loop sound.\nIf this function returns 0, the loop stops.\nThis example continuously loops one sound while keeping track of how many times it has looped."}
field5:{"type":"field","size":[215,58],"pos":[184,183],"locked":1,"script":"Looping.5","style":"code","value":"on loop do\n counter.text:1+counter.text\n \"amen\"\nend"}
counter:{"type":"field","size":[64,15],"pos":[252,102],"font":"menu","align":"center","value":"0"}
field9:{"type":"field","size":[89,25],"pos":[69,221],"locked":1,"show":"transparent","border":0,"style":"plain","align":"center","value":"return the sound\nto play next"}
field3:{"type":"field","size":[89,25],"pos":[67,172],"locked":1,"show":"transparent","border":0,"style":"plain","align":"center","value":"increment a counter"}
field4:{"type":"field","size":[44,15],"pos":[204,102],"locked":1,"show":"transparent","border":0,"style":"plain","align":"center","value":"coun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/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AEM="
script:"Shuffling.0"
{widgets}
button1:{"type":"button","size":[60,20],"pos":[15,307],"script":"Looping.0","text":"Back"}
field1:{"type":"field","size":[204,19],"pos":[148,28],"locked":1,"font":"menu","border":0,"style":"plain","align":"center","value":"Shuffling"}
field2:{"type":"field","size":[316,27],"pos":[101,308],"locked":1,"border":0,"style":"plain","align":"center","value":"In this example, we use the \"loop\" event to shuffle background audio\nclips randomly while updating counters."}
field5:{"type":"field","size":[216,121],"pos":[202,120],"locked":1,"script":"Looping.5","style":"code","value":"on loop do\n n:random[\"clip1\",\"clip2\",\"clip3\"]\n clip1.show:\"solid\"\n clip2.show:\"solid\"\n clip3.show:\"solid\"\n l:card.widgets[n]\n l.show:\"invert\"\n l.text:1+l.text\n n\nend"}
clip1:{"type":"field","size":[50,16],"pos":[163,80],"locked":1,"font":"menu","align":"center","value":"0"}
clip2:{"type":"field","size":[50,16],"pos":[229,80],"locked":1,"font":"menu","align":"center","value":"0"}
clip3:{"type":"field","size":[50,16],"pos":[295,80],"locked":1,"font":"menu","align":"center","value":"0"}
field3:{"type":"field","size":[43,15],"pos":[166,60],"locked":1,"border":0,"style":"plain","align":"center","value":"clip1"}
field4:{"type":"field","size":[43,15],"pos":[232,60],"locked":1,"border":0,"style":"plain","align":"center","value":"clip2"}
field6:{"type":"field","size":[43,15],"pos":[298,60],"locked":1,"border":0,"style":"plain","align":"center","value":"clip3"}
field7:{"type":"field","size":[89,15],"pos":[50,110],"locked":1,"show":"transparent","border":0,"style":"plain","align":"center","value":"pick a sound"}
field8:{"type":"field","size":[91,24],"pos":[49,146],"locked":1,"show":"transparent","border":0,"style":"plain","align":"center","value":"reset field\nbackground colors"}
field9:{"type":"field","size":[89,25],"pos":[50,229],"locked":1,"show":"transparent","border":0,"style":"plain","align":"center","value":"return the sound\nto play next"}
field10:{"type":"field","size":[91,24],"pos":[47,187],"locked":1,"show":"transparent","border":0,"style":"plain","align":"center","value":"highlight a field\nand count up"}
button2:{"type":"button","size":[60,20],"pos":[436,307],"script":"Shuffling.1","text":"Home"}

{script:Shuffling.0}
on loop do
 n:random["clip1","clip2","clip3"]
 clip1.show:"solid"
 clip2.show:"solid"
 clip3.show:"solid"
 l:card.widgets[n]
 l.show:"invert"
 l.text:1+l.text
 n
end
{end}

{script:Shuffling.1}
on click do
 play[0 "loop"]
 go["Next" "BoxIn"]
end
{end}

