lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Video generation on linux systems: Note and rests change color


From: David Wright
Subject: Re: Video generation on linux systems: Note and rests change color
Date: Wed, 15 Nov 2017 12:30:58 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed 15 Nov 2017 at 07:43:53 (-0600), Karlin High wrote:
> On 11/15/2017 2:36 AM, Christian Alpen wrote:
> >The only thing: In both cases it takes a rather long time to
> >generate the files.
> 
> In my case, I found that the script calls for usleep, but debian and
> ubuntu have sleepenh instead. And it seems that usleep 250 is
> equivalent to sleepenh 0.250; at first this left me wondering what
> the computer could possibly be doing, sitting there waiting with no
> system resources maxed.

I don't understand this. sleepenh is *not* a replacement for usleep.
Gnu systems use *their* sleep command which takes non-integer values.
As expected, sleep uses seconds, usleep uses microseconds (where
u is the usual replacement for ยต) and nanosleep uses nanoseconds
(but the last isn't a command, obviously). Perhaps someone didn't
realise that.

sleepenh is designed for interval timers and is really more of a
wait. It allows an amount of "work" to be done between calls, and
the sleep time is computed each time in such a way as to wait for
the expiry of the desired interval, without the accumulation of
rounding errors. And should you overrun with the amount of "work"
done, it will effectively try to catch up.

Cheers,
David.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]