On Thu, 2008-02-07 at 12:40 +0000, Ben Wheeler wrote:
> On Thu, Feb 07, 2008 at 03:09:03AM -0500, Garth Dahlstrom wrote:
> > * Track ending warning flash of overview or waveform control during last 5%
> > or 30 secs of song.
> >   No idea how to tackle this yet...
> 
> A flash makes sense on something you're not looking at the whole time
> (like a CDJ), as it's trying to alert the corner of your eye. On mixxx
> though where you are probably looking at it always, perhaps it would be
> sufficient for the waveform to change colour eg to amber at -30s, then 
> to red at -15s? 

Yeah, perhaps those colours should be defined in the skin, so they don't
end up clashing with the colour scheme of the skin too much. 

For wherever you need to code this, there's already convenient
"playposition" and "duration" ControlObject:

    playPos = new 
ControlObjectThreadMain(ControlObject::getControl(ConfigKey(group, 
"playposition")));    //Range: 0.0 to 1.0
    duration = new 
ControlObjectThreadMain(ControlObject::getControl(ConfigKey(group, 
"duration")));    //Duration in seconds

So, if you wanted to do something at the -30s mark, you would do:

    if (duration->get() * (1 - playpos->get())) <= 30)
    {
        //do 30 second mark action here
    }

Cool ideas floating around here though!

:)

Albert

> Ben
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Mixxx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to