Csound Csound-dev Csound-tekno Search About

[Csnd] "line" opcode broken?

Date2008-07-16 19:31
Fromrasputin
Subject[Csnd] "line" opcode broken?
Am I missing something entirely fundamental?

kcps line 880, 1, 660, 1, 660 

(from the example program in the line documentation)

gives a "too many arguments" error.

Using three arguments seems to work OK. Is this opcode deprecated? Is the
documentation in error? ("values can pass through 2 or more specified
points")

I realize there are options (particularly linseg), but I discovered this
when trying to run old example files.

-- 
View this message in context: http://www.nabble.com/%22line%22-opcode-broken--tp18493814p18493814.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2008-07-16 19:42
Frompeiman khosravi
Subject[Csnd] Re: "line" opcode broken?
I think that's a mistake in the documentation. Line I believe only takes three arguments: first value, length, second value. 

Like: kcps linseg 880, 1, 660

However you could use lineseg instead, so just change your code to:

kcps linseg 880, 1, 660, 1, 660 

Best
Peiman


On 16 Jul 2008, at 19:31, rasputin wrote:


Am I missing something entirely fundamental?

kcps line 880, 1, 660, 1, 660 

(from the example program in the line documentation)

gives a "too many arguments" error.

Using three arguments seems to work OK. Is this opcode deprecated? Is the
documentation in error? ("values can pass through 2 or more specified
points")

I realize there are options (particularly linseg), but I discovered this
when trying to run old example files.

-- 
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2008-07-16 19:46
From"Andres Cabrera"
Subject[Csnd] Re: Re: "line" opcode broken?
AttachmentsNone  None  

Date2008-07-16 21:45
Fromrasputin
Subject[Csnd] Re: "line" opcode broken?

Andres Cabrera wrote:
> 
> Thanks. The example is wrong. I've fixed it in cvs.
> 
> Cheers,
> Andrés
> 

Thanks to everyone who answered so quickly.  And thankst to Andres for
fixing the example.

Does a bug report need to be opened against the documentation itself then,
to fix the "2 or more" phrasing? 
-- 
View this message in context: http://www.nabble.com/%22line%22-opcode-broken--tp18493814p18496258.html
Sent from the Csound - General mailing list archive at Nabble.com.



Date2008-07-16 22:46
From"Andres Cabrera"
Subject[Csnd] Re: Re: "line" opcode broken?
AttachmentsNone  None