<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:large">As with most unpredictable problems in pd, this one was solved with a trigger object banging a float so the velocity could be set before the note. </div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">I've had this problem for days and solved it just after posting to the list.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 9, 2022 at 12:52 PM Samuel Burt <<a href="mailto:composer.samuel.burt@gmail.com">composer.samuel.burt@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:large">I'm working with [midifile] to create algorithmic scores from analog-style synthesis models. Really I'm at the beginning stages of doing so.</div><div style="font-size:large"><br></div><div style="font-size:large">My flow is to generate data, write it into a MIDI file, and then open it in Finale to see the results. Unfortunately, I'm seeing an accumulation of previous notes that appears at the start of each measure.</div><div style="font-size:large"><br></div><div style="font-size:large">Here's a picture of the patch and the output:</div><div style="font-size:large"><a href="https://i.imgur.com/t4naCah.png" target="_blank">https://i.imgur.com/t4naCah.png<br></a></div><div style="font-size:large"><br></div><div style="font-size:large">Any idea what I'm doing wrong? I'm assuming there might be some kind of problem with how I'm creating noteoff commands. </div><div style="font-size:large"><br></div><div style="font-size:large">What I remember from study is that the MIDI spec has both noteon and noteoff messages, but most instruments just use noteon messages with zero velocity. Do sequencers translate those zero velocity messages into noteoff messages before saving them into a file?</div><div style="font-size:large"><br></div><div style="font-size:large">Thanks,<br>Sam </div></div>
</blockquote></div></div>