[Cs-dev] time counting overflow
Date | 2012-01-22 12:24 |
From | Victor Lazzarini |
Subject | [Cs-dev] time counting overflow |
I raised this issue before here, and I think we need to revisit it. Currently, how long can a performance go without the time counting overflows? My original idea was that it was what Tito just reported to the other list, or floor((2^31 / sr) * ksmps), which is not very much at all. However, someone (jpff?) mentioned seven years or something else, which made my question irrelevant. So what is it? I think we might need to address this issue. Regards Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2012-01-22 12:59 |
From | Tito Latini |
Subject | Re: [Cs-dev] time counting overflow |
Attachments | None |
Date | 2012-01-22 13:15 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] time counting overflow |
yes, but I am thinking here of an installation running for ten years. On 22 Jan 2012, at 12:59, Tito Latini wrote: > With sr=44100 and ksmps=1 I can play more than 13 hours. > In a 24h-rave, after 13h, I can stop csound (possible coffee) > and restart it and nobody will realize. > > I think that the problem rises when sr=192000 and ksmps=1, > only a 3h-party in the hifi-world. > > tito > > On Sun, Jan 22, 2012 at 12:24:38PM +0000, Victor Lazzarini wrote: >> I raised this issue before here, and I think we need to revisit it. Currently, how long can a performance go without the time counting overflows? >> My original idea was that it was what Tito just reported to the other list, or floor((2^31 / sr) * ksmps), which is not very much at all. >> >> However, someone (jpff?) mentioned seven years or something else, which made my question irrelevant. So what is it? I think we might need to address this issue. >> >> Regards >> >> Dr Victor Lazzarini >> Senior Lecturer >> Dept. of Music >> NUI Maynooth Ireland >> tel.: +353 1 708 3545 >> Victor dot Lazzarini AT nuim dot ie >> >> >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Csound-devel mailing list >> Csound-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/csound-devel > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2012-01-22 13:16 |
From | peiman khosravi |
Subject | Re: [Cs-dev] time counting overflow |
Attachments | None None |
hahaha. Well the hifi-world is very civilised anyway, everyone goes home straight after the concert! We should organise a Csound rave one day. Maybe at the next conference?? P On 22 January 2012 12:59, Tito Latini <tito.01beta@gmail.com> wrote: With sr=44100 and ksmps=1 I can play more than 13 hours. |
Date | 2012-01-22 13:18 |
From | Tito Latini |
Subject | Re: [Cs-dev] time counting overflow |
Attachments | None |
Date | 2012-01-22 13:29 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] time counting overflow |
> I raised this issue before here, and I think we need to revisit it. > Currently, how long can a performance go without the time counting > overflows? > My original idea was that it was what Tito just reported to the other > list, or floor((2^31 / sr) * ksmps), which is not very much at all. > > However, someone (jpff?) mentioned seven years or something else, which > made my question irrelevant. So what is it? I think we might need to > address this issue. > I think thi si smy fault. Csound used to count time in beats (normally secnds) and this caused problems with rounding -- cannot remember the detail but it was a nasty bug. I changed the internal clock to count in samples which fixed the bug and similar problems. But on a 32bit integer this introduces the current problems. We could count time in int64 which might be OK on a 64bit machine. Or we need to do some serious rethinking ==John ff ` ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2012-01-22 13:31 |
From | Tito Latini |
Subject | Re: [Cs-dev] time counting overflow |
Attachments | None |
Date | 2012-01-22 18:34 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] time counting overflow |
A 64bit unsigned number should given us enough for over a million years. Victor On 22 Jan 2012, at 13:29, jpff@cs.bath.ac.uk wrote: >> I raised this issue before here, and I think we need to revisit it. >> Currently, how long can a performance go without the time counting >> overflows? >> My original idea was that it was what Tito just reported to the other >> list, or floor((2^31 / sr) * ksmps), which is not very much at all. >> >> However, someone (jpff?) mentioned seven years or something else, which >> made my question irrelevant. So what is it? I think we might need to >> address this issue. >> > > I think thi si smy fault. Csound used to count time in beats (normally > secnds) and this caused problems with rounding -- cannot remember the > detail but it was a nasty bug. I changed the internal clock to count in > samples which fixed the bug and similar problems. But on a 32bit integer > this introduces the current problems. > > We could count time in int64 which might be OK on a 64bit machine. Or we > need to do some serious rethinking > > ==John ff > ` > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |