You're on exactly the right track and thinking all the right things.
An important value to grab is the length of the sample (in samples)
which you can get from [soundfiler]. Multiply your [phasor~] by the
magnitude of the loop and add it to an offset in samples and that should
be the table index you need.
(please excuse awful html formatting , using webmailer )
andy
Hi! Maybe I haven’t looked hard enough but I just haven’t been able to find any examples on building a sample playback engine that will allow for sample-start, loop-start and loop-end positions to be set. The question is what would be the easiest way to achieve this. I have been thinking about ways to achieve the sample clock driver but since I’m new to PD perhaps my thinking is too complex. My ideas have been:
I suppose I would have to use the samphold~ object to make the shift between phasor~ or vline~ or just to offset the start position of a phasors~ second cycle. Any ideas or examples on how to best achieve this would be more than welcome.
/Mikael |