#1193 MIDI notes dropped when recording

midi (93)

When recording, Rosegarden will occasionally drop a MIDI note or two, a problem that seems to increase after around 5-10 minutes of recording. The terminal output corresponding to each dropped note is "WARNING: NOTE OFF received without corresponding NOTE ON". Here are my observations:

  1. The problem never occurs for me when playing a MIDI instrument through Rosegarden with my keyboard, UNLESS I am recording. I have performed entire 1.5 hour sets with my band using Rosegarden as a passthrough without a single note dropping.

  2. Rosegarden's CPU meter seems to climb quite high when recording MIDI, even if a software synth is not being used. As far as I can tell, when notes are dropping, upon glancing at my screen, I only remember seeing the CPU meter at full.

  3. I have been able to reproduce this problem consistently: Start rosegarden from a console, select a track to record, hit record, turn off the metronome and go at it. I usually play with lots of fast notes and big chords, and it sometimes takes between 5-10 minutes before I see my first WARNING message in the console window.

  4. I have been able to reproduce the problem on three different systems. Here are their stats:

System 1
CPU: AMD Athlon 64 4000+ (single-core)
RAM: 2048 MB
OS: PCLinuxOS 2007 (w/ latest updates from repos)
Kernel: (realtime)
Rosegarden ver.: 1.7.2 (compiled from source)
Sound Card: Sound Blaster Audigy 2 ZS
MIDI Input: SB Audigy 2 MIDI in on external unit

System 2
CPU: Pentium 4 @ 2.8 GHz
RAM: 1024 MB
OS: PCLinuxOS 2007 (w/ latest updates from repos)
Kernel: (realtime)
Rosegarden ver.: 1.7.2 (compiled from source)
Sound Card: Sound Blaster Live!
MIDI Input: SB Live! MPU-401 (game connector)

System 3
CPU: Pentium 4 @ 2.26 GHz
RAM: 1536 MB
OS: Ubuntu Studio 8.04 (Hardy)
Kernel: 2.6.24-19-rt (realtime)
Rosegarden ver.: 1.6.1 (from repository)
Sound Card: Sound Blaster Audigy
MIDI Input: M-Audio Uno (USB)

Hopefully somebody can find the cause of this bug, because if there is a chance of any notes dropping, I cannot trust Rosegarden with MIDI recording at all.


Bugs: #1350
Bugs: #1391


  • D. Michael McIntyre

    This one is hard to pin down. I can't play a keyboard well enough to reproduce this, so I dutifully banged the closest thing to lots of fast notes and big chords I could muster. I did reproduce the bug. I got one of those warnings after a small eternity.

    Then I reproduced it again banging on mostly one key repeatedly for four minutes.

    Then I attempted to reproduce it by banging briefly, waiting about five minutes, and playing a few keys, waiting another five minutes, and playing a key for another minute. That failed.

    Since it looks like a single key bang will eventually reproduce the error, it seems like a good idea to build a LEGO Mindstorms robotic piano key whacker tomorrow, for further testing.

    Though I honestly haven't the slightest clue where to even begin looking for this one, or how to debug it.

  • Chris Collins

    Chris Collins - 2008-10-21

    If anybody is working on this, I would love to help out by testing. I can really put a piano through its paces. Just e-mail me at s_chriscollins AT hotmail.com.

  • Chris Collins

    Chris Collins - 2008-11-14

    Since I posted the initial bug report, I have noticed a few things that may be helpful.
    1) The bug clearly exhibits itself only when recording long sequences, almost as though some sub-process ends up "in over its head", and can't keep up over time. I've also seen the bug occur without having to play lots of fast notes, although it's easier to reproduce if you've got monster chops.
    2) When notes drop, it's almost as though the entire input blanks out for a second. If I play a chord during this momentary lapse, the entire chord will be dropped. Perhaps a sub-system is failing to listen to the input for a brief time?
    3) The bug only seems to affect note-on events. I've never noticed any note-off events being dropped, which would result in notes continuing to sustain even after the key is released. I have not tested with continuous controllers to see if they are affected or not. That would be hard to test, because I'm not so sure I would get a terminal message like I do when a note-off is received without the corresponding note-on.

    Hope this helps :)

  • S. Christian Collins

    For what it's worth, I haven't been able to reproduce this bug yet with thorn. Has this issue been resolved? I'll post back if I run across the problem again.

  • Vincent Jousse

    Vincent Jousse - 2010-06-08

    Sorry about it, but I can reproduce it very often. I just can't use Rosegarden because of this.
    I use Rosegarden to record drums MIDI tracks (I play drums on a TD-12 electronic drums).
    The note loss average is between 5 and 10 percent.

    Let me know how I can help to solve this bug, I would like to keep Rosegarden as my MIDI recorder.

  • Julie S.

    Julie S. - 2010-06-08

    Hello vincouille,

    What version of RG are you currently using?

    There were several changes made to the way we handle MIDI note ON and OFF to assist in the very short duration notes encountered when recording drums and when two note ON's are received before a note OFF is received. This is in svn trunk (Betty Prior 10.06 snapshot).

    If you are able to try your setup using the svn trunk and report back, it would be very helpful. The bug may be fixed, or we may need to investigate further.

    Julie S.

  • S. Christian Collins

    Since I have been using Rosegarden 10.02, I have not been able to reproduce this problem, so I believe the bug has been fixed.

  • Vincent Jousse

    Vincent Jousse - 2010-06-08

    I'm using Rosegarden 10.02.

    I'm not a "power linux user", so the only way for me to test 10.06 snapshot is to find it somewhere on a repository ...
    Do you provide one ?

  • Julie S.

    Julie S. - 2010-06-11

    I don't have any good solutions for you. You will need to wait until your distro maintainer updates to the latest release 10.06 (coming soon) for the changes to take affect.

  • D. Michael McIntyre

    • status: open --> closed
  • D. Michael McIntyre

    Looks like either Julie did what could be done and it's basically fixed, or this is the same kind of thing Ted is chasing with the way Rosegarden can't record that Beethoven file. I highly suspect any remaining problems here are tied strongly to the Beethoven problem, and will all get resolved at the same time. Since there was a problem that was clearly fixed here, I'm just going to close this report and consider this case closed. Doing that won't affect progress on the Beethoven problem one way or the other.

  • Ted Felix

    Ted Felix - 2013-05-30

    I have been searching for this bug for some time to see if I could scare up some testers. These guys sound like they would push this thing to its limits. Wonder if any of them would be interested in firing up rg for old times' sake to see if they can trust it now. They're probably all long gone....

    Duplicate of [#1350] Can't Record Beethoven



    Bugs: #1350

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks