mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Junichi Uekawa <dancer@netfort.gr.jp>
To: Takashi Iwai <tiwai@suse.de>
Cc: Junichi Uekawa <dancer@netfort.gr.jp>,
	alsa-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [Alsa-devel] [BUG] 2.6.16-rc4 git, ALSA USB-MIDI does not give NOTEOFF event for M-Audio Keystation 88es, but NOTEON with velocity=0
Date: Mon, 27 Feb 2006 22:52:22 +0900	[thread overview]
Message-ID: <871wxo29k9.dancerj%dancer@netfort.gr.jp> (raw)
In-Reply-To: <s5hek1pt2xs.wl%tiwai@suse.de>

Hi,

> > I'm seeing that USB MIDI keyboard (M-Audio Keystation 88es) is
> > generating note-on events on both note-on and note-off. The difference
> > being that note-off is generating an note-on event with velocity '0'.
> > 
> > The following code in seq_midi_emul.c(snd_midi_process_event) looks
> > suspiciously like what's needed for this device:
> > 
> >         /* Make sure that we don't have a note on that should really be
> >          * a note off */
> >         if (ev->type == SNDRV_SEQ_EVENT_NOTEON && ev->data.note.velocity == 0)
> >                 ev->type = SNDRV_SEQ_EVENT_NOTEOFF;
> 
> This code is irrelevant.  This is for MIDI emulation like emu10k1
> WaveTable, not for the real MIDI device.
> 
> Basically the given behavior is not a bug.  The sequencer handles
> note-on with velocity 0 as it is.  As a strict definition, note-off
> and note-on with zero velocity are different although they are used
> widely as identical in order to save bytes.

Thanks; I've looked into MIDI specs, and it was documented everywhere;
it was just not obvious when I was looking into ALSA docs.

regards,
	junichi
-- 
dancer@{debian.org,netfort.gr.jp}   Debian Project

      reply	other threads:[~2006-02-27 13:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-26 15:42 Junichi Uekawa
2006-02-27 12:13 ` [Alsa-devel] " Takashi Iwai
2006-02-27 13:52   ` Junichi Uekawa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871wxo29k9.dancerj%dancer@netfort.gr.jp \
    --to=dancer@netfort.gr.jp \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome