Csound Csound-dev Csound-tekno Search About

Re: [Csnd] table indexing

Date2018-12-23 17:01
FromAndrea Strappa
SubjectRe: [Csnd] table indexing
and I tried with 16 lenght also, but the error is the same.


----- Original Message ----- 
From: "joachim heintz" 
To: 
Sent: Sunday, December 23, 2018 5:37 PM
Subject: Re: [Csnd] table indexing


>i thought this limitation has been removed since long?
> 
> 
> On 23/12/18 17:33, jpff wrote:
>> Quick read of the code suggests that table opcode requires a
>> power-of-two length table.  Will check further.... you should use te tab
>> opcode instead.
>>
>> ==John ff
>>
>>
>> On Sun, 23 Dec 2018, Andrea Strappa wrote:
>>
>>> Hi list,
>>> I wrote an alternative intonation system, performed by indexing with
>>> pchmidinn
>>> decimal part.
>>> With array it works. With table some index fails the right reading.
>>> Does not work table opcode or am I wrong something?
>>> I attach two examples.
>>> Greetings
>>> Andrea S.
>>>
>>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-12-23 17:52
Fromjpff
SubjectRe: [Csnd] table indexing
OK; that is not the problem.  I used tab_i with the same result.  Clearly 
arrays are better and more natural for this applicaion baut there is 
somwething wrong that needs fixing.  Back to mainstream debugging.....

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-12-23 18:08
Fromjpff
SubjectRe: [Csnd] table indexing
The problem is rounding.  The value of itabndx is not 1 as you assune but
0.99999999999997868

The line thar convertts this to an integer does not round in table or 
tab_i

T¬h`e `equivalent code in array access rounds.

The questuon now is wheter we can y`just att rounding, or wll that break 
things of old.

==John ff


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-12-23 19:50
Fromjpff
SubjectRe: [Csnd] table indexing
Further to rounding in table opcodes; suse iwrap=2 to get rounding -- at 
least te code says that!  tab opcodes now round by default

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here