<div dir="ltr">Oh silly me. You need to look at the syntax for using readsf~ - it's more complicated. First, readsf~ needs an open message e.g. "open 001test.wav", then it needs a "1" to start playback. Forgive me if you already know this, but you can string 2 messages together with a comma. And to get the filename from textfile into a message like that, you need to use $1 as a placeholder. So between textfile and readsf~ you need a message saying something like "open $1, 1". That'll turn into 2 messages: "open 001test.wav" and then "1". If the files are in the same directory as the patch, it should work (I think).<div>
<br></div><div style>Cheers</div><div style>Dafydd</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 19, 2013 at 9:06 PM, Rick T <span dir="ltr"><<a href="mailto:ratulloch@gmail.com" target="_blank">ratulloch@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I had my hopes up but adding the semicolon to the end didn't help.<br>
<br>
I have all the files in the same directory and for whatever reason it<br>
just refuses to play. I don't even have any errors on the Puredata<br>
Log screen. Any other ideas?<br>
<br>
Thanks<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Feb 19, 2013 at 3:28 PM, Dafydd Hughes <<a href="mailto:dafydd61@gmail.com">dafydd61@gmail.com</a>> wrote:<br>
> Hi Rick<br>
><br>
> I think you might need a semicolon at the end of each line in your text<br>
> file:<br>
> 001test.wav;<br>
> 002test.wav;<br>
> 003test.wav;<br>
><br>
> Cheers<br>
> Dafydd<br>
><br>
><br>
> On Tue, Feb 19, 2013 at 8:22 PM, Rick T <<a href="mailto:ratulloch@gmail.com">ratulloch@gmail.com</a>> wrote:<br>
>><br>
>> Thanks for all the help/suggestions but I still seem to be running<br>
>> into a problem of it not playing the files. I made the changes to<br>
>> playlist file and edited the playlist.txt file<br>
>> the playlist.txt file has<br>
>> 001test.wav<br>
>> 002test.wav<br>
>> 003test.wav<br>
>><br>
>> I've included the the pd patch to see if someone can tell me what I'm<br>
>> doing wrong<br>
>><br>
>> Thanks.<br>
>><br>
>><br>
>><br>
>> On Tue, Feb 19, 2013 at 12:08 PM, Roman Haefeli <<a href="mailto:reduzent@gmail.com">reduzent@gmail.com</a>><br>
>> wrote:<br>
>> > On Die, 2013-02-19 at 07:47 -1000, Rick T wrote:<br>
>> >> Yes I do have the ability to change the playlist file to a text file<br>
>> >> and alter it how it looks. The thing I'm looking for is an example of<br>
>> >> gapless playing. I couldn't find one doing google search.<br>
>> ><br>
>> > You load your playlist (in its most simple form it would be just one<br>
>> > filename per line) with [textfile]. You make [textfile] output its first<br>
>> > line, feed that to [readsf~]. Then you feed the right outlet of<br>
>> > [readsf~] - which bangs when the file is finished - back to [textfile]<br>
>> > to make it output the next filename.<br>
>> ><br>
>> > Roman<br>
>> ><br>
>> >> On Tue, Feb 19, 2013 at 12:53 AM, Roman Haefeli <<a href="mailto:reduzent@gmail.com">reduzent@gmail.com</a>><br>
>> >> wrote:<br>
>> >> > On Die, 2013-02-19 at 00:31 -1000, Rick T wrote:<br>
>> >> >> Greetings All<br>
>> >> >><br>
>> >> >> I have a playlist file (songs.pls) that I would like to play gapless<br>
>> >> >> (without the 1 second pause between tracks) can puredata due this if<br>
>> >> >> so is<br>
>> >> >> there and example?<br>
>> >> ><br>
>> >> > It sounds doable to me. I'd do it with [textfile] reading your<br>
>> >> > playlist<br>
>> >> > which passes each line (after some message mangling) to a [readsf~].<br>
>> >> > My<br>
>> >> > only concern is the chosen file format '.pls'. Pd (natively) is<br>
>> >> > pretty<br>
>> >> > bad in string parsing. If you could use your own format it would make<br>
>> >> > things a lot easier. I don't know if you have any constraints there.<br>
>> >> ><br>
>> >> > The simplest format of such a text file might be as an example:<br>
>> >> ><br>
>> >> > filename1.wav<br>
>> >> > filename2.wav<br>
>> >> > whateverfile.wav<br>
>> >> ><br>
>> >> ><br>
>> >> > Roman<br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > _______________________________________________<br>
>> >> > <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
>> >> > UNSUBSCRIBE and account-management -><br>
>> >> > <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
>> ><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
>> > UNSUBSCRIBE and account-management -><br>
>> > <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
>><br>
>> _______________________________________________<br>
>> <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
>> UNSUBSCRIBE and account-management -><br>
>> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
>><br>
><br>
</div></div></blockquote></div><br></div>