<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
The outlets of all objects in Pd output from right to left order. Also,
the leftmost inlet is the hot inlet, meaning it will cause the object
to output when it receives a value. So with your current setup, they
rightmost outlet of [unpack] is triggering the leftmost inlet of [pack]
before it receives the rest of the values from [unpack]. You could
instead rearrange the list with a message box like this:<br>
<br>
<tt>[route notein]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [$3 $1 $2(<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [route 4 1 2 3]</tt><br>
<br>
The display showing the last value first is just the [pack] outputting
the last numbers it received from the previous time you ran the
sequence.<br>
<br>
.mmb<br>
<br>
<br>
Chuck Wiggins wrote:
<blockquote
 cite="mid:bae7f6b10905151452n3fcb16b8p8df3c1227b9b0fb4@mail.gmail.com"
 type="cite">I'm fairly new to PD, and have a behavior in a patch that
I can't understand - perhaps someone can enlighten me. I've reduced the
problem down to a simpler patch layout - see attached file. My goal is
to read midiin messages from a file via a qlist object, and route them
based on channel. I matched up unpack and pack objects to transpose the
midiin arguments so I could subsequently route based on channel. But I
think a bang event is firing on the pack before it has all the
arguments - the first print statement is not the first message from my
file. I tried even introducing a 1ms delay before sending the leftmost
argument to pack, but that soon got out of sync. Also tried a few
approaches storing in floats. Any suggestions? I'm sure it's a basic PD
behavior that I just don't quite grasp yet.<br>
  <br>
Running the attached patch will show the sequence below. The print
statement from the [route 4 1 2 3] object is displaying before the one
from the [route notein], and the first value it shows - "42 0" - is not
the first midiin message from my file - in fact it's the last.. <br>
  <br>
print: 42 0<br>
print: notein 50 127 4<br>
print: 50 127<br>
print: notein 50 0 4<br>
print: 50 0<br>
print: notein 45 127 4<br>
print: 45 127<br>
print: notein 45 0 4<br>
print: 45 0<br>
print: notein 47 127 4<br>
print: 47 127<br>
print: notein 47 0 4<br>
print: 47 0<br>
print: notein 42 127 4<br>
print: 42 127<br>
print: notein 42 0 4<br>
  <br>
Thanks much,<br>
  <br>
Chuck<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -&gt; <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
  </pre>
</blockquote>
<br>
</body>
</html>