Csound Csound-dev Csound-tekno Search About

[Cs-dev] gen28 problem

Date2008-08-15 17:07
FromDave Phillips
Subject[Cs-dev] gen28 problem
Greetings,

I'm testing the space opcode and having some trouble. When I run my test 
file with Csound 5.08 (doubles) the playback fails with this message:

INIT ERROR in instr 1: deferred-size ftable 1.000000 illegal here

If I replace the gen28 size parameter with anything other than 0 it 
generates another error telling me that the field must be zero. So it 
doesn't work if it's zero, and it doesn't work if it's non-zero.

I'm still refining my example, but it's not significantly different from 
the example in the manual. Alas, that example generates some errors of 
its own. p10 for ktime is undefined, instr 99 lacks an endin, and the 
space opcode produces an error regarding insufficient parameters.

My orc looks like this:

instr 1
kamp = p4
kfreq = p5
ifn = p6
aosc oscili kamp,kfreq,ifn
kenv linseg 0,p3*.50,1,p3*.50,0
asig = aosc*kenv
ktime              line  0, p3, 5
a1, a2, a3, a4     space asig, 2, ktime, 0, 0, 0
outq a1, a2, a3, a4
endin


The score is simple:

f1 0 8192 10 1 0 .9 0 0 .7 0 0 0 .4  0 0 0 0 .01
f2 0 0 28 "/home/dlphilp/move"
i1 0 60 5000 220 1
e


The move file was generated by SoundScape :

0.0 -1.66 0.2
4.0 -0.48 1.6
11.4 0.54 0.54
17.3 -0.04 0.06
21.5 -0.42 0.58
24.8 -0.68 -1.43
40.9 1.53 1.1
51.2 0.45 -1.79
60.0 1.8 0.28


Is there anything obviously amiss with my files ? Or is gen28 broken ?

Best,

dp



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-08-15 17:22
FromVictor Lazzarini
SubjectRe: [Cs-dev] gen28 problem
Looking at the code, it does not seem to allow non-power-of-two
deferred tables (the function used to find the table is
FTFind() not FTnp2Find()  . Perhaps the example is wrong?
I reckon the code might be changed to support this (I don't
see any need for power-of-two-only code, as the table
indexing seems to be float-maths.)


Victor

At 17:07 15/08/2008, you wrote:
>Greetings,
>
>I'm testing the space opcode and having some trouble. When I run my test
>file with Csound 5.08 (doubles) the playback fails with this message:
>
>INIT ERROR in instr 1: deferred-size ftable 1.000000 illegal here
>
>If I replace the gen28 size parameter with anything other than 0 it
>generates another error telling me that the field must be zero. So it
>doesn't work if it's zero, and it doesn't work if it's non-zero.
>
>I'm still refining my example, but it's not significantly different from
>the example in the manual. Alas, that example generates some errors of
>its own. p10 for ktime is undefined, instr 99 lacks an endin, and the
>space opcode produces an error regarding insufficient parameters.
>
>My orc looks like this:
>
>instr 1
>kamp = p4
>kfreq = p5
>ifn = p6
>aosc oscili kamp,kfreq,ifn
>kenv linseg 0,p3*.50,1,p3*.50,0
>asig = aosc*kenv
>ktime              line  0, p3, 5
>a1, a2, a3, a4     space asig, 2, ktime, 0, 0, 0
>outq a1, a2, a3, a4
>endin
>
>
>The score is simple:
>
>f1 0 8192 10 1 0 .9 0 0 .7 0 0 0 .4  0 0 0 0 .01
>f2 0 0 28 "/home/dlphilp/move"
>i1 0 60 5000 220 1
>e
>
>
>The move file was generated by SoundScape :
>
>0.0 -1.66 0.2
>4.0 -0.48 1.6
>11.4 0.54 0.54
>17.3 -0.04 0.06
>21.5 -0.42 0.58
>24.8 -0.68 -1.43
>40.9 1.53 1.1
>51.2 0.45 -1.79
>60.0 1.8 0.28
>
>
>Is there anything obviously amiss with my files ? Or is gen28 broken ?
>
>Best,
>
>dp
>
>
>
>-------------------------------------------------------------------------
>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>Build the coolest Linux based applications with Moblin SDK & win great prizes
>Grand prize is a trip for two to an Open Source event anywhere in the world
>http://moblin-contest.org/redirect.php?banner_id=100&url=/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-08-15 17:42
Fromjpff
SubjectRe: [Cs-dev] gen28 problem
What I do not understand at the present is the references to table 1 as 
deferred.  But you have deferred table 2 which is correct -- code requires 
size of zero.
==John

On Fri, 15 Aug 2008, Dave Phillips wrote:

> Greetings,
> 
> I'm testing the space opcode and having some trouble. When I run my test 
> file with Csound 5.08 (doubles) the playback fails with this message:
> 
> INIT ERROR in instr 1: deferred-size ftable 1.000000 illegal here
> 
> If I replace the gen28 size parameter with anything other than 0 it 
> generates another error telling me that the field must be zero. So it 
> doesn't work if it's zero, and it doesn't work if it's non-zero.
> 
> I'm still refining my example, but it's not significantly different from 
> the example in the manual. Alas, that example generates some errors of 
> its own. p10 for ktime is undefined, instr 99 lacks an endin, and the 
> space opcode produces an error regarding insufficient parameters.
> 
> My orc looks like this:
> 
> instr 1
> kamp = p4
> kfreq = p5
> ifn = p6
> aosc oscili kamp,kfreq,ifn
> kenv linseg 0,p3*.50,1,p3*.50,0
> asig = aosc*kenv
> ktime              line  0, p3, 5
> a1, a2, a3, a4     space asig, 2, ktime, 0, 0, 0
> outq a1, a2, a3, a4
> endin
> 
> 
> The score is simple:
> 
> f1 0 8192 10 1 0 .9 0 0 .7 0 0 0 .4  0 0 0 0 .01
> f2 0 0 28 "/home/dlphilp/move"
> i1 0 60 5000 220 1
> e
> 
> 
> The move file was generated by SoundScape :
> 
> 0.0 -1.66 0.2
> 4.0 -0.48 1.6
> 11.4 0.54 0.54
> 17.3 -0.04 0.06
> 21.5 -0.42 0.58
> 24.8 -0.68 -1.43
> 40.9 1.53 1.1
> 51.2 0.45 -1.79
> 60.0 1.8 0.28
> 
> 
> Is there anything obviously amiss with my files ? Or is gen28 broken ?
> 
> Best,
> 
> dp
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-08-15 18:18
FromDave Phillips
SubjectRe: [Cs-dev] gen28 problem
jpff wrote:
> What I do not understand at the present is the references to table 1 as 
> deferred.  But you have deferred table 2 which is correct -- code requires 
> size of zero.
My bad, I pasted the wrong error. It should have read:

    INIT ERROR in instr 1: deferred-size ftable 2.000000 illegal here

Best,

dp



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net