[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] MIDI Iorecs



Hi,

I'd like to know/say :
- why the MIDI device is a tty by default ?
  Sure it's very easy to use it as a debug output, and there'are probably
  no application using /dev/midi as it's to slow to process musical data
  (10ms slices : too long). Is there any other reason ?
  
- I wrote something and I've hooked the keyboard vectors (midisys, midivec,
  vmiderr). As my MIDI interrupt driver uses IOREC structure, it would be
  good if I could have FreeMiNT aware of it, so that a standard Bconin would
  still work, but I don't know how to declare new IORECs.
  
- I think that a /dev/midi is not suitable for musical data processing, as
  it's too slow (not MiNT fault at all, it's just that this device doesn't
  provide any realtime guarantee, as well as serial dev).
  On my Falcon, a Bconout( 3, Bconin(3) ) loop works rather well if there
  are no other important process running : I can play on my keyboard and
  there's no noticable delay. But as soon as there are other processes 
  running, there are delays, and time to time there are lots of notes that
  are played at the same time :-(
  
  So how to do ? :-(
  Do you know how it is managed in real time OSes ?

Vincent