<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> <a href="mailto:d.adler@posteo.de">d.adler@posteo.de</a>:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On <a href="tel:21.05.2017%2014" value="+12105201714">21.05.2017 14</a>:14, Kjetil Matheussen wrote:<br>
...<br>
><br>
> By using jack_capture instead of ecasound, this should be enough:<br>
><br>
> jack_capture --jack-transport<br>
> jack-smf-player -n foo.mid &<br>
> sleep 5<br>
> echo locate 0 | jack_transport<br>
> echo play | jack_transport<br>
<br>
I also had jack_capture in mind first, it always stopped though whenever<br>
a sleep command finished that had been issued after it.  Thus, being<br>
lazy, I used something else instead of investigating this.<br>
It turns out that jack_capture's --no-stdin option does the magic.<br>
<br></blockquote><div><br></div><div>That's interesting. Maybe it has something to do with the piping.</div><div><br></div><div>Another alternative would be to open</div><div>jack_capture in a new terminal. Then you also</div><div><div>avoid cluttering the terminal with text output</div><div>from both jack_capture and jack-smf-player:</div></div><div><br></div><div><div>xterm -e jack_capture --jack-transport &</div><div>jack-smf-player -n foo.mid &</div><div>sleep 5</div><div>echo locate 0 | jack_transport</div><div>echo play | jack_transport</div></div><div><br></div><div><br></div></div></div></div>