<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: File Path Help</title>
		<atom:link href="http://cycling74.com/forums/topic/file-path-help/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/file-path-help/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 18:57:40 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/file-path-help/#post-45810</guid>
					<title><![CDATA[File Path Help]]></title>
					<link>http://cycling74.com/forums/topic/file-path-help/#post-45810</link>
					<pubDate>Sun, 11 Oct 2009 13:17:14 +0000</pubDate>
					<dc:creator>Mitch Turner</dc:creator>

					<description>
						<![CDATA[
						<p>I have a large number of audio files named 1.wav, 2.wav, 3.wav, etc&#8230; and I am sending the message: </p>
<p>&#8220;open $1.wav, 1&#8243; </p>
<p>to an [sfplay~] object.  The $1 is being replaced by an int.  This is working very well.</p>
<p>What I&#8217;d like to do is put this large number of audio files (100 or so) into a subfolder, to make my patcher folder a little bit neater.</p>
<p>So, the Max patch would be in a folder called something like &#8220;MyMaxPatch&#8221; and the audio files would be in &#8220;MyMaxPatch/MyAudioSubFolder&#8221;.</p>
<p>Can someone tell me what message I should send to [sfplay~] that is similar to the one above where the audio files are all in a subfolder.</p>
<p>Here is the message I tried, but it did not work<br />
&#8220;open ./MyAudioSubFolder/$1.wav, 1&#8243;</p>
<p>If possible, I&#8217;d like to use a relative path, in case I move the folder  to another machine.</p>
<p>Any help would be greatly appreciated,<br />
Mitch</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/file-path-help/#post-165163</guid>
					<title><![CDATA[Re: File Path Help]]></title>
					<link>http://cycling74.com/forums/topic/file-path-help/#post-165163</link>
					<pubDate>Sun, 11 Oct 2009 13:24:33 +0000</pubDate>
					<dc:creator>Luke Hall</dc:creator>

					<description>
						<![CDATA[
						<p>You need to use the full file path, on a mac this will be something like:</p>
<p>open &#8220;Macintosh HD:/Users/YOURNAME/MyMaxPatch/MyAudioSubFolder/123.wav&#8221;</p>
<p>lh</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/file-path-help/#post-165164</guid>
					<title><![CDATA[Re: File Path Help]]></title>
					<link>http://cycling74.com/forums/topic/file-path-help/#post-165164</link>
					<pubDate>Sun, 11 Oct 2009 16:03:50 +0000</pubDate>
					<dc:creator>Miguel</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Mitch,</p>
<p> The problem with absolute paths is, well, that they are absolute! so moving your patch around your HD will cause it to stop loading your files.</p>
<p>I posted a solution to this some time ago. It is a small abstraction that generates absolute paths relative your main patch each time you open it. It does exactly what you are trying to do (except that instead of &#8220;open $1.wav, 1&#8243; you would send something in the lines of &#8220;open /subfolder/$1.wav, 1&#8243;</p>
<p>You can find it here:</p>
<p><a href="http://www.cycling74.com/forums/index.php?t=msg&#038;goto=180448&#038;rid=0&#038;srch=Miguel#msg_180448">http://www.cycling74.com/forums/index.php?t=msg&#038;goto=180448&#038;rid=0&#038;srch=Miguel#msg_180448</a></p>
<p> Hope you find this useful.</p>
<p>
             -Miguel</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/file-path-help/#post-165165</guid>
					<title><![CDATA[Re: File Path Help]]></title>
					<link>http://cycling74.com/forums/topic/file-path-help/#post-165165</link>
					<pubDate>Mon, 12 Oct 2009 18:32:27 +0000</pubDate>
					<dc:creator>Mitch Turner</dc:creator>

					<description>
						<![CDATA[
						<p>Miguel,<br />
Thanks so much.  I&#8217;ll take a look at your abstraction.  </p>
<p>What I don&#8217;t understand, is that this is easy in Pd.  In fact, in Pd one can do the following</p>
<p>[int box] <br />
|<br />
[open ./MySubFolder/$1.wav ( < - this is a message<br />
|<br />
&#8230;</p>
<p>And the resulting message is:<br />
open ./MySubFolder/1.wav</p>
<p>where the $1 is replaced by the int coming from the int box.  So, the dollar sign is being replace mid-message.</p>
<p>Anyway, thanks again for the help,<br />
Mitch</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

