[Cs-dev] no RT with empty score
Date | 2012-03-16 14:41 |
From | Tito Latini |
Subject | [Cs-dev] no RT with empty score |
Attachments | None |
Date | 2012-03-16 15:20 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] no RT with empty score |
can you explain more? what has sr and ksamps to do with it? > When the score is empty, this code in scsort.c:71 > > if (m==0) corfile_puts("f0 2147483647.0\ne\n", csound->scstr); > > works only with sr=1 and ksmps=1. It is not possible to correct it > because `csound->esr' is DFLT_SR and `csound->ksmps' is DFLT_KSMPS > > 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 |
Date | 2012-03-16 15:21 |
From | Tito Latini |
Subject | Re: [Cs-dev] no RT with empty score |
Attachments | None |
Date | 2012-03-16 15:38 |
From | Tito Latini |
Subject | Re: [Cs-dev] no RT with empty score |
Attachments | None |
Date | 2012-03-16 16:01 |
From | Tito Latini |
Subject | Re: [Cs-dev] no RT with empty score |
Attachments | None |
Date | 2012-03-16 16:02 |
From | Steven Yi |
Subject | Re: [Cs-dev] no RT with empty score |
Seems then just needs to calculate the sr/ksmps and use that value with an sprintf to generate the score, yes? On Fri, Mar 16, 2012 at 3:38 PM, Tito Latini |
Date | 2012-03-16 16:03 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] no RT with empty score |
Clearly we need a minor change to the score language to introduce say a z statement that means "add a z to the score some time later" > And if no-beat-mode (default), it also depends on the t-statement. > For example > > sr = 44100 > ksmps = 10 > > t0 60 > f0 486957 > > works but no RT with > > t0 59 > f0 486957 > > 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 |
Date | 2012-03-16 16:31 |
From | Steven Yi |
Subject | Re: [Cs-dev] no RT with empty score |
I couldn't find previous emails (just getting back into swing of things after semi-holiday). I assume the issue is that sr and ksmps hasn't been set yet as orchestra has only been parsed but not run. Could we use csound->tran_sr and csound->tran_ksmps? Or perhaps, the better thing is to treat these specially and set esr and ksmps after an orch parse but before running? On Fri, Mar 16, 2012 at 4:01 PM, Tito Latini |
Date | 2012-03-16 16:32 |
From | Tito Latini |
Subject | Re: [Cs-dev] no RT with empty score |
Attachments | None |
Date | 2012-03-16 16:34 |
From | Tito Latini |
Subject | Re: [Cs-dev] no RT with empty score |
Attachments | None |
Date | 2012-03-16 16:39 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] no RT with empty score |
I thought that scores were parsed before the orchestra was parsed? Should look at the code but it is getting dark... If I am right we could change the order... > I couldn't find previous emails (just getting back into swing of > things after semi-holiday). I assume the issue is that sr and ksmps > hasn't been set yet as orchestra has only been parsed but not run. > Could we use csound->tran_sr and csound->tran_ksmps? Or perhaps, the > better thing is to treat these specially and set esr and ksmps after > an orch parse but before running? > > > > On Fri, Mar 16, 2012 at 4:01 PM, Tito Latini |
Date | 2012-03-16 16:42 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] no RT with empty score |
We also need to increase the time limit, as discussed here before. I had the impression this was update to an 64bit integer, as we discussed in the list. Victor On 16 Mar 2012, at 16:01, Tito Latini wrote: > No, because `csound->esr' is DFLT_SR and `csound->ksmps' is DFLT_KSMPS > and it also depends on the t-statement (see the prev examples). > > On Fri, Mar 16, 2012 at 04:02:13PM +0000, Steven Yi wrote: >> Seems then just needs to calculate the sr/ksmps and use that value >> with an sprintf to generate the score, yes? >> >> On Fri, Mar 16, 2012 at 3:38 PM, Tito Latini |
Date | 2012-03-16 16:46 |
From | Tito Latini |
Subject | Re: [Cs-dev] no RT with empty score |
Attachments | None |
Date | 2012-03-16 16:56 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] no RT with empty score |
OK for me; remember we freeze code today > It works; is it good for you ? > > if (m==0) { > char *f_stmt = (char*)malloc(32*sizeof(char)); > sprintf(f_stmt, "f0 %d\ne\n", > (int)((2147483648 / csound->tran_sr) * csound->tran_ksmps)); > corfile_puts(f_stmt, csound->scstr); > free(f_stmt); > } > else { > corfile_puts("e\n", csound->scstr); > } > > On Fri, Mar 16, 2012 at 04:39:00PM -0000, jpff@cs.bath.ac.uk wrote: >> I thought that scores were parsed before the orchestra was parsed? >> Should >> look at the code but it is getting dark... >> >> If I am right we could change the order... >> >> >> > I couldn't find previous emails (just getting back into swing of >> > things after semi-holiday). I assume the issue is that sr and ksmps >> > hasn't been set yet as orchestra has only been parsed but not run. >> > Could we use csound->tran_sr and csound->tran_ksmps? Or perhaps, the >> > better thing is to treat these specially and set esr and ksmps after >> > an orch parse but before running? >> > >> > >> > >> > On Fri, Mar 16, 2012 at 4:01 PM, Tito Latini |
Date | 2012-03-16 16:59 |
From | Tito Latini |
Subject | Re: [Cs-dev] no RT with empty score |
Attachments | None |
Date | 2012-03-16 17:02 |
From | Steven Yi |
Subject | Re: [Cs-dev] no RT with empty score |
Seems fine to me too, but I haven't thought through all the details. I think the no score option is not being used a whole lot yet, plus one of the things in csound6 I'd like to look at is making this work without adding a note (having a true "run until explicitly told to turn off" method), so I think this is a good step forward. Thanks! steven On Fri, Mar 16, 2012 at 4:56 PM, |
Date | 2012-03-16 17:11 |
From | Tito Latini |
Subject | Re: [Cs-dev] no RT with empty score |
Attachments | None |
Date | 2012-03-16 17:58 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] no RT with empty score |
Is there any reason why we can't change it? I think 32-bit is too short a range for this. Victor On 16 Mar 2012, at 17:11, Tito Latini wrote: >> We also need to increase the time limit, as discussed here before. I had the impression this was update to an 64bit integer, as >> we discussed in the list. > > No, it has remained 32bit > > ------------------------------------------------------------------------------ > 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 |
Date | 2012-03-16 18:11 |
From | Tito Latini |
Subject | Re: [Cs-dev] no RT with empty score |
Attachments | None |
Date | 2012-03-16 18:26 |
From | Victor Lazzarini |
Subject | [Cs-dev] Time counting bug, should we delay the release? |
This might be significant enough to delay a release. How long would you need? I would class the current 32bit time counting as a bug (it has caused some exsiting code to crash), so I think this needs to be fixed in this release. Regards Victor On 16 Mar 2012, at 18:11, Tito Latini wrote: > There was a discussion about 32 vs 64 and I have not apply the change. > `twarp' requires a modify and it is too late now to make the tests. > > tito > > On Fri, Mar 16, 2012 at 05:58:00PM +0000, Victor Lazzarini wrote: >> Is there any reason why we can't change it? I think 32-bit is too short a range for this. >> >> Victor >> On 16 Mar 2012, at 17:11, Tito Latini wrote: >> >>>> We also need to increase the time limit, as discussed here before. I had the impression this was update to an 64bit integer, as >>>> we discussed in the list. >>> >>> No, it has remained 32bit >>> >>> ------------------------------------------------------------------------------ >>> 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 >> 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 |
Date | 2012-03-16 18:33 |
From | Tito Latini |
Subject | Re: [Cs-dev] Time counting bug, should we delay the release? |
Attachments | None |
Date | 2012-03-16 18:43 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Time counting bug, should we delay the release? |
Well, what does everyone think? I vote for delaying it for a day until the all-clear from Tito. Victor On 16 Mar 2012, at 18:33, Tito Latini wrote: > Tomorrow I can write the code and test it if 64bit is not a problem. > > On Fri, Mar 16, 2012 at 06:26:09PM +0000, Victor Lazzarini wrote: >> This might be significant enough to delay a release. How long would you need? I would class the current 32bit time counting as a bug (it has caused some exsiting code to crash), so I think this needs to be fixed in this release. >> >> Regards >> >> Victor >> On 16 Mar 2012, at 18:11, Tito Latini wrote: >> >>> There was a discussion about 32 vs 64 and I have not apply the change. >>> `twarp' requires a modify and it is too late now to make the tests. >>> >>> tito >>> >>> On Fri, Mar 16, 2012 at 05:58:00PM +0000, Victor Lazzarini wrote: >>>> Is there any reason why we can't change it? I think 32-bit is too short a range for this. >>>> >>>> Victor >>>> On 16 Mar 2012, at 17:11, Tito Latini wrote: >>>> >>>>>> We also need to increase the time limit, as discussed here before. I had the impression this was update to an 64bit integer, as >>>>>> we discussed in the list. >>>>> >>>>> No, it has remained 32bit >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> 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 >>>> 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 >> 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 |
Date | 2012-03-16 19:25 |
From | Steven Yi |
Subject | Re: [Cs-dev] Time counting bug, should we delay the release? |
I'm fine with delaying a day. Thanks! On Fri, Mar 16, 2012 at 6:43 PM, Victor Lazzarini |
Date | 2012-03-16 20:44 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Time counting bug, should we delay the release? |
John? On 16 Mar 2012, at 19:25, Steven Yi wrote: > I'm fine with delaying a day. Thanks! > > On Fri, Mar 16, 2012 at 6:43 PM, Victor Lazzarini > |
Date | 2012-03-16 21:31 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Time counting bug, should we delay the release? |
> John? > On 16 Mar 2012, at 19:25, Steven Yi wrote: > >> I'm fine with delaying a day. Thanks! >> OK' ; will give me time to improve csbeats.... ------------------------------------------------------------------------------ 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 |
Date | 2012-03-16 22:42 |
From | Tito Latini |
Subject | Re: [Cs-dev] Time counting bug, should we delay the release? |
Attachments | None |