<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Looping with tabread4 after initial playback?]]></title><description><![CDATA[<p>Hi All!</p>
<p>this is my first post and I am pretty new to Pure Data.</p>
<p>I am trying to make a sample based synth - The initial sample needs to play from the begining, arrive at a certain point and then contionusly loop until the key is released.  I have successful done this with tabplay as it has an outlet that is triggered when the tabplay is finished, however I cannot pitch with tablay so I must use tabread/tabread4.  However using the phasor~ object I can only loop a specific section and using line~ I cannot loop.  What I need to do is have somethign like line or vline play the file until sample (x) is reached, when (x) is reached the file must loop between (x) and (y - another sample point).</p>
<p>Please let me know if anyone knows how to do this <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>Thank You<br />
Zack</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10677/looping-with-tabread4-after-initial-playback</link><generator>RSS for Node</generator><lastBuildDate>Sat, 17 Oct 2026 18:28:23 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/10677.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Apr 2017 20:12:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Looping with tabread4 after initial playback? on Fri, 14 Apr 2017 20:12:33 GMT]]></title><description><![CDATA[<p>Hi All!</p>
<p>this is my first post and I am pretty new to Pure Data.</p>
<p>I am trying to make a sample based synth - The initial sample needs to play from the begining, arrive at a certain point and then contionusly loop until the key is released.  I have successful done this with tabplay as it has an outlet that is triggered when the tabplay is finished, however I cannot pitch with tablay so I must use tabread/tabread4.  However using the phasor~ object I can only loop a specific section and using line~ I cannot loop.  What I need to do is have somethign like line or vline play the file until sample (x) is reached, when (x) is reached the file must loop between (x) and (y - another sample point).</p>
<p>Please let me know if anyone knows how to do this <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>Thank You<br />
Zack</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10677/looping-with-tabread4-after-initial-playback</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10677/looping-with-tabread4-after-initial-playback</guid><dc:creator><![CDATA[hellofishy]]></dc:creator><pubDate>Fri, 14 Apr 2017 20:12:33 GMT</pubDate></item><item><title><![CDATA[Reply to Looping with tabread4 after initial playback? on Sat, 15 Apr 2017 06:38:54 GMT]]></title><description><![CDATA[<p>You can achieve looping with [vline~], but it's tricky and not as reliable. I'd say that [phasor]~is your best bet. It should be easy to make it read the whole array--just use [*~] to multiply the signal. Ie. this would scan through 88200 samples in 2 seconds</p>
<p>[phasor~ 0.5]<br />
|<br />
[*~ 88200]<br />
|<br />
[tabread4~ array1]</p>
<p>One awkward thing is that you can't turn [phasor~] off, however this is easily solved using [switch~] You just need to put the [switch~] in the patch without connecting it to anything. Sending it a 0 will turn all the DSP objects in the patch off (including the [phasor~]) while sending it a 1 will turn them all on. (Watch out--it's off by default).</p>
<p>Send a 0 to the right inlet of [phasor~] if you want to reset the phase, ie. when you are turning it 'on'.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10677/looping-with-tabread4-after-initial-playback/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10677/looping-with-tabread4-after-initial-playback/2</guid><dc:creator><![CDATA[LiamG]]></dc:creator><pubDate>Sat, 15 Apr 2017 06:38:54 GMT</pubDate></item><item><title><![CDATA[Reply to Looping with tabread4 after initial playback? on Mon, 17 Apr 2017 19:59:58 GMT]]></title><description><![CDATA[<p>Hi Liam!</p>
<p>thanks for your help and advice!</p>
<p>I will try what you said, however would there be a way to start the playback with vline~ or line~ and then once it has reached a certain point start looping with phasor from that point? so that when I press a key the sample starts (say it goes from 0 to 500 with vline or line) at point 500 I would like it to start looping from 500 to 1000 and continiously loop until the key is released.  Could I achieve this using phasor and switch or do you recommend another method?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10677/looping-with-tabread4-after-initial-playback/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10677/looping-with-tabread4-after-initial-playback/3</guid><dc:creator><![CDATA[hellofishy]]></dc:creator><pubDate>Mon, 17 Apr 2017 19:59:58 GMT</pubDate></item><item><title><![CDATA[Reply to Looping with tabread4 after initial playback? on Mon, 17 Apr 2017 23:23:35 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/hellofishy">@hellofishy</a> In the included documentation for Pd.......... (look inside your Pd installation)..........is Pd/doc/3.audio.examples/<br />
If you look in B13.sampler.overlap.pd <a href="/uploads/files/1492470017009-b13.sampler.overlap.pd">B13.sampler.overlap.pd</a>  you will see that a &quot;read point&quot; can be set to a second [samplehold~] using [line~].</p>
<p>B13 should do what you want if you delete &quot;copy 2&quot;..... and then use maybe a [metro] and some logic to control the &quot;read point&quot; and the &quot;chunk size&quot; ...... (read point = start, chunk size = length).<br />
There is a lot of hidden help in the doc folder!<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10677/looping-with-tabread4-after-initial-playback/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10677/looping-with-tabread4-after-initial-playback/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Mon, 17 Apr 2017 23:23:35 GMT</pubDate></item><item><title><![CDATA[Reply to Looping with tabread4 after initial playback? on Tue, 23 May 2017 22:31:13 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/hellofishy">@hellofishy</a> Did you every find a solution to you re sampler because im working towards a similar thing...I was imagining an ADSR to control looping in certain areas of the sample. ie the AD del where ever you want the audio file to be read from Sustain loops between allocated values like you mentioned then release completes the envelope when you release the button?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10677/looping-with-tabread4-after-initial-playback/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10677/looping-with-tabread4-after-initial-playback/7</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Tue, 23 May 2017 22:31:13 GMT</pubDate></item></channel></rss>