| Fixed in GIT.
Victor
On 16 Jul 2011, at 17:57, Victor Lazzarini wrote:
> We'll need to have a look at this. Normally tables will have one
> extra point, which is generally unaccessible (it's the famous guard
> point). Maybe there is a little issue with the generation of the
> guard point in the case of deferred-length tables. I'll have a look
> next week, thanks for reporting the issue and sorry for not catching
> this at the first time you mentioned it.
>
> Victor
>
> On 14 Jul 2011, at 23:24, Casey Mongoven wrote:
>
>> In November 2007, I made a post about GEN01 not reading the last
>> sample when
>> deferring length (by using 0 as length). No one responded to that
>> post. Now
>> I have come across this issue again, and realize now this must be a
>> bug.
>> Csound says that it is deferring length to 7 in the following
>> example, yet
>> when I check table size it is 6 and I can't access the last value
>> either.
>> When I enter the the table size, then the last sample is included.
>> Here is
>> the code illustrating the problem:
>>
>> (see full files at http://misc.caseymongoven.com/a.csd and
>> http://misc.caseymongoven.com/a.aiff)
>>
>>
>>
>>
>>
>>
>> sr = 96000
>> kr = 96000
>> ksmps = 1
>> nchnls = 2
>>
>> ; THIS FILE HAS 7 POINTS, AS CONFIRMED BY "fable 21: 7 points, max
>> 1.000"
>> AND "defer length 7" IN CSOUND
>> gi_wavetable ftgen 21, 0, 0, 1, "a.aiff", 0, 0, 0
>>
>> instr 1
>>
>> ; THE FIRST 6 VALUES CAN BE ACCESSED
>> i_v1 tab_i 0, gi_wavetable
>> print i_v1
>> i_v2 tab_i 1, gi_wavetable
>> print i_v2
>> i_v3 tab_i 2, gi_wavetable
>> print i_v3
>> i_v4 tab_i 3, gi_wavetable
>> print i_v4
>> i_v5 tab_i 4, gi_wavetable
>> print i_v5
>> i_v6 tab_i 5, gi_wavetable
>> print i_v6
>>
>>
>> ; THIS 7TH VALUE WILL THROW AN ERROR "PERF ERROR: tab_i off end" IF
>> INCLUDED
>> ;i_v7 tab_i 6, gi_wavetable
>> ;print i_v7
>>
>> ; THIS SHOWS THE TABLE LENGTH AS BEING "6" AS WELL
>> i_length tableng gi_wavetable
>> print i_length
>>
>> endin
>>
>>
>>
>>
>> i1 0 1
>>
>>
>>
>>
>> Any ideas or remedies?
>>
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/an-old-problem-bug-in-GEN01-revisited-tp4588577p4588577.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> "unsubscribe csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body
> "unsubscribe csound"
>
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|