Csound Csound-dev Csound-tekno Search About

[Cs-dev] score 64bit

Date2012-03-17 16:41
FromTito Latini
Subject[Cs-dev] score 64bit
AttachmentsNone  

Date2012-03-17 19:33
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] score 64bit
Thanks Tito.  I have changed version to 5.17

Did not get time to add p fields to csbeats -- code half written but no
time today to finish and test.

Anyone object to tagging?

==John ff

> Tested on amd64 and pentium3 with float and double samples.
>
> The INF csound macro is 8.0e11 (25367 years). I have chosen this value
> because it works with
>
>   sr = 192000
>   ksmps = 1
>   tempo = 1
>
> Therefore, no problems with
>
>   t0 1
>   f0 $INF
>
> Likewise, if the score is empty, add "f0 800000000000.0".
>
> I have not modified the INF macro in the C language
> (unused now but it can be useful in the calculations also with int32)
>
> This line in twarp.c can cause a segvault with score 32bit and double
> samples, if the time is large and/or the tempo is less than 60.
>
>   tp->betbas = FL(999999.9);                /* and cap with large betval
> */
>
> I have replaced it for 64bit with
>
>   tp->betbas = FL(9223372036854775807.0);   /* and cap with large betval
> */
>
> Applied in git.
>
> tito
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-03-17 19:52
FromVictor Lazzarini
SubjectRe: [Cs-dev] score 64bit
No, please go ahead.
On 17 Mar 2012, at 19:33, jpff@cs.bath.ac.uk wrote:

> Thanks Tito.  I have changed version to 5.17
> 
> Did not get time to add p fields to csbeats -- code half written but no
> time today to finish and test.
> 
> Anyone object to tagging?
> 
> ==John ff
> 
>> Tested on amd64 and pentium3 with float and double samples.
>> 
>> The INF csound macro is 8.0e11 (25367 years). I have chosen this value
>> because it works with
>> 
>>  sr = 192000
>>  ksmps = 1
>>  tempo = 1
>> 
>> Therefore, no problems with
>> 
>>  t0 1
>>  f0 $INF
>> 
>> Likewise, if the score is empty, add "f0 800000000000.0".
>> 
>> I have not modified the INF macro in the C language
>> (unused now but it can be useful in the calculations also with int32)
>> 
>> This line in twarp.c can cause a segvault with score 32bit and double
>> samples, if the time is large and/or the tempo is less than 60.
>> 
>>  tp->betbas = FL(999999.9);                /* and cap with large betval
>> */
>> 
>> I have replaced it for 64bit with
>> 
>>  tp->betbas = FL(9223372036854775807.0);   /* and cap with large betval
>> */
>> 
>> Applied in git.
>> 
>> tito
>> 
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> 
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here 
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> 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




------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net