Hi Sean,
Since we're entering QtScript territory, here's an example MixxxScript I
wrote last year. If you compile Mixxx with "scons script=1", you can
load this script into the script studio and play with it.
Thanks,
Albert
/*
* Low pass filter sweep on Channel 1
* Copyright Albert Santoni 2007
*/
var button = QPushButton();
function doSweep() {
var bpm = Mixxx.getValue("[Channel1]", "file_bpm")* (1 + Mixxx.getValue("[Channel1]", "rate")/10);
if (bpm == 0)
bpm = 120;
else if (bpm < 70) //Catch when the BPM detection screws up
bpm *= 2;
//Interpolate over 32 beats
var time = 60/bpm * 16 * 1000;
var s = Mixxx.getValue("[Channel1]", "filterMid");
var s = 1; //Start in middle
var e = 0; //End at zero
Mixxx.startFade("[Channel1]", "filterMid");
Mixxx.point(0, s);
Mixxx.point(time, e);
Mixxx.point(time*2, s);
Mixxx.endFade();
Mixxx.startFade("[Channel1]", "filterHigh");
Mixxx.point(0, s);
Mixxx.point(time, e);
Mixxx.point(time*2, s);
Mixxx.endFade();
}
button.text = "Sweep";
button.clicked.connect(doSweep);
button.show();
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel