Reading from a USB device.

If your external HD has LO, then there shouldn't be a problem.

       Question: is there some reason you're using .midi rather than
another sound application?;
          .midi programs are outdated, since they supposedly don't have the
actual sound, rather merely text.

       Hoping this helps, and you're able to accomplish whatever you're
planning,

Hi anne-ology,

I think my subject line was misleading. My USB device is a musical
keyboard rather than an external HD.

I inherited the keyboard from my step son. It happened to be a MIDI
keyboard. This turned out to be just what I needed, as it tells me exactly
the note number that has been pressed, (or released), plus any movement in
the nine sliders. I have set up the sliders to correspond to the draw bars
on a Hammond Organ. (The draw bars determine which harmonics are used to
modify the sound produced. A very large number of variations are
possible.) So armed with the MIDI information, I hope to write a program
that can simulate a Hammond Organ. Possibly a pipe dream, but time will
tell.

But to get started I need to be able to read the MIDI stream, which at the
moment is coming through a USB port. Hence my request for any info on code
that might help help me to do that.

Thanks for your reply,

Noel

Hi,

I think my subject line was misleading. My USB device is a musical
keyboard rather than an external HD.

I inherited the keyboard from my step son. It happened to be a MIDI
keyboard. This turned out to be just what I needed, as it tells me
exactly the note number that has been pressed, (or released), plus any
movement in
the nine sliders. I have set up the sliders to correspond to the draw
bars
on a Hammond Organ. (The draw bars determine which harmonics are used to
modify the sound produced. A very large number of variations are
possible.) So armed with the MIDI information, I hope to write a program
that can simulate a Hammond Organ. Possibly a pipe dream, but time will
tell.

But to get started I need to be able to read the MIDI stream, which at the
moment is coming through a USB port. Hence my request for any info on
code that might help help me to do that.

Seems to me like reinventing the wheel...
Did you consider to use or even look into source code of existing free b3
emulators??
There are at least bristol, setbfree, beatrix...

Stefan

Wow!
Thanks to all who have responded to my queries - I've had a preliminary
look at nearly all of your suggestions and you have certainly given me
plenty of leads.

Cley - you raised a point about not being related to LO. I have done a lot
of H2 database development in LO, and I was planning to use a database to
store the current state of the keyboard keys and sliders, plus the sine
wave files, one for each note. And probably harmonics info for each note.
I hope to use LO Basic macros for the actual program. Python macros might
be another possibility, but I currently know nothing about them.

Mike - your comment about the hammer is probably relevant in my case! My
hammer is databases which is where I've had all my experience. Over the
years I've developed quite a library of routines that I use all the time,
so that is where I turn for each new project.

Philip and Paul - I've had a look at Midiox and Realterm. Either could
well be the answer for reading MIDI data.

Stefan - I quite like trying to reinvent the wheel! Often the wheels that
are available do only 80% of what I want. If I write something myself, I
can make sure it does all I want it to, or if it doesn't, I can often
modify it so that it does. Pretty time consuming I know, but I'm retired
now, and the Organ is something I've been thinking of doing for years, but
have till now, never had the time to attempt it. Maybe I'll succeed, maybe
I won't, but either way I'll probably learn things along the way.

Thanks again to you all for your comments and suggestions - much
appreciated.

Noel