On Monday 16 June 2003 09.51, Joern Nettingsmeier wrote: [...] > > What you get is plain <control, value> tuples, and that's all > > there is to it. (Well, it's all I *want* anyway, as I don't want > > to do stuff that's outside the MIDI spec...) > > > > Here's some code, which isn't heavily tested, but does seem to do > > the job: > > either i have not understood the semantics of nrpm, or nrpm events > are not detected as such. when i move a slider, i always get four > separate normal controller events: two on 98/99 encoding the > control number as a 14bit value, and two on 6 and 38 encoding the > data.
Well, that does sound like your ALSA setup isn't parsing those CCs, but just letting them through. I don't get the raw CCs at all here, but I do get the decoded NRPNs. (IIRC, that's why I threw the NRPN code in in the first place. I have CC parsing code for it as well, but those CCs never arrived.) I've been using an Audigy card with various ALSA drivers from 0.9.0rc6 and up, but I'm not entirely sure this works with versions before 0.9.3. The ALSA sequencer support in Audiality isn't very old, so it might be that I've only used it with 0.9.3. > the case SND_EVENT_NONREGPARAM is never reached. > now one of three things must be broken (in decreasing order of > likelihood): me, my wacky peavey controller, or alsa-lib. I dunno 'bout *you*, but your code makes one suspect. ;-) If the controller actually sends the CCs involved in NRPNs, it *should* work, if ALSA cares to decode it - and this is a generic MIDI thing, so one would assume it's done in some place like alsa-lib, rather than inside drivers. I'm not sure about that, though. //David Olofson - Programmer, Composer, Open Source Advocate .- The Return of Audiality! --------------------------------. | Free/Open Source Audio Engine for use in Games or Studio. | | RT and off-line synth. Scripting. Sample accurate timing. | `-----------------------------------> http://audiality.org -' --- http://olofson.net --- http://www.reologica.se --- ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel