Hi! Maybe I havent looked hard enough but I just havent 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 Im new to PD perhaps my thinking is too complex. My ideas have been:
phasor~ objects where one phasor~ handles sample-start til loop-end and let the other one (loop-start til loop-end) kick in once the first one has completed its first and single run. 2. Perhaps using a vline~ for the first part instead of a phasor~ 3. Simply using one phasor~ object and offsetting the start value of its second cycle to the loop-start position 4. Simply using a vline~ object and loop it with a different start position the second time onwards.
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