>> Your program behaves as if it reads two bytes in each call. Please
print out the value of "err" when it succeeds.
This is for one note on, one note off.
Opening MIDI input port: "virtual"
90
Bytes read: 1
Byte type size: 1
3C
Bytes read: 1
Byte type size: 1
80
Bytes read: 1
Byte type size: 1
Maxime Chevalier-Boisvert wrote:
> This is what I get for a single key press if I log each byte I read:
>
> 90
> 4B
> 80
> 00
>
> As you can see, there's a key on, and then a second byte (which seems to
> be the velocity), but no byte to indicate which key is being pressed!
>
> I'm reading the
It seems I can sidestep the bug by setting my raw midi port to
nonblocking mode and then reading as much data as I can with each call.
Is there somewhere I can report this bug so it will get fixed in future
releases?
- Maxime
On 11-02-11 11:30 PM, Maxime Chevalier-Boisvert wrote:
> Interesting
Interestingly, if I use the same blocking loop and try to read the bytes
3 at a time, there are no dropped bytes. It only seems to happen when I
ask to read one byte at a time.
- Maxime
On 11-02-11 02:07 AM, Clemens Ladisch wrote:
> Maxime Chevalier-Boisvert wrote:
>> Hmm, seems I can't. I don'
>> Try running only "amidi --dump -p virtual", and then connecting the
hardware sequencer port to the virtual on
It works fine when amidi connects to it. Shows 3 bytes for each key
on/key off.
>> When the sequencer converts the messages back to raw MIDI bytes, it
uses running status by defau
Maxime Chevalier-Boisvert wrote:
> Hmm, seems I can't. I don't remember how I did it last time. When my
> virtual port is connected to the hardware, amidi reports the hardware
> port is busy.
Yes, raw MIDI ports don't allow sharing; this is why you should use
sequencer ports.
Try running only "am
Hmm, seems I can't. I don't remember how I did it last time. When my
virtual port is connected to the hardware, amidi reports the hardware
port is busy. Do you know of any bug in ALSA that could cause this, or
any programming error on my part that could cause bytes to be dropped
when I'm on a v
Maxime Chevalier-Boisvert wrote:
> I seem to be experiencing a problem with raw midi access.
>
> I wrote a program to capture MIDI bytes using the ALSA raw MIDI API. It
> works 100% fine if I connect directly to the device for my hardware MIDI
> controller (hw:1,0,0). However, if I try to connect
I seem to be experiencing a problem with raw midi access.
I'm on Ubuntu 10.04, using ALSA 10.0.22.
I wrote a program to capture MIDI bytes using the ALSA raw MIDI API. It
works 100% fine if I connect directly to the device for my hardware MIDI
controller (hw:1,0,0). However, if I try to connect t