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 <<a href="mailto:saintidle@yahoo.com">saintidle@yahoo.com</a>> 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'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... 'error: midifile: unable to open test.mid'<br><br>
but when i do<br>[bang]---[openpanel]---[read $1(---[midifile]<br>and point it to 'test.mid' 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'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 <<a href="mailto:martin.peach@sympatico.ca" target="_blank">martin.peach@sympatico.ca</a>><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>><br>>hi
martin,<br>><br>>been
trying
your
midifile
object
and
it's
working
nicely.<br><br>great!<br><br>><br>>is
there
a
way
to
send
it
a
[read
test.mid{
message
or
a
[read <br>>folder/test.mid{
message?<br>><br>>i
need
to
automate
opening
a
bunch
of
files
without
using
the
'openpanel' <br>>object.<br>><br><br>Just
like
that.<br>Or
send
a
message
or
symbol
containing
the
path
to
the
[read
$1(
message.<br>It'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 -> <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