Delayq

Description
Keeps track of a queue of events that will be fired in the future.

Example
spawn:{ 0 delayq ~:(1|0|s 0.2|-1|s) ':(((2 0)) -1) trans:((0.0724338 1.160141 -0.2375938 -0.1714098 -0.1430543 0.6640666 0.7135614)) 1 laserboard ~:(72|0|s 0|0|s 1|0|s 2|0|s 3|0|s 4|0|s 5|0|s 6|0|s 7|0|s 8|0|s 9|0|s 10|0|s 11|0|s) ':(((12 0)) -1 -1) paint:((0 0 0.1827388)) trans:((0.1503994 0.6088584 0.5979416 -0.1047548 -0.4318482 0.8946853 -0.0455175) (0.09506732 0.6979231 0.5127877 0.2456004 -0.3815568 0.8666694 -0.2073139) (0.005284205 0.6102022 0.5641543 0.2456004 -0.3815568 0.8666694 -0.2073139) (-0.05282244 0.7000778 0.4777129 0.2456004 -0.3815568 0.8666694 -0.2073139) (-0.1398331 0.6115471 0.5303653 0.2456004 -0.3815568 0.8666694 -0.2073139) (-0.2800787 0.6128476 0.4977118 0.2456004 -0.3815568 0.8666694 -0.2073139) (-0.3290579 0.7096911 0.4076409 0.2456004 -0.3815568 0.8666694 -0.2073139) (-0.4203247 0.6141474 0.4650568 0.2456004 -0.3815568 0.8666694 -0.2073139) (-0.4699821 0.7125645 0.3735498 0.2456004 -0.3815568 0.8666694 -0.2073139) (-0.5595961 0.6154382 0.4326304 0.2456004 -0.3815568 0.8666694 -0.2073139) (-0.6155416 0.7115626 0.3415772 0.2456004 -0.3815568 0.8666694 -0.2073139) (-0.7086056 0.6168192 0.3979355 0.2456004 -0.3815568 0.8666694 -0.2073139)) 2 mtof ':(((5 0) (6 1)) -1) trans:((-0.2589236 1.210738 -0.337001 -0.03800089 -5.576015E-05 0.04860498 -0.998095)) 3 speaker ~:(0|0|f) paint:((0.09019608 0.07058824 0.07058824)) trans:((-0.6502693 1.401934 -0.3189504 -0.4165148 0.352209 0.6502236 -0.5288418)) 4 s_mul ~:(0|-1|s 0|-1|s) trans:((-0.6632866 1.40166 -0.3125175 -0.2829762 0.4663264 0.448428 -0.7080796)) 5 osc wave:sin phase:0.530492587464052 ~:(1046.5022277832|1|s) trans:((-0.5718683 1.399912 -0.3530104 0.4585637 0.29539 -0.6957892 -0.4672706)) 6 decay ~:(0|-1|s 0.07|-2|s) d_knob:(1|-1|s) paint:((0.7843138 0.1098039 0.3254902)) trans:((-0.6094323 1.355838 -0.312434 0.542789 0.6392823 0.3457043 -0.4209358)) 7 ball trans:((0.2405415 0.7618859 0.9006065 -0.8704847 -0.2647793 -0.155411 0.3847023)) 8 rangedfor d_knob:(3|0|s) ':(((9 0) (10 0)) -1) trans:((0.7586451 1.135138 0.3364437 0.2464233 0.3227601 -0.5204433 -0.7511593)) 9 e_mul reversed:False ~:(0.1|-2|s) ':(((0 1)) -1) trans:((0.5342205 1.21022 0.01027537 0.227635 -0.7368367 -0.602459 -0.2056631)) 10 list count:3 ~:(0|0|s 4|0|s 7|0|s) ':(((11 0)) -1) trans:((0.686117 1.009206 0.2796896 0.5587982 -0.3527675 0.1998733 0.7234297)) 11 e_add reversed:False ~:(77|0|s) ':(((0 2)) -1) trans:((0.4599091 1.099365 -0.02668798 -0.04907702 -0.9488091 0.07942068 -0.3017367)) 12 pass ':(((11 1) (8 1)) -1) paint:((0.64592 0.5 0.5)) trans:((0.827071 1.258607 0.4133459 -0.1800925 -0.2696072 -0.04779455 0.9447721)) 13 txt txt:""Time from now\n at wich\nthe event\nwill fire"" syntaxcolor:False extend:(0.01720606) paint:((0 0 0.2115224)) trans:((0.2883442 1.2292 -0.1664401 0.6679328 -0.7159253 0.1882514 -0.07666904)) 14 txt txt:""speed of\nthe internal clock"" syntaxcolor:False extend:(0.01659981) paint:((0 0 0.2115224)) trans:((0.0223836 1.069988 -0.2395608 0.6643528 -0.7282987 0.1664123 -0.0228752)) 15 txt txt:""inserts event\ninto queue"" syntaxcolor:False extend:(0.01523575) paint:((0 0 0.2115224)) trans:((0.2910754 1.038193 -0.1216776 0.6704644 -0.7068466 0.2095653 -0.0832333)) 16 txt txt:""change to 3\nfor minor chord"" syntaxcolor:False extend:(0.01778046) paint:((0.64592 0.5 0.5)) trans:((0.6101299 0.8935392 0.3122641 0.5910267 -0.6790621 0.390588 -0.1923621)) 17 txt txt:""->"" syntaxcolor:False extend:(0.03920328) paint:((0.64592 0.5 0.5)) trans:((0.6116543 0.9384398 0.2846043 -0.1695885 0.8353499 -0.2513995 0.4585069)) 18 txt txt:""time between notes"" syntaxcolor:False extend:(0.0161892) paint:((0.64592 0.5 0.5)) trans:((0.5981387 1.247455 0.07062745 0.6816542 -0.6473432 0.2179827 -0.2622554)) 19 txt txt:""output"" syntaxcolor:False extend:(0.03000667) paint:((0 0 0.2115224)) trans:((-0.0305846 1.182344 -0.2886502 0.677753 -0.721036 0.1361676 -0.04708018)) 21 coloroven ~:(0|-1|f 0|-1|f 0.211522359178115|-1|f) paint:((0 0 0.2115224)) trans:((-0.6693962 0.6600089 1.956897 -0.1769715 -0.3817565 -0.707435 0.5678723)) 22 octopus anchor:False paint:((0 0 0.1827388)) grab:(((24 0))) trans:((0.3650228 0.9300061 -0.09513794 -0.533188 -0.4839686 0.6936839 -0.01695774)) 23 octopus anchor:False paint:((0 0 0.1827388)) grab:(((22 0) (25 0))) trans:((-0.2763683 0.948967 -0.3300856 -0.08253735 -0.2941165 0.9361752 0.1739511)) 24 octopus anchor:False paint:((0.09803922 0.1137255 0.1294118)) grab:() trans:((0.4584695 1.393788 -0.2144812 -0.3655238 -0.6643687 0.6510504 -0.03376761)) 25 octopus anchor:False paint:((0.09803922 0.1137255 0.1294118)) grab:(((24 0))) trans:((-0.1307553 1.400683 -0.394539 -0.1984302 -0.6492272 0.7342011 -0.008844743)) 26 ball trans:((-0.4124975 0.9157405 0.2889814 0.1471899 -0.4936376 0.8185214 0.2543225)) 27 ball trans:((-0.4336835 0.7803216 0.8117794 -0.06856435 -0.150604 0.9666218 -0.1956007)) 28 txt txt:""delayq"" syntaxcolor:True extend:(0.1037184) paint:((0 0 0.2115224)) trans:((0.4140156 1.525098 -0.252387 0.6974569 -0.695968 0.07982547 -0.1510311)) }