Sysex Viewer II

5 posts / 0 new
Last post
Royce
Royce's picture
Sysex Viewer II

Hi Mark

Thanks for you help. The new Midi Component works much better and I am not longer having the re-painting problem. Of course you do someone a favour and they come back for more.

So, I was wondering if you could have a switch in the the Sysex Viewer that would, for every row, insert a row below and fill the cells with the ASCII characters (range 32 to 126 spaces everywhere else) for the value in the cell above?.

As well as finding names of patches etc Yamaha have a sysex system where they name the different sysex dumps eg "LM_8063EF" and a single dump request can cause several different dumps.

 4C 4D 20 38 30 36 33 45 46

  L   M       8   0   6   3  E   F

 

Thanks again

Royce

 

Mark van den Berg
Mark van den Berg's picture

Hi Royce,

Try this build: https://mountainutilities.eu/dl/MidiTls_1.7.0_a4.zip.
From the View menu you can choose any combination of four representations: binary, hex, decimal and char.

Mark.

Royce
Royce's picture

Hi Mark

thanks for the extras. It will make the Yamaha syex much easier to read.

It also makes BC2k reading direct from sysex a breeze.

One small comment. When using the mouse wheel or cursor keys to scroll the grid  it resets its horizontal position.

Works perfectly with the scrollbar.

Thanks again

Royce

 

 

Mark van den Berg
Mark van den Berg's picture

When using the mouse wheel or cursor keys to scroll the grid  it resets its horizontal position.
Works perfectly with the scrollbar.

What you describe as "reset[ting] its horizontal position" is actually the result of selecting a different cell, which is then automatically brought into view.
Note that the currently selected cell has a small rectangle around it.
By default cell (1, 1) is selected, and scrolling to the right doesn't change this, so if you then use the mouse wheel or the Down key, cell (1, 2) gets selected and brought into view, and you lose the horizontal scroll position.
However, the selected cell does not change when you use the scrollbar, hence the difference.

All this is standard behavior by the Delphi TStringGrid control.
Apparently the idea is that the user will want to see the cell he/she has just selected - sensible but confusing. So I'm not sure whether I would want to override this behavior, and as yet I have no idea how I would do that.

In any case, one way to prevent these annoying resets is to left-click on a cell in your leftmost column: then that column will stay in view when you press the Up/Down keys or move the mouse wheel.

Mark

Royce
Royce's picture

Ah, I see.

Quite a reasonable way to work once you know.

Just spent the day with the program on my screen. Saved a LOT of time sorting out the Yamaha sysex..

Thanks

Royce