Csound Csound-dev Csound-tekno Search About

Re: [Csnd] GEN16 strangeness

Date2012-01-16 21:01
From"Art Hunkins"
SubjectRe: [Csnd] GEN16 strangeness
Thanks for testing, Steven.

I gather you were testing on Windows (sorry, my lack of tech talk is 
showing)?

The git changes dealt only with tab and possible "off end of table" errors. 
I used to table opcode in my example to eliminate this issue.

You apparently saw no problem with 8193. If you were indeed testing on 
Windows, I must have some sort of computer setup or version conflict problem 
then. If so, that could be fortunate, as I may not have to change any code 
after all.

Has anyone tried on a Mac?

Art Hunkins

----- Original Message ----- 
From: "Steven Yi" 
To: 
Sent: Monday, January 16, 2012 3:09 PM
Subject: Re: [Csnd] GEN16 strangeness


Hi Art,

I tested this using the f3 that has 8193 and it is working here.  I'm
using the latest from git, compiled for doubles and i386/x86_64.  I
saw changes in git that I assume fix the issue.

steven

On Mon, Jan 16, 2012 at 2:13 PM, Art Hunkins  wrote:
> With respect to GEN16, I've discovered that it only likes extended guard
> point tables of 4097 and lower. It gives segmentation (or invalid pointer)
> errors with tables of 8193 or higher.
>
> Interestingly enough, specify a negative table length, and it's fine. 
> (This
> allows for tables of arbitrary length.) For example: 8193 won't 
> work, -8193
> will.
>
> This is true for both float and double precision versions (in Windows).
>
> Below is a simple test. Could others confirm on various platforms?
>
>
> Art Hunkins
>
>
> 
> 
>
> -odac --displays -b128 -B2048
>
> 
> 
>
> sr = 44100
> ksmps = 100
> nchnls = 2
>
> instr 1
>
> k1 linseg 0, 4, 1, 2, 1, 4, 0
> k2 table k1, 3, 1
> aout poscil 10000 * k2, 400, 2
> outs aout, aout
>
> endin
>
> 
> 
>
>
> f2 0 16384 10 1
> f3 0 4097 16 0 4097 .7 1; works
> ;f3 0 8193 16 0 8193 .7 1; doesn't work (segfault or invalid pointer)
> ;f3 0 -8193 16 0 8193 .7 1; works
>
> f4 0 8193 9 .25 1 0
> i1 0 10
>
> 
> 
>
>
> ----- Original Message ----- From: 
> To: 
> Sent: Monday, January 16, 2012 3:06 AM
>
> Subject: Re: [Csnd] GEN16 strangeness
>
>
>> I do not get a crash but i do see
>> PERF ERROR in instr 1: tab off end
>>
>> Using doubles and code adjusted that way
>>
>> ==John ff
>>
>>
>>
>>
>> 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"
>>
>
>
>
> 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"
>


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"

= 



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"