Mixxx 1.10 beatloop scripting issue

XML preset files and script files (.js) for MIDI and other controllers.

Moderators: garth, User Customization Moderators

Mixxx 1.10 beatloop scripting issue

Postby Geert » Sun Dec 11, 2011 4:39 pm

I'm trying to use the new beatloop function in Mixxx 1.10 in my MIDI script. I'm trying out the 2 methodes described in the WIKI:

Methode 1:
engine.setvalue(this.group,"beatloop",8)

An 8 beat loop is started but the corresponding button doesn't light up in the Mixxx GUI.

Method 2:
engine.setvalue(this.group,"beatloop_(8)",1)

This doesn't work at all (no loop and no button activated).

Can anyone shed some light on this?
Geert
 
Posts: 39
Joined: Sat Oct 29, 2011 4:54 pm
Location: Belgium

Re: Mixxx 1.10 beatloop scripting issue

Postby rryan » Mon Dec 12, 2011 5:53 pm

Hi Geert, what happens if you set beatloop_8 to 1? (i.e. what you tried but without parentheses). I just filed a bug about quirks with beatloop COs recently: https://bugs.launchpad.net/mixxx/+bug/902641
The Mixxx Manual, Wiki and FAQ are the best place to start for documentation and support.
Please report any bugs you find to our Bug Tracker.
rryan
Mixxx Developer
 
Posts: 973
Joined: Thu Mar 26, 2009 12:14 am
Location: Cambridge, MA

Re: Mixxx 1.10 beatloop scripting issue

Postby Geert » Mon Dec 12, 2011 7:58 pm

rryan wrote:Hi Geert, what happens if you set beatloop_8 to 1?
This works fine, thanks! (The syntax shown in the WIKI is probably a bit misleading). This command also enables the corresponding beatloop button in the GUI so it works as expected.

Now that I got this working I also realise it's probably normal that 'engine.setvalue(this.group,"beatloop",8)' doens't enable the beatloop button because you can specify any number of beats.

Concerning the bug you filed; I'm using 'reloop_exit' to exit a loop. The advantage of this is that one controller button can be assigned to exit (or re-enter) any type of loop (a beatloop or a manual loop). I don't want to toggle a beatloop using one button because I want to be able to press the button again to trim the loop position, or to change the number of beats in the loop. The first would be comparable to how you would trim the 'loop-in' or 'loop-out' position of a manual loop, however I'll use it to move 'loop-in' and 'loop-out' at the same time so the length of the loop doesn't change. I guess this will still be possible with one of the new commands you proposed.
Geert
 
Posts: 39
Joined: Sat Oct 29, 2011 4:54 pm
Location: Belgium

Re: Mixxx 1.10 beatloop scripting issue

Postby rryan » Thu Dec 22, 2011 8:31 pm

Hi Geert,

I've fixed the bug I filed. Yes if you'd like to do something special with your buttons so that you can trim the loop then using the "beatloop" control is a better choice. I've also just fixed the bug where setting 'beatloop' to a number like 8 does not light up the button in the skin. It's true that you can specify any number to 'beatloop' but if it is one that there is a button for then it will light up now.

Cheers,
RJ Ryan
The Mixxx Manual, Wiki and FAQ are the best place to start for documentation and support.
Please report any bugs you find to our Bug Tracker.
rryan
Mixxx Developer
 
Posts: 973
Joined: Thu Mar 26, 2009 12:14 am
Location: Cambridge, MA

Re: Mixxx 1.10 beatloop scripting issue

Postby Geert » Sun Dec 25, 2011 9:18 pm

Thanks for looking in to this Ryan. I modified my MIDI script (replaced the deprecated beatloop_X) and it's working fine. The skin buttons even follow loop_double and loop_halve, which is nice.

Geert
Geert
 
Posts: 39
Joined: Sat Oct 29, 2011 4:54 pm
Location: Belgium


Return to Controller presets/mappings

Who is online

Users browsing this forum: No registered users and 2 guests