Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change patches using MIDI controls #17

Open
albedozero opened this issue Aug 16, 2024 · 3 comments
Open

Cannot change patches using MIDI controls #17

albedozero opened this issue Aug 16, 2024 · 3 comments

Comments

@albedozero
Copy link
Contributor

albedozero commented Aug 16, 2024

I also have a question, how might I get to know which of my buttons correspond to which number ?
So as to be able to change Banks and sounds ? The default don't work.

Originally posted by @Pauldb8 in #16 (comment)

@albedozero
Copy link
Contributor Author

The simplest way is to configure a couple of the pads/buttons on your controller to send momentary CC messages 21 and 22 on MIDI channel 1. Otherwise, you can modify the values of MIDI_CTRL, MIDI_INC, and MIDI_DEC here in the squishbox.py file.

@luucvanderzee
Copy link

luucvanderzee commented Aug 18, 2024

Hello, sorry if this is a stupid question, I am new to midi and raspberry PI... but I can't get the patch change controls to work.

I have an Arturia Minilab 3 connected to my raspberry PI. Using the normal keys works, but I want to use some of the fingerdrum pads of the controller for the patch selection. I ran aseqdump -p 20:0 on my PI to read what midi channels and notes my pads are- it turns out they are notes 41-43 on channel 9. I then changes the variables in the squishbox.py channel in the following way:

MIDI_CTRL = 9
MIDI_DEC = 41
MIDI_INC = 42
MIDI_PATCH = 43

and rebooted the PI, but it doesn't work- using the pads doesn't change the patch. What am I missing / misunderstanding here?

EDIT:

I've now added the following lines to the the top of the listener method, and it works:

 if 'chan' in sig and 'par1' in sig:
  if sig.chan == 10 and sig.par1 == 41:
    self.pno = (self.pno + 1) % len(fp.patches)
  elif sig.chan == 10 and sig.par1 == 42:
    self.pno = (self.pno - 1) % len(fp.patches)

so it seems like the midi channel was actually 10, and aseqdump uses zero indexing. Changing MIDI_CTRL to 10 still doesn't solve the issue unfortunately. But at least I have a workaround

@albedozero
Copy link
Contributor Author

@luucvanderzee it seems likely that your pads are sending notes instead of control change (CC) messages. You can change this in your MIDI controller, or in the add_midicontrols function change the type arguments to cc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants