<?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[Questions about a patch for DJing]]></title><description><![CDATA[<p>I'm kind of new to Pd, but have some experience with Max. Actually I did a DJ-patch in Max a couple of years ago. I have uploaded this so you can see what I want to do. See the two files staring with MUS2840.</p>
<p>I have searched the forum and gotten a little smarter, but I haven't really found the answer I'm looking for.</p>
<p>I need a (two) player that can handle long files. I want to be able to controll speed and use cue-points. I have tried to use a simple player with tabplay~ og tabread4~, but can't seem to load the whole file into the array/table.</p>
<p>I did also try mp3play~, but couldn't try any of my mp3's since, they were all &quot;layer 2&quot;? Strange! It's just regular mp3's imported from CD's into iTunes.</p>
<p>I have tried sfplay~, but as I have figured out from this forum, I won't be able to change speed. ?</p>
<p>I have tried readanysf~, but it just led me to a bunch of things I needed to install and I didn't understand a thing.</p>
<p>If this for some reason can't be done with Pd, I'm thinking about using Jack or Soundflower in some kind of way. The whole point is to be able to use my own hardware interface (with Arduino) to control some kind of DJ-program, and I want it to be free.</p>
<p>Thank you!</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/Eksamen.zip" rel="nofollow">http://www.pdpatchrepo.info/hurleur/Eksamen.zip</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 05:45:38 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/4016.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Jul 2010 20:32:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Questions about a patch for DJing on Mon, 05 Jul 2010 20:32:57 GMT]]></title><description><![CDATA[<p>I'm kind of new to Pd, but have some experience with Max. Actually I did a DJ-patch in Max a couple of years ago. I have uploaded this so you can see what I want to do. See the two files staring with MUS2840.</p>
<p>I have searched the forum and gotten a little smarter, but I haven't really found the answer I'm looking for.</p>
<p>I need a (two) player that can handle long files. I want to be able to controll speed and use cue-points. I have tried to use a simple player with tabplay~ og tabread4~, but can't seem to load the whole file into the array/table.</p>
<p>I did also try mp3play~, but couldn't try any of my mp3's since, they were all &quot;layer 2&quot;? Strange! It's just regular mp3's imported from CD's into iTunes.</p>
<p>I have tried sfplay~, but as I have figured out from this forum, I won't be able to change speed. ?</p>
<p>I have tried readanysf~, but it just led me to a bunch of things I needed to install and I didn't understand a thing.</p>
<p>If this for some reason can't be done with Pd, I'm thinking about using Jack or Soundflower in some kind of way. The whole point is to be able to use my own hardware interface (with Arduino) to control some kind of DJ-program, and I want it to be free.</p>
<p>Thank you!</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/Eksamen.zip" rel="nofollow">http://www.pdpatchrepo.info/hurleur/Eksamen.zip</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing</guid><dc:creator><![CDATA[YodAmygdala]]></dc:creator><pubDate>Mon, 05 Jul 2010 20:32:57 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Tue, 06 Jul 2010 17:25:15 GMT]]></title><description><![CDATA[<p>Maybe the info in this post will help:</p>
<p><a href="http://puredata.hurleur.com/sujet-4301-pausing-resuming-playback-multiple-large-audio-files" rel="nofollow">http://puredata.hurleur.com/sujet-4301-pausing-resuming-playback-multiple-large-audio-files</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/2</guid><dc:creator><![CDATA[bitsynthesis]]></dc:creator><pubDate>Tue, 06 Jul 2010 17:25:15 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Tue, 06 Jul 2010 21:25:11 GMT]]></title><description><![CDATA[<p>Yes. It kind of helped, but I still don't understand exactly how to write the code. I've tried putting in &quot;samplesize 158760000&quot;, &quot;-samplesize 158760000&quot; and &quot;-maxsize&quot; in everywhere but nothing happens. I'm using a *.aiff-file. Maybe that's what's wrong. ?</p>
<p>And I'm not sure how to write the code for setting the samplesize automaticaly when I upload a new song.</p>
<p>I also see another problem coming: Every song will have a different playing speed. Am I right?? This will be a problem when I want to adjust the playing speed (for scratching and for small speed-variations). If someone has a solution for this, please write it down here. What I need is a way to change the output range of the hslider.</p>
<p>I'm using a patch I have copyed from a youtube-video (<div class="embed-container"><iframe src="//www.youtube.com/embed/user/cheetomoskeeto#p/a/12DC9A161D8DC5DC/23/boX0v54SqtU" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>) to try things out (uploaded).</p>
<p>And one more question: Can I use tabplay~ instead of tabread4~ and still set the samplesize in the way you hopefully will tell me to?</p>
<p>Thank you!</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/Player.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/Player.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/3</guid><dc:creator><![CDATA[YodAmygdala]]></dc:creator><pubDate>Tue, 06 Jul 2010 21:25:11 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Tue, 06 Jul 2010 22:05:54 GMT]]></title><description><![CDATA[<p>You need to set the size of the table independent of [soundfiler], so no samplesize or maxsize arguments are involved. Aiff files should work fine.</p>
<p>See the attached patch.</p>
<p>You can use either [tabplay~] or [tabread4~], the trick is getting the large files loaded into a table - then you can play them with either object. However, if you want to alter the speed of your audio files you will need to use [tabread4~].</p>
<p>To change the output range on a GUI object, simply right-click (or ctl-click) on the object and choose &quot;properties&quot;.</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/load_large_audio.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/load_large_audio.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/4</guid><dc:creator><![CDATA[bitsynthesis]]></dc:creator><pubDate>Tue, 06 Jul 2010 22:05:54 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Wed, 07 Jul 2010 18:06:45 GMT]]></title><description><![CDATA[<p>Thank you once again!</p>
<p>This helped a lot, but unveiled more questions: Is there a way to make the table resize automatically when I load a new track? I tried naming the number-box from the output of soundfiler &quot;Duration&quot; and put &quot;resize Duration&quot; where you resize the table, but it did nothing. I also tried naming the send-symbol of the number-box.</p>
<p>And on to the other problem:<br />
What I want to do is change the output range of the hslider automatically when I load a new song, not through the properties like you describe. Or more general: Can I change the properties through boxes in the programming enviroment (outside the properties-menu)?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/5</guid><dc:creator><![CDATA[YodAmygdala]]></dc:creator><pubDate>Wed, 07 Jul 2010 18:06:45 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Wed, 07 Jul 2010 18:54:22 GMT]]></title><description><![CDATA[<p>1. The example patch I posted above already resizes the patch after it's been loaded - using the output of [soundfiler]. The $1 in the resize message acts as a variable and is replaced by the first argument sent to that message, in this case the number of samples as output from soundfiler.</p>
<p>I think you are just confused on how to use variables. Naming the number box does nothing but display a name in the GUI. Send-symbol will automatically send the value of the number box to a receive object of the same name.</p>
<p>Check out the dollarsign and send/receive related patches in 2.control.examples (in the help browser).</p>
<p>2. To set the output range of an hslider with receive-symbol &quot;my_slider&quot; to between 50 and 75, use the following message:</p>
<p>[; my_slider range 50 75;(</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/6</guid><dc:creator><![CDATA[bitsynthesis]]></dc:creator><pubDate>Wed, 07 Jul 2010 18:54:22 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Tue, 05 Oct 2010 20:02:00 GMT]]></title><description><![CDATA[<p>It's been some time since I got the time to look at this now, but finaly I got around to it.</p>
<p>The files loads just fine, but the table is missing the last bit. It's the right size, but the waveform are just cut right off at about 15% from the end. This is no biggie, but its strange!</p>
<p>Thanks for the &quot;2.&quot;. It's a great start, but is it possible to use $1 and $2 instead of 50 and 75? I managed to controll the $1, but got &quot;error: $2: argument number out of range&quot; on $2 when I just used two number-boxes into the message-box.</p>
<p>I'm sure there will be more questions later. I'm going to look at how to pause (and set que-points in) the playback now.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/7</guid><dc:creator><![CDATA[YodAmygdala]]></dc:creator><pubDate>Tue, 05 Oct 2010 20:02:00 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Tue, 05 Oct 2010 20:16:20 GMT]]></title><description><![CDATA[<p>You need to wait for the table to finish resizing before loading the file in. I think you can do this with multiple messages in a message box seperated by a semicolon. Each message will be executed in order, waiting for the previous message to be completed before moving on.</p>
<p>Ex.</p>
<p>[; resize message goes here; load message goes here (</p>
<p>The load message could also just be something that triggers the load part of your patch.</p>
<p>In regards to your second point, you have to send both messages at the same time as a list. The attached patch demonstrates how to do this with either a single message or with separate min / max number boxes.</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/slider_resize.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/slider_resize.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/8</guid><dc:creator><![CDATA[bitsynthesis]]></dc:creator><pubDate>Tue, 05 Oct 2010 20:16:20 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Wed, 06 Oct 2010 20:07:30 GMT]]></title><description><![CDATA[<p>I don't know exactly what you mean, but I tried to put the resize before the read between loadpanel and soundfiler, but I just got an error-message. And I don't use any load-message, so I'm not sure how to use the info you gave me. I added the patch this time, so you can see what I have done.</p>
<p>The resizing of the sliders works perfect!! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>Now, there's two things I need to accomplish:</p>
<p>1. Is it possible to play the array on from a different sample than the first one? How? (I need this to be able to use cue-points).<br />
2. Is it possible to use the outpout from a slider only when it is in use? Like when I use the scratching and stop it, the patch will detect that the slider is no longer in constant use (after it hasn't been changed for some short time) and the tempo will be controlled by something else (that is constand)? I just remembered the change-object from Max and maybe I can use it (if it works the same in PD) with some sort of gate (spigot or something)? I'll look at that next time, but if someone could tell me something about this, please do!</p>
<p>Not sure what to search for, so I asked. Sorry if there is other threads on these things.</p>
<p>Thank you!!</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/Player3.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/Player3.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/9</guid><dc:creator><![CDATA[YodAmygdala]]></dc:creator><pubDate>Wed, 06 Oct 2010 20:07:30 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Fri, 15 Oct 2010 18:33:35 GMT]]></title><description><![CDATA[<p><strong>EDIT: All references to [phasor~] in this post and the attached patch should actually be [vline~]. Oops.</strong></p>
<p>To start playing from a sample besides the first one just start the [phasor~] at a number higher than 0. The number you input into [phasor~] cooresponds with the sample number being played. See the attached patch (the phasor~ and tabread4~ objects are just to demonstrate where they would go in the chain).</p>
<p>To load after the table has been resized, just add the following to the end of your resize message box:</p>
<pre><code>load_now bang;
</code></pre>
<p>Then create a [r load_now] object that feeds into [pd load] (or the [o] above it).</p>
<p>In regards to your 2nd question...</p>
<p>You can feed the scratch slider(s) into the [line] object in the attached patch. This will interrupt existing playback whenever you start scratching. In order to have playback continue after you stop you will need to store the current sample number and then use a combination of [delay] [==] and/or [metro] in order to check if the current sample has changed in a given amount of time (and if not, to send a new playback message through the attached patch with the current sample and end sample as arguments).</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/playfromanywhere.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/playfromanywhere.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/10</guid><dc:creator><![CDATA[bitsynthesis]]></dc:creator><pubDate>Fri, 15 Oct 2010 18:33:35 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Thu, 28 Oct 2010 20:00:23 GMT]]></title><description><![CDATA[<p>At first I was gonna write: &quot;Strange. The only thing going into phasor~ in my patch is a number representing the speed (it's about 0,002 with the song I'm using as test-song). I don't see how that fits with what you're telling me. ??&quot; and not try it out. But I didn't want to ask about things if I didn't have to.<br />
I tried it out, and discovered that I was right: The number that goes into phasor~ controlls the speed. In other words: When I put a line going from 30000 to 500000 into it, all I heard was noise because the song played really(!!) fast in a loop. This also reflected in the time-bar below the waveform.<br />
Is there something I have overlooked or misunderstood??<br />
Anyway, if it is and I can use this: I need the start and stop to be flexible, so I can set it along the way. I messed around with this a bit, using $ (from the slider_resize.pd) and pack/unpack and stuff, but nothing worked.</p>
<p>The resize-tip gave me nothing new, but thank you anyway. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/11</guid><dc:creator><![CDATA[YodAmygdala]]></dc:creator><pubDate>Thu, 28 Oct 2010 20:00:23 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Thu, 28 Oct 2010 20:11:51 GMT]]></title><description><![CDATA[<p>Ah, I see where I misunderstood. I never use [phasor~] for playback, always [vline~].</p>
<p>Using [vline~], you send it a message [a, b c ( where a = starting sample, b = ending sample, c = time in ms to take to get there.</p>
<p>Sorry, that was a silly mistake. I should've tested it first.</p>
<p>The resizing and loading works for me as described above.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/12</guid><dc:creator><![CDATA[bitsynthesis]]></dc:creator><pubDate>Thu, 28 Oct 2010 20:11:51 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Fri, 11 Mar 2011 06:33:33 GMT]]></title><description><![CDATA[<p>Hey, I just wanted to pop in and say &quot;Thanks&quot; to pd123 because the information in this thread and especially the sample large-file loader have been really helpful to me. I'm working on my own DJ'ing patch which I'll be releasing soon. I'd worked out most of the problems, but now it'll also be long-song enabled, which is really cool. So, thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/13</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/13</guid><dc:creator><![CDATA[KeithIrwin]]></dc:creator><pubDate>Fri, 11 Mar 2011 06:33:33 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Fri, 11 Mar 2011 16:50:55 GMT]]></title><description><![CDATA[<p>Thanks for the &quot;Thanks&quot; Keith, glad to have helped!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/14</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/14</guid><dc:creator><![CDATA[bitsynthesis]]></dc:creator><pubDate>Fri, 11 Mar 2011 16:50:55 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Tue, 24 May 2011 12:57:07 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>After a few months away from my DIY-projects, due to wirting my masters thesis, I'm now back on track.</p>
<p>I didn't see your correction about the phasor~/vline~ before now, so my last post is kind of not relevant.</p>
<p>I will start a new thread about my project soon. I've gotten some new info and seen a working DJ-patch which has given me new thouughts and questions. Hope to see you there. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>And thank you once again. You've all been great help!!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/15</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/15</guid><dc:creator><![CDATA[YodAmygdala]]></dc:creator><pubDate>Tue, 24 May 2011 12:57:07 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Mon, 28 Oct 2013 01:19:34 GMT]]></title><description><![CDATA[<p>i've tried to get my head around loading and resizing following pd123 suggestions - and can't get it to work - I obviously have things confused... basically I get the ending of any large sample left off the table, it only draws about 1/2 to 2/3rds of the file.</p>
<p>I have attached the patch posted by YodAmygdala with what I thought was suggested by pd123 - but have got it wrong somewhere.</p>
<p>any help appreciated</p>
<p>thanks</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/Player3_(1).pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/Player3_(1).pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/16</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/16</guid><dc:creator><![CDATA[bonehead696]]></dc:creator><pubDate>Mon, 28 Oct 2013 01:19:34 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Tue, 29 Oct 2013 08:50:13 GMT]]></title><description><![CDATA[<p>Anything that's larger than 2^24 samples is going to be a little off. This is because Pd uses 32-bit floats, which only have 24-bit integer precision. Since indices of tables are represented by integers in Pd, you are restricted to 24-bits of accuracy when passing them around and resizing.</p>
<p>You can still load larger files, but don't expect the resize to be accurate, and don't read them using [tabread~] et al., because anything over 2^24 will distort. I think [tabplay~] is the only one that won't distort while playing back (I think it uses pointer arithmetic internally).</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/17</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/17</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Tue, 29 Oct 2013 08:50:13 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about a patch for DJing on Wed, 30 Oct 2013 09:07:22 GMT]]></title><description><![CDATA[<p>thanks Maelstorm,</p>
<p>that makes it a bit more clear,</p>
<p>ta</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/18</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4016/questions-about-a-patch-for-djing/18</guid><dc:creator><![CDATA[bonehead696]]></dc:creator><pubDate>Wed, 30 Oct 2013 09:07:22 GMT</pubDate></item></channel></rss>