Csound Csound-dev Csound-tekno Search About

[Cs-dev] Fix for dam

Date2007-02-18 15:26
From"Steven Yi"
Subject[Cs-dev] Fix for dam
AttachmentsNone  

Date2007-02-18 16:28
Fromroot
SubjectRe: [Cs-dev] Fix for dam
You do need to clear p->initialised in daminit as well as structures can 
be reused.
==John



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-02-18 17:57
From"Steven Yi"
SubjectRe: [Cs-dev] Fix for dam
AttachmentsNone  

Date2007-02-19 10:46
Fromjpff
SubjectRe: [Cs-dev] Fix for dam
I too thought that there was something odd; if the table depends on a
krate object then it needs to be recalculated whenever it changes.
  So I think i can to the same conclusion as you!  I do not really
understand the algorithm -- would remaking the table lead to
glitching?  If the opcode used with a constant krate object in which
case a table is cool.  If the normal use has a varying krate object
then direct calculation probably wins.
  The other point of this opcode is that is was written for the Csound
book as an example of how to write an opcode.  In fixing it we may
damage the book.
  Anyone have suggestions/advice?
==John ffitch

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-02-19 10:54
From"Dr. Richard Boulanger"
SubjectRe: [Cs-dev] Fix for dam
If fixing it breaks the chapter in The Csound Book, maybe you could  
make a dam2 opcode that *fixes* *improves*  it.

Rick

On Feb 19, 2007, at 5:46 AM, jpff wrote:

> I too thought that there was something odd; if the table depends on a
> krate object then it needs to be recalculated whenever it changes.
>   So I think i can to the same conclusion as you!  I do not really
> understand the algorithm -- would remaking the table lead to
> glitching?  If the opcode used with a constant krate object in which
> case a table is cool.  If the normal use has a varying krate object
> then direct calculation probably wins.
>   The other point of this opcode is that is was written for the Csound
> book as an example of how to write an opcode.  In fixing it we may
> damage the book.
>   Anyone have suggestions/advice?
> ==John ffitch
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-02-19 11:10
From"Steven Yi"
SubjectRe: [Cs-dev] Fix for dam
AttachmentsNone  

Date2007-02-19 11:16
From"Dr. Richard Boulanger"
SubjectRe: [Cs-dev] Fix for dam
Hello Steven,

Hope you are well.

OK....  I'm all for actually fixing it.  Given the new world of  
Csound5, there are many things about the adding opcodes chapter
featuring dam, that would probably no longer be 100% accurate....

-dB
On Feb 19, 2007, at 6:10 AM, Steven Yi wrote:

> Hi Dr. B and John,
>
> I think that dam should be altered or fixed to operate correctly, as I
> think it is faulty in its current form, and that this not just an
> enhancement but a real fix.  I don't have the Csound book here with me
> in Warsaw, but I would imagine that fixing the opcode and having the
> original in the book won't diminish the pedagogical value of the book
> version.  On the other hand, not fixing dam and introducing a dam2
> means it'll live on forever broken, which doesn't seem to make much
> sense.
>
> Regarding the fix, perhaps we could do direct calculation but
> depending on detection of threshold change, so perhaps adding a
> previousThreshold and powerVal value to the struct and having code
> like:
>
> if(p->kthreshold != p->previousThreshold) {
>   [calculate value]
> }
>
> Taking a quick look at the code just now I'm a bit lost still, but
> maybe it'd be just better to calculate every time?
>
> steven
>
>
> On 2/19/07, Dr. Richard Boulanger  wrote:
>> If fixing it breaks the chapter in The Csound Book, maybe you could
>> make a dam2 opcode that *fixes* *improves*  it.
>>
>> Rick
>>
>> On Feb 19, 2007, at 5:46 AM, jpff wrote:
>>
>>> I too thought that there was something odd; if the table depends  
>>> on a
>>> krate object then it needs to be recalculated whenever it changes.
>>>   So I think i can to the same conclusion as you!  I do not really
>>> understand the algorithm -- would remaking the table lead to
>>> glitching?  If the opcode used with a constant krate object in which
>>> case a table is cool.  If the normal use has a varying krate object
>>> then direct calculation probably wins.
>>>   The other point of this opcode is that is was written for the  
>>> Csound
>>> book as an example of how to write an opcode.  In fixing it we may
>>> damage the book.
>>>   Anyone have suggestions/advice?
>>> ==John ffitch
>>>
>>> -------------------------------------------------------------------- 
>>> --
>>> ---
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to
>>> share your
>>> opinions on IT & business topics through brief surveys-and earn cash
>>> http://www.techsay.com/default.php?
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> --------------------------------------------------------------------- 
>> ----
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>> share your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-02-20 13:44
From"Steven Yi"
SubjectRe: [Cs-dev] Fix for dam
AttachmentsNone