Hi Again!
i have found a problem which is driving me crazy...
i must admit i am a total noob on dsp and maybe the solution is just in front of my face... but i can't find it, so came here claiming for some help
The question is related to a phasor.
i am using it as an index scanner for a tabread~, to read a sample,
so i'm multiplying the output of the phasor by the size of the chunk i want to play, and updating the phasor's frequency depending on this chunk's size.
[hz~\ (related to chunksize)
|
|
[phasor~]
|
| [chunksize~\
| |
| |
[*~]
|
|
.
.
[tabread~]
Everything fine to this point.
but everytime i do a chunk size / frequency change the "header" is (obviously) doing a jump, as it is being multiplied by a different number.
I would preffer the header to "keep where it is" and go on until the end of the (new) chunk.
Note that i don't want to wait until previous chunk is finished, but immediately change size and frequency settings (so the samphold~ approach referenced in the tutorials is not usefull for me)
Is there any way to achieve this, and keep using the phasor~ approach?
maybe there is some object around that i am missing...
i'm attaching a simple reproduction of this problem
Thank you!!!!