Hi Ben,

> Good to hear your driver is progressing and no wheels need to be
> reinvented :)

yeah, neither the right nor the left wheel needs to be reinvented :)

> On Tue, Dec 04, 2007 at 02:09:58PM +0100, Andre Roth wrote:
> > Problems:
> >  - the wheels generate signed midi control messages, and mixxx understands 
> > only unsinged midi
> 
> MIDI is inherently unsigned, so I'm not sure what you mean. Unless as Jan
> said you mean that they are centred on 64 on transmit less or greater
> than that according to direction and velocity? But that isn't "signed"
> in the true sense, you still get an unsigned int in the range 0-127
> as you do for all MIDI messages. Anyway, if that is what you mean,
> it's already supported in mixxx via the spread64 midioption. If not,
> can you explain further?

well, first of all, I need to investigate further. The amidi --dump works not 
correctly with my driver. The messages are on one line (midi format is ok) and 
go from 0x00 to 0x3F (positive value 0 to 63) and from 0x40 to 0x7f (negative 
values from -1 to -64), IIRC.

in the mixx source code I had to add stuff like this:

 void ControlPotmeter::setValueFromMidi(MidiCategory, double v)
 {
+    v += 64.; // convert signed midi value (-64 - 63) to (0 - 127)

in order to get it working correctly. maybe this is not needed or handled 
elsewhere. 

in the midiobjectalsaseq.cpp I had to add:

+                    if( midivalue > 63 )
+                        midivalue = midivalue - 128;

my main goal was to get it working, so I could play around :) this is why I 
didn't ask on the list yet. 

more info will follow soon !

regards

 andré

-- 
Andre Roth   | <[EMAIL PROTECTED]>
GPG: FADF988E| 0959 4D7C F8ED DF4B 90A6  CF71 9EDF 52D1 FADF 988E

Attachment: signature.asc
Description: PGP signature

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to