All of lore.kernel.org
 help / color / mirror / Atom feed
From: Haakon Riiser <haakon.riiser@fys.uio.no>
To: alsa-devel@lists.sourceforge.net
Subject: Re: SysEx overflow when using the MIDI sequencer event interface
Date: Sat, 19 Aug 2006 22:01:54 +0200	[thread overview]
Message-ID: <20060819200154.GA1054@fox> (raw)
In-Reply-To: <20060819102421.GA1991@fox>

A little followup to my previous post:  I just placed a printk()
in snd_emu10k1_midi_output_trigger() that prints the number of
bytes just sent to the SB Live's MPU-401.  I also also increased
the dmesg size to 512 KiB to make sure that nothing was lost.

I had expected that by summing the entries in dmesg after having
run 'amidi -s <sysex-file>', I would get the same number as the
number of in bytes of the sysex file, but that didn't happen.

When I try to insert a 18584 byte long sysex file using amidi,
dmesg shows a byte count of approx. 10868 (+/- a few bytes).
My own toy-version of amidi that uses the event interface gets
consistently less than ten(!) bytes in the dmesg log.  If I insert
a delay between each sysex event of about 100 ms, the byte count
increases to almost 300.

That is _far_ too low a number to explain how the MIDI tunes
can sound the same as when I load the sysex data with amidi.
If only 300 sysex bytes were actually sent to the MIDI device,
I would obviously hear the difference between that and amidi's
method that got over 10000 bytes through.

None of this makes any sense to me.  I thought all bytes pushed onto
the MPU-401 were sent through snd_emu10k1_midi_output_trigger(), but
this experiment contradicts that.  I'm having trouble getting the
big picture of how the MIDI parts in ALSA works, so a little help
would be appreciated. :-)

-- 
 Haakon

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

  reply	other threads:[~2006-08-19 20:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-19 10:24 SysEx overflow when using the MIDI sequencer event interface Haakon Riiser
2006-08-19 20:01 ` Haakon Riiser [this message]
2006-08-20 11:19   ` Haakon Riiser
2006-08-21  8:44     ` Clemens Ladisch
2006-08-21  9:34       ` Haakon Riiser
2006-08-21 11:03         ` Clemens Ladisch
2006-08-21 11:52           ` Haakon Riiser

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=20060819200154.GA1054@fox \
    --to=haakon.riiser@fys.uio.no \
    --cc=alsa-devel@lists.sourceforge.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.