<div dir="ltr"><div><div><div>thank you Ralph, i'll look into it.<br><br></div>I took a midi dump (through arecordmidi) from my BCR2000 controller and realised while reading the midi file that 2 byte values are stored locally in a midi file lsb first. This is opposite to what I see here <a href="http://www.somascape.org/midi/tech/mfile.html#midi">http://www.somascape.org/midi/tech/mfile.html#midi</a> . for example the midi <b>MThd</b> : Header chunk, was written in the midi file asĀ <tt class=""> 54 </tt><tt class=""><tt class="">4D </tt>64 </tt><tt class="">68 .</tt><span style="font-family:arial,helvetica,sans-serif"><span class=""> and chunklen as</span></span><tt class=""> 00 00 06 00 </tt><span class=""><font face="arial,helvetica,sans-serif">. So this is one thing that I should keep in mind when I send hex numbers.<br><br></font></span></div>also based on your analysis, can I just forget about all those headers when I send a midi cc command? can I just send the midi even directly? <br><br></div>yes writing a function is not too hard = i do work in low lelvel programming after all, biut I dunno if by mistake I send some cmd that can fuck up the controller :)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 13, 2015 at 2:05 AM, Ralf Mardorf <span dir="ltr"><<a href="mailto:ralf.mardorf@alice-dsl.net" target="_blank">ralf.mardorf@alice-dsl.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Begin forwarded message:<br>
<br>
Date: Tue, 13 Oct 2015 00:57:15 +0200<br>
From: Ralf Mardorf <<a href="mailto:ralf.mardorf@alice-dsl.net">ralf.mardorf@alice-dsl.net</a>><br>
To: Athanasios Silis <<a href="mailto:athanasios.silis@gmail.com">athanasios.silis@gmail.com</a>><br>
Subject: Re: [LAU] send a midi CC signal to my midi controller from bash<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Control Change bits of the three bytes are<br>
<br>
Byte 1, nnnn is for channel 0 to 15<br>
<br>
1011 nnnn<br>
<br>
Byte 2, ccc cccc number of controller<br>
<br>
0ccc cccc<br>
<br>
Byte 3, vvv vvvv value<br>
<br>
0vvv vvvv<br>
<br>
It's not too hard to write a function using amidi that allows you to use<br>
it like that<br>
<br>
my_function interface channel controller value<br>
<br>
my_function 0 10 7 127<br>
<br>
It's comfortable to have a function that alows<br>
values from -63 to 0 to 64 and<br>
values from 0 to 127.<br>
<br>
Unfortunately I don't have time to search my scripts for such a<br>
function, but IIRC it wasn't hard to write it.<br>
</div></div></blockquote></div><br></div>