make script.deckFromGroup(group) also filter deck from effect groups like [EqualizerRack1_[ChannelN]_Effect1]

Bug #1899947 reported by Frank Breitling
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Confirmed
Wishlist
Unassigned

Bug Description

The Javascript helper function for controller mappings script.deckFromGroup(group) fails for [EqualizerRack1_[ChannelN]_Effect1].

This group is needed for example to adjust the equalizers:
https://github.com/mixxxdj/mixxx/wiki/Mixxxcontrols#eqs-and-filters

Tags: controllers
Revision history for this message
ronso0 (ronso0) wrote :

That function is made for deck strings only.
[EqualizerRack1_[ChannelN]_Effect1] is a effect group.

https://github.com/mixxxdj/mixxx/blob/master/res/controllers/common-controller-scripts.js#L152

Revision history for this message
ronso0 (ronso0) wrote :

What are you tryig to achieve?

Changed in mixxx:
status: New → Invalid
Revision history for this message
ronso0 (ronso0) wrote :

btw you can use the 'parseInt' from script.deckFromGroup():
// isolate 'N' from [ChannelN]
sourceDeck = parseInt(group.substring(8,9));

Revision history for this message
Frank Breitling (frank-breitling) wrote :

I am extending my controller mapping to four decks. Therefore I need to know from which Channel a command was sent. It would be nice if I could use script.deckFromGroup() not only for deck strings. I think replacing the if statement by

    // Extract deck number from the group text
    deck = group.match("Channel.")[0].substring(7);

should fix this.
Would you like me to try it out and write a PR?

Revision history for this message
ronso0 (ronso0) wrote :

Why don't you use midi-components? it has a handler for deck switches.

That way you'd also have an up-to-date maaping that could be merged into Mixxx.

Revision history for this message
Frank Breitling (frank-breitling) wrote :

Because it didn't work when I tried it and because of its complexity I didn't know how to debug it.

Anyway, you can set this to won't fix if you don't like to fixing it.
But the bug is valid, because the function should do what its name "deckFromGroup()" suggests.
It also would be useful and the fix is easy.

Revision history for this message
ronso0 (ronso0) wrote :

Sure, if you want to extend script.deckFromGroup() to filter decks from effect control groups (and others) go ahead!

summary: - script.deckFromGroup(group) fails for
- [EqualizerRack1_[ChannelN]_Effect1]
+ make script.deckFromGroup(group) also filter deck from effect groups
+ like [EqualizerRack1_[ChannelN]_Effect1]
Changed in mixxx:
importance: Undecided → Wishlist
status: Invalid → Confirmed
tags: added: controllers
Revision history for this message
ronso0 (ronso0) wrote :
Revision history for this message
Frank Breitling (frank-breitling) wrote :
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/10167

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.