Pedro Lopez-Cabanillas wrote:
> On Tuesday 11 March 2003 18:36, Clemens Ladisch wrote:
> > Jordi Mallach wrote:
> > > any comment on the last "stacatto" bug I reported after the big
> > > report?
> >
> > I couldn't reproduce it on my machine (current CVS instead of 0.9.0beta8,
> > 2.4.18 instead of 2.4.2, Roland Sound Canvas connected with USB instead of
> > SB MIDI port).
> >
> > I have noticed that calling SNDCTL_SEQ_RESET (as well as close()ing the
> > handle to /dev/music) sends "all notes off", "controller reset" and
> > pitch-bend messages to all channels on all ports, but that should result
> > in a delay of at most 40ms before the first note, and not in a timing
> > problem at a later note.
>
> After that messages, there is a 0xfe (Active Sensing) message (the rawmidi
> close() default policy). Running the test program with a Roland SC-88
> (connected with a MIDI cable to some  interface drived by ALSA) it shows this
> effect (first long note is clearly shortened). After the program reachs a
> delay of about 300ms the problem is solved, so i think that the Active
> Sensing can be guilty here.

Yes, that's it! My SC-8820 doesn't care for Active Sensing because the
connection status is handled by the USB protocol.

> I have to say that with my other external synth (an old Roland JV-80) the test
> program runs fine (every note with the right length), but shows a "Midi
> Communication Error" in it's LCD display. The SC-88 shows another error
> message saying "Midi Off Line" every time a program close()s a rawmidi or OSS
> device.

One could say "This behaviour is by design", but that's a Microsoft quote.
;-)

> I know that using ALSA rawmidi API, there is a function to prevent this, doing
> something like this:
>               snd_rawmidi_params_set_no_active_sensing(handle_out, params, 1);
> But, how to do something like that for OSS programs? (without fixing the OSS
> program itself, of course)

Neither OSS nor ALSA sequencer ports can change parameters of the
underlying rawmidi port. Maybe there should be a module parameter for
this.


Regards,
Clemens




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to