{
   "author" : "josecaos",
   "name" : "seeking an Array!",
   "description" : "this code throws a scrambled array of arrays seeking among them for the original array,\r\nIt only sounds when it founds it. (may take a while)\r\nthe idea started trying a SCtweet, but became with this funny code!",
   "ancestor_list" : [],
   "labels" : [
      "array",
      "seek",
      "post window"
   ],
   "is_private" : null,
   "id" : "1-2v2",
   "code" : "(// * //watch the postWindow\r\na=[\"m\",\"x\",\"f\",\"k\",\"d\",\"p\"];\r\nx=Array;\r\ny=x.newClear(6);\r\n~mxfkdp=Task({\r\n\tinf.do({y.put(x.series(6,0,1).choose,a.scramble).postln;\r\n\t0.03.wait;})}).play;\r\nm=fork({inf.do({\r\n\t\"array num:\".postcln;\r\n\tif(y[x.series(6,0,1).choose.postcln]==a,\r\n                  {\"lo encontraste!/found it!\".postcln;\r\n\t\t\t1.do({GVerb.ar(\r\n\t\t\tEnvGen.ar(Env.perc(0.01,8),1,doneAction:2)*\r\n\t\t\tBlip.ar(XLine.kr(440,1600,8)),50,10,0.02)}.play);\r\n\t\t~mxfkdp.stop;\r\n\t\tm.stop;},\t\r\n\t\t{\"buscando.../seeking...\".postcln;});\r\n\t0.03.wait})});\r\n);\r\n//.SCtweetLong"
}
