Csound Csound-dev Csound-tekno Search About

[Cs-dev] tied notes, p1 fractional part

Date2008-05-19 14:50
FromJonatan Liljedahl
Subject[Cs-dev] tied notes, p1 fractional part
I'm still a bit confused over the fractional tag part of p1.
Is it handled internally as a string or number?
Is 1.1 the same as 1.10? Is 2 and 002 different? etc..

-- 
/Jonatan         [ http://kymatica.com ]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-05-19 14:53
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] tied notes, p1 fractional part
A number
002 is the same as 2
==John


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-05-19 15:02
FromJonatan Liljedahl
SubjectRe: [Cs-dev] tied notes, p1 fractional part
jpff@cs.bath.ac.uk wrote:
> A number
> 002 is the same as 2

And 1.1 is the same as 1.10?

Is it an integer number and not a decimal? that must mean you take the
fractional part and multiply it get N digits? If so, what is N?

Or is it kept fractional, so that 0.2 and 0.002 actually differs?

-- 
/Jonatan         [ http://kymatica.com ]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-05-19 15:14
FromJonatan Liljedahl
SubjectRe: [Cs-dev] tied notes, p1 fractional part
Jonatan Liljedahl wrote:
> jpff@cs.bath.ac.uk wrote:
>> A number
>> 002 is the same as 2
> 
> And 1.1 is the same as 1.10?
> 
> Is it an integer number and not a decimal? that must mean you take the
> fractional part and multiply it get N digits? If so, what is N?
> 
> Or is it kept fractional, so that 0.2 and 0.002 actually differs?

I just did some testing, so for the record:

  i 1.1 == i 1.10

  i 1.1 != i 1.01

Which means that if the events are generated and the generator needs to
keep track of each event, one needs to define the maximum number of
digits after the fractional part to be able to make the counting right,
like 1.00001, 1.00002, ..., 1.00010 instead of 1.1, 1.2, ..., 1.10 which
would fail.

I guess it uses floats? They don't have very high resolution in the
fractional part..

It would be so much cleaner if this tag was a separate number or string
and not encoded in the fractional part of p1, but I guess it's hard to
change that now. :)

-- 
/Jonatan         [ http://kymatica.com ]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-05-20 04:32
FromTim Mortimer
SubjectRe: [Cs-dev] tied notes, p1 fractional part
& the thing i recently discovered with all this is that the voice number
allocations can be completely arbitrary.. there doesn't have to be any
sequential logic to the numbering order.

just as long as you track & turn off what you turn on.

it took me about a year for the penny to drop, but it's certainly a
significant piece of information, & has had a significant impact on my orc
designs...

i havent read the documentation on this recently, but maybe it could be
amended to reflect this more overtly...

joy to the world

T.

-----
*******************
www.phasetransitions.net
hermetic music * python * csound * possibly mindless ranting
various werk in perpetual delusions of progress....

-- 
View this message in context: http://www.nabble.com/tied-notes%2C-p1-fractional-part-tp17319487p17332585.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net