[Csnd] csoundapi~ puredata question
Date | 2012-10-03 00:24 |
From | peiman khosravi |
Subject | [Csnd] csoundapi~ puredata question |
Hello, Does the message 'event f 1 0 4096 10 1 0.5 0.25 0.2 0.166' over-write an existing table as well as creating a new one? Is it safe to use it during the run time? Thanks
Peiman
|
Date | 2012-10-03 07:32 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] csoundapi~ puredata question |
I think it should overwrite the previous f1, and that it is generally not safe to do this during run time, but with some care you can make it work safely at run time too. best Oeyvind 2012/10/3 peiman khosravi |
Date | 2012-10-03 07:33 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] csoundapi~ puredata question |
... that should have been "I think it will overwrite..." 2012/10/3 Oeyvind Brandtsegg |
Date | 2012-10-03 08:49 |
From | peiman khosravi |
Subject | Re: [Csnd] csoundapi~ puredata question |
Thanks Oeyvind, By care you mean making sure that the table is not being used when altered? So I could for example use 'tablecopy' to copy the table data (after the modification) into the one that my instrument is using? Best, Peiman On 3 October 2012 07:33, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: ... that should have been "I think it will overwrite..." |
Date | 2012-10-03 08:58 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] csoundapi~ puredata question |
Yes, in your scenario (So I could for example use 'tablecopy' to copy the table data (after the modification) into the one that my instrument is using), you'd of course need to take care that your instrument is not using the table while you do tablecopy... so that intermediate operation does not help much in terms of table read protection. If you really need to modify a table while it is being read, perhaps the table morfing opcodes are safer (I don't know really, why would they be?, but I know I've used them quite a lot to morph while reading). Oeyvind 2012/10/3 peiman khosravi |
Date | 2012-10-03 09:05 |
From | peiman khosravi |
Subject | Re: [Csnd] csoundapi~ puredata question |
I see. Thanks Oeyvind. I suppose I can always momentarily halt the instrument. Thanks Peiman
On 3 October 2012 08:58, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: Yes, |