Thanks. I wrote that e-mail from my phone on the train so svn browse
wasn't available.

I should also add that you may need to tweak exactly what message gets
sent since I can't remember exactly what I did there. I imagine it's
not to difficult to follow though. Like Albert said feel free to mail
the list or me personally.

Adam

On 30/11/2007, Albert Santoni <[EMAIL PROTECTED]> wrote:
> And just to fill in some details on what Adam said...
>
> The Windows MIDI code is located in midiobjectwin.cpp, and the Linux
> code is in midiobjectalsaseq.cpp. The function you need to implement in
> MidiObjectAlsaSeq is "sendShortMsg()", and you'll find the Windows
> implementation of it is two lines, like Adam said. :)
>
> If you haven't already, you'll probably also want to check out the
> "Hercules DJ Console Mk2.midi.xml" which supports the LEDs on that
> device. (Look for the XML <lights>/<light> blocks.)
>
> Anyways, if you get stuck, don't be afraid to send any of us (or
> mixxx-devel) an email.
>
> Thanks!
>
> Albert
>
> On Fri, 2007-11-30 at 09:50 +0000, Adam Davison wrote:
> > Hi Oriol,
> >
> > Good to hear you're planning on working on this. Basically you just
> > have to implement one function in the midi code. Look at the windows
> > version for an example.
> >
> > On windows, all i had to do was open the device for output as well as
> > input and then the function to send was around two lines, so this is
> > probably a great project for someone wanting to get back into coding
> > like yourself.
> >
> > Although we're now sort of in beta i imagine this is a small enough
> > change to go into 1.6.0.
> >
> > Adam
> >
> > On 30/11/2007, Oriol Puigbó <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I also got a BCD3000 last week and I'm trying to get everything working on
> > > Ubuntu Gutsy, although I haven't much free time so I can't promise 
> > > anything.
> > > Using the xml file that Ric sent, most buttons are working fine. What is
> > > left to do is getting the leds and the rotatory wheels to work. I've 
> > > started
> > > with the leds.
> > >
> > > The BCD3000 manual explains all the command changes that should be sent to
> > > the console to turn leds on and off.
> > >
> > > For my initial tests, I've choosen one led, labelled CUE B. According to 
> > > the
> > > manual, I have to send a Control Change to MIDI CC No. 1 with a value 
> > > higher
> > > than 63 to turn it on, and a value lower than 64 to turn it off. I've been
> > > playing with the command "aplaymidi" and after getting a well formed midi
> > > file for sending these values, I can turn the led on and off from a
> > > terminal. So it should be possible to get it working on Linux.
> > >
> > > Now I'm open to any suggestions for moving forward. It is my understanding
> > > from some previous messages I've seen on this list that mixxx doesn't know
> > > how to send midi control changes in Linux. So I plan to study a little bit
> > > the "aplaymidi" source code to try to discover the code used to send the
> > > commands, and then try to integrate it in mixxx. However it's been ages
> > > since I last coded anything so I'm not sure I'll be able to get it 
> > > working.
> > >
> > > If you have any suggestions on an easiest way forward it would be much
> > > appreciated.
> > >
> > > Cheers,
> > >
> > > Oriol
> > >
> > >
> > > >
> > > > 2007/11/22, Richard Morgan < [EMAIL PROTECTED]>:
> > > > >
> > > > > Hi,
> > > > >
> > > > > I unfortunately work in an evil retail empire which means I will have 
> > > > > no
> > > > > free time to do anything until after Christmas! If you want to include
> > > the
> > > > > xml file that's fine by me but some more work will be needed to get 
> > > > > the
> > > > > BCD3000 fully supported.
> > > > >
> > > > > Cheers
> > > > >
> > > > > Ric
> > > > >
> > > > > ----- Original Message ----
> > > > > From: Albert Santoni <[EMAIL PROTECTED]>
> > > > > To: Richard Morgan <[EMAIL PROTECTED] >
> > > > > Cc: mixxx-devel <[email protected]>
> > > > > Sent: Monday, 19 November, 2007 4:19:29 PM
> > > > > Subject: Re: [Mixxx-devel] BCD3000 update
> > > > >
> > > > > Hi Richard,
> > > > >
> > > > > How far have you gotten with this stuff? Should we be pulling this 
> > > > > MIDI
> > > > > mapping in for the 1.6.0 beta release?
> > > > >
> > > > > Thanks,
> > > > > Albert
> > > > >
> > > > > On Tue, 2007-10-23 at 18:25 +0000, Richard Morgan wrote:
> > > > > > Hi,
> > > > > >
> > > > > > A "first draft" for supporting the BCD3000 midi controller is
> > > > > available here:
> > > > > >
> > > > > > http://www.ricland.co.uk/mixxx/BCD3000.midi.xml
> > > > > >
> > > > > > I have the basic functions working (ie all faders and most buttons
> > > > > with relevant functions). Unfortunately there is no midi send support 
> > > > > in
> > > > > the linux alsa midi drivers which has rather stalled the mapping of 
> > > > > the
> > > > > leds. There is also a data request midi command which can be sent to
> > > > > return all of the midi cc values from the controller, this would be
> > > > > handy to synchronise the onscreen controls to the positions of the
> > > > > hardware
> > > > > controls on startup.
> > > > > >
> > > > > > The spread64 controller does work for the rotary controls but gives
> > > > > quite sluggish performance as it uses the 63/65 values as stop values 
> > > > > so
> > > > > moving the wheel slowly doesn't produce any result. Also the midi
> > > > > events generated don't always finish with a 63/65 which leaves the
> > > > > pointer
> > > > > "creeping". In terms of resolution a quarter turn of the wheel 
> > > > > produces
> > > > > approx 24 midi events. Rather than using a timer, as suggested
> > > > > previously, you could define an interval, say 1/20 of a second, and 
> > > > > have
> > > > > a
> > > > > formula something like
> > > > > >
> > > > > > seek = interval * (<midi cc value> - 64)
> > > > > >
> > > > > > My only problem with using a timer is that the wheel would overshoot
> > > > > waiting for the end of a timer period. The interval method has the
> > > > > disadvantage of introducing the steps of the interval length but
> > > > > hopefully
> > > > > we can choose an interval which is small enough to provide fine
> > > > > adjustment but then with enough acceleration to make fast scrolling
> > > > > possible.
> > > > > >
> > > > > > The only other small issue is that the cue_set button needs 2 
> > > > > > presses
> > > > > to set the cue point, which seems strange.
> > > > > >
> > > > > > In terms of audio outputs in linux using the generic alsa-usb module
> > > > > provides one four channel output device which can be routed as two
> > > > > stereo outputs (main and headphone) the latency in linux also seems to
> > > > > be
> > > > > fairly low by default. The instruction manual confirms that four 
> > > > > channel
> > > > > output in windows is only available using the asio drivers, the wdm
> > > > > direct sound driver only supports 2 channel output, ie headphone and
> > > > > main
> > > > > are cloned. The latency using these drivers is pretty high though. I
> > > > > have tried using a separate 6 channel usb soundcard but you can only
> > > > > choose one output device and it only produces stereo output. I think
> > > > > this
> > > > > is a limitation of the Tracktor LE software but I don't want to pay 
> > > > > for
> > > > > the full version without guarantees.
> > > > > >
> > > > > > It is rather unfortunate as the hardware is very good and tracktor 
> > > > > > LE
> > > > > should be quite competent. It seems only a small proportion of laptop
> > > > > computers are affected (My laptop is the only of my 3 computers with
> > > > > windows installed and the one I really wanted to use the BCD3000 
> > > > > with.),
> > > > > but the whole package is let down in my case by the asio driver issue.
> > > > > The support forum on behringer's website contains more information
> > > > > about which laptops are affected and assures me that they are working 
> > > > > on
> > > > > a
> > > > > fix for the problem.
> > > > > >
> > > > > > It's not all doom and gloom though as I now have enough working to
> > > > > use mixxx and linux to get the four channel audio output from the 
> > > > > unit.
> > > > > >
> > > > > > Now is probably not the best time to admit this but my c++ skills 
> > > > > > are
> > > > > beginner at best, I wonder if anyone else is working on getting the
> > > > > alsa midi output working? I am certainly willing to put some effort 
> > > > > into
> > > > > getting this working myself but it's going to take some time to get my
> > > > > c skills up to scratch. I am rather throwing myself in at the deep end
> > > > > so any pointers on where to start would be appreciated.
> > > > > >
> > > > > > I'll leave it there for now.
> > > > > >
> > > > > > Ric
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >       ___________________________________________________________
> > > > > > Want ideas for reducing your carbon footprint? Visit Yahoo! For Good
> > > > >   http://uk.promotions.yahoo.com/forgood/environment.html
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > -------------------------------------------------------------------------
> > > > > > This SF.net email is sponsored by: Splunk Inc.
> > > > > > Still grepping through log files to find problems?  Stop.
> > > > > > Now Search log events and configuration files using AJAX and a
> > > > > browser.
> > > > > > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > > > > > _______________________________________________
> > > > > > Mixxx-devel mailing list
> > > > > > [email protected]
> > > > > > https://lists.sourceforge.net/lists/listinfo/mixxx-devel
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >       ___________________________________________________________
> > > > > Want ideas for reducing your carbon footprint? Visit Yahoo! For Good
> > > http://uk.promotions.yahoo.com/forgood/environment.html
> > > > >
> > > > >
> > > > >
> > > -------------------------------------------------------------------------
> > > > > This SF.net email is sponsored by: Microsoft
> > > > > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > > > _______________________________________________
> > > > > Mixxx-devel mailing list
> > > > > [email protected]
> > > > > https://lists.sourceforge.net/lists/listinfo/mixxx-devel
> > > > >
> > > >
> > > >
> > >
> >
> > -------------------------------------------------------------------------
> > 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
>
>

-------------------------------------------------------------------------
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