[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] Timers
- To: "sc-dev@xxxxxxxxxxxxxxxx" <sc-dev@xxxxxxxxxxxxxxxx>
- Subject: Re: [sc-dev] Timers
- From: Jonatan Liljedahl <lijon@xxxxxxxxxxxx>
- Date: Sun, 30 Dec 2012 00:11:53 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=dbArsCLy3AWPzWGWjtga4AFH/3uc2SwRdksVBt+fP94=; b=cPJduc1Cy8xcRoL6xcCFDe02EX0otLwssiSkIoaWxGP+LP031gKfU2MnlEcBSfzBbl JOvtz0W/f5MN7ioHFdz1lMfSCgnR0jfjPdz9XxOfvDGYWug9FRUvlFeQzn9xDW5D0q+y 28TTW9kNURZ1jvHJJJEkekFdWKirXqMiZSd7cjmAIiKgor2yGeuJ/e2NZ+AplixSDL0e EfOLDWru1ZjInSyyi68vW/OFnOJuO1hkC8galynfIG1PynqGGtS5Wf2+joGjCwJSHT1/ 1gEZWzfRayz/5FJJgUu1dwR7RtAy6gyGnZXiT3arpkt73xNCyolcLc+tM8/HicQECUl0 +qBQ==
- In-reply-to: <CAAuBga2A+bd_AWTWiMtux=FZ_r+mOOo46bzwXT7xKN1dhz9pDw@mail.gmail.com>
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- References: <CALfiFhD=yUbMuz37ddcuQW6t7q3siEcEHj+f09m2ONw=t0DrcA@mail.gmail.com> <CAAuBga2A+bd_AWTWiMtux=FZ_r+mOOo46bzwXT7xKN1dhz9pDw@mail.gmail.com>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
SkipJack has a few differences:
- the name of the class has nothing to do with "timer"
- survives cmdPeriod (as you said)
- most importantly, it always repeats, no one-shot timers
Also it's rather complex compared to a simple lightweight timer, due
to the cmdperiod-survival and storing skipjacks by name, etc. I think
SkipJack has a clear and useful purpose (periodic timer that survives
cmdPeriod), and that it would be nice with a separate simple and clear
timer class similar or equal to the one I posted, instead of extending
SkipJack.
On Sat, Dec 29, 2012 at 9:31 PM, Jakob Leben <jakob.leben@xxxxxxxxx> wrote:
> On Sat, Dec 29, 2012 at 4:54 PM, Jonatan Liljedahl <lijon@xxxxxxxxxxxx> wrote:
>> sclang does not have Timers, in the usual sense of timers in other
>> languages, like NSTimer in obj-c.
>>
>> There is someClock.sched, but those are not cancelable.
>
> Well, there is SkipJack. It survives CmdPeriod, but could easily be
> extended to not...
>
> _______________________________________________
> sc-dev mailing list
>
> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: https://listarc.bham.ac.uk/marchives/sc-dev/
> search: https://listarc.bham.ac.uk/lists/sc-dev/search/
--
/Jonatan
http://kymatica.com
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/