I think what is happening is that [midifile] is expecting a full path for the file name when using read. This is why it works for the [openpanel] because it returns a complete path. Did you try using the full path with [read $1(?<br>
<br>Mike<br><br><br><div class="gmail_quote">On Feb 12, 2008 12:33 PM, saint &lt;<a href="mailto:saintidle@yahoo.com">saintidle@yahoo.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">thanks for the quick reply again martin,<br><br>it&#39;s a strange problem that i seem to be having.<br>
because i definitely have all the midifiles in the same folder as the patch but<br><br>[midifile test.mid]<br>...or...<br>[read test.mid(---[midifile]<br>gives... &#39;error: midifile: unable to open test.mid&#39;<br><br>
but when i do<br>[bang]---[openpanel]---[read $1(---[midifile]<br>and point it to &#39;test.mid&#39; it seems to work?<br><br>hmmmm...<br>unfortunately for what i want to do i need to be able to automate opening different midifiles.<br>
<span>i&#39;m using your zip from <a href="http://puredata.info/Members/martinrp/midifile/midifile.zip/view" target="_blank">http://puredata.info/Members/martinrp/midifile/midifile.zip/view</a></span><br><br><br>thanks again in advance!<br>
<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div class="Ih2E3d">----- Original Message ----<br>From: Martin Peach &lt;<a href="mailto:martin.peach@sympatico.ca" target="_blank">martin.peach@sympatico.ca</a>&gt;<br>
To: <a href="mailto:saintidle@yahoo.com" target="_blank">saintidle@yahoo.com</a>; <a href="mailto:pd-list@iem.at" target="_blank">pd-list@iem.at</a><br></div><div class="Ih2E3d">Sent: Tuesday, 12 February, 2008 5:13:00 PM<br>
Subject: Re: [PD] Phasor Driven Midi File Playback?<br><br>saint 
wrote:<br>&gt;<br>&gt;hi 
martin,<br>&gt;<br>&gt;been 
trying 
your 
midifile 
object 
and 
it&#39;s 
working 
nicely.<br><br>great!<br><br>&gt;<br>&gt;is 
there 

way 
to 
send 
it 

[read 
test.mid{ 
message 
or 

[read <br>&gt;folder/test.mid{ 
message?<br>&gt;<br>&gt;i 
need 
to 
automate 
opening 

bunch 
of 
files 
without 
using 
the 
&#39;openpanel&#39; <br>&gt;object.<br>&gt;<br><br>Just 
like 
that.<br>Or 
send 

message 
or 
symbol 
containing 
the 
path 
to 
the 
[read 
$1( 
message.<br>It&#39;s 
probably 
easier 
if 
all 
the 
files 
are 
in 
the 
same 
directory 
as 
the <br>patch.<br><br>Martin<br><br><br></div></div><br></div></div><br>
      <hr size="1"><div class="Ih2E3d"> Sent from <a href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=51949/*http://uk.docs.yahoo.com/mail/winter07.html" target="_blank">Yahoo!</a> - a smarter inbox.</div>
</div><br>_______________________________________________<br><a href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal.<br>—Yehudi Menuhin (1916–1999), musician