RT MIDI

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Drumfix
Established Member
Posts: 299
Joined: Mon Jan 26, 2009 5:15 pm
Been thanked: 11 times

Re: RT MIDI

Post by Drumfix »

If using a USB audio/midi device make sure that the ksoftirqd process on the core where the USB host controller irq is running is also running at realtime priority. And move away all other irqs from this core.
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: RT MIDI

Post by merlyn »

raboof wrote: Looks like the MPU-401 had a Pulses-Per-Quarter-Note (PPQN) of 24
24 seemed like a strange number until I realised the significance of 24 = 2 * 3 * 4

1 tick = 64th note triplet
2 ticks = 32nd note triplet
3 ticks = 32nd note
4 ticks = 16th note triplet
6 ticks = 16th note
8 ticks = 8th note triplet
12 ticks = 8th note

That means this old standard had a musical time base, in contrast with a modern system that uses the sample rate as the time base.
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: RT MIDI

Post by merlyn »

I found this on the Ardour blog :
Paul Davis wrote:There is a lot of work to do on Ardour's MIDI workflow. But before that can happen, there are several subtle errors that are caused by the way released versions of Ardour have handled musical time. When you edit and move a MIDI note forward by a quarter note, that process would actually involve several conversions back and forth between time measured in samples and time measured in musical units, and the result is (often) small errors accumulating that lead to the note beginning and end being "wrong".
User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

Re: RT MIDI

Post by khz »

- https://www.midi.org/articles-old/the-m ... rototyping,
- https://www.midi.org/articles-old/rtp-m ... r-networks.
This article describes limitations of the MIDI standard and shows ways to get around several issues by increasing transmission speed and controller resolutions. Read here about the limitations of MIDI.
Source: http://www.96khz.org/oldpages/enhancedm ... ission.htm
Most PC's limit seems to be 460kBaud, which I achieved using Linux and the wxWidgets Library. See my PDF-document here for a detailed explanation provided for Joachim Bürmann. http://www.iftools.com (CTB library). With 460kBaud piano control in real-time is principally possible. With special hardware, even 920kBaud is possible using Linux. So from the PC side, it was possible to switch to an enhanced MIDI standard with increased speed.
The article is from the year 2000. :-)
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
Post Reply