Csound Csound-dev Csound-tekno Search About

[Cs-dev] lineto question, bug report?

Date2005-03-15 02:32
FromIain Duncan
Subject[Cs-dev] lineto question, bug report?
Hey folks, wondering whether anyone has much experience using lineto?

It seems like it does very odd things if the ktime value is too low, 
perhaps this has to do with control rate, dunno. If I do

k_base_fc1	lineto	k_base_fc1_read, k_base_fc1_port

and k_base_fc_port equates to 0.001 seconds when my control rate is 441, 
it sounds like the line does not happen at all, as in it just doesn't 
move period, k_base_fc1 stays where it is. It *sounds* like 
k_base_fc1_port is set at an infinitely *long* time instead of making a 
harsh jump as I would expect it to. Is this maybe a bug with lineto?

This is with Varga Csound 4.23.4.2, I can test with csound5 as well if 
there has been any bug fixes with lineto, otherwise perhaps there should 
be ... Seems to me a too small time value should be handled the same way 
as it is with any other line opcode, in that the output is just rough 
instead of totally wrong. Ie we don't get a spectacular failure if 
setting envelope segments with linseg at times that are technically too 
small for the control rate, it just makes a jump. Would be great to get 
this sorted though as it's a damn handy opcode. Would also be awesome I 
think to have multiple segment versions of lineto and tlineto, ie lineto 
equivalents of linseg and expseg. This would allow for very easy to code 
real time modulation of envelope values.

Thanks
Iain


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-15 02:41
FromIain Duncan
SubjectRe: [Cs-dev] lineto question, bug report?
Further testing reveals that lineto does indeed totally bail if given a 
time value lower than one ksmp. I guess a really simple fix for this 
would be to clamp the time value to a minimum of one ksmp. In the 
meantime I can just do this in my orchestra code, but perhaps that would 
be good to do internally as well?

Thanks
iain

Iain Duncan wrote:
> Hey folks, wondering whether anyone has much experience using lineto?
> 
> It seems like it does very odd things if the ktime value is too low, 
> perhaps this has to do with control rate, dunno. If I do
> 
> k_base_fc1    lineto    k_base_fc1_read, k_base_fc1_port
> 
> and k_base_fc_port equates to 0.001 seconds when my control rate is 441, 
> it sounds like the line does not happen at all, as in it just doesn't 
> move period, k_base_fc1 stays where it is. It *sounds* like 
> k_base_fc1_port is set at an infinitely *long* time instead of making a 
> harsh jump as I would expect it to. Is this maybe a bug with lineto?
> 
> This is with Varga Csound 4.23.4.2, I can test with csound5 as well if 
> there has been any bug fixes with lineto, otherwise perhaps there should 
> be ... Seems to me a too small time value should be handled the same way 
> as it is with any other line opcode, in that the output is just rough 
> instead of totally wrong. Ie we don't get a spectacular failure if 
> setting envelope segments with linseg at times that are technically too 
> small for the control rate, it just makes a jump. Would be great to get 
> this sorted though as it's a damn handy opcode. Would also be awesome I 
> think to have multiple segment versions of lineto and tlineto, ie lineto 
> equivalents of linseg and expseg. This would allow for very easy to code 
> real time modulation of envelope values.
> 
> Thanks
> Iain
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net