Yes, I did once exactly what you describe, and it works. (well to be precise I didn't do *exactly* what you described: I snapshotted the vline~ output to get the current position, so it worked only within block accuracy; however, I understand your solution and it should definitely work with (sub)sample accuracy)
However, in this approach the pitch input is control, i.e. number, it is not a signal. This doesn't allow for a signal input pitch. You can "change the pitch at any time" but you cannot have an oscillator *continuously* regulating the pitch for instance. ----- Original Message ----- From: "Roman Haefeli" <[EMAIL PROTECTED]> To: "Matteo Sisti Sette" <[EMAIL PROTECTED]> Cc: <[email protected]> Sent: Thursday, May 17, 2007 12:27 PM Subject: Re: [PD] Looping samples with tabread4~ On Thu, 2007-05-17 at 11:21 +0200, Matteo Sisti Sette wrote: > Frank Barknecht wrote: > > >> 4. Simply using a vline~ object and ?loop it? with a different > >> start position the second time onwards. > > >I'd simply do 4). > > That's ok if you're not gonna change the pitch while playing the sample. theoretically, this approach should also work well with changing the pitch while playing, if i am not totally mistaken. i never tried to implement it myself yet, but since you send a message to [vline~] you also know at any time, where [vline~] actually is. the idea is to measure the time between the inital message to [vline~] and the moment, where you want to change the pitch. with the timevalue and the values from the initial message you could calculate [vline~] actual position. with taking into account [vline~]'s actual position and the new pitch, you could generate a new message for [vline~]. like that, it should be possible to change the pitch at any time with (sub-?)sample accuracy and without having jumps in the playback. roman ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Gioca on-line con Best Western e parti in vacanza! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6500&d=17-5 _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
