How can I get information about the actual light status of MIDI controller?For example, I have 64 buttons some of them has green, yellow or red light and some are "off". I know all the MIDI codes four lights, but now I want to get all the picture of the pads. Is it possible to "get" or "unpack" actual MIDI controller status (that is the status of lights) or it is absolutely necessary to create some mediate state where all the information is stored before sending light feedback to MIDI out? And if. . . then how?
Information about MIDI pad light status
- It looks like a new message will cancel the last as well......
Yes, it is!
- Do you want to create a copy of the APC in Pd visually?
Visually in the text file would be nice, so I can easily check for errors. Virtual pads, buttons with colors are not necessary, cause in pd I want to create mainly functions
- What do you want to do with the data that comes back when you push buttons and move faders
Most important I don't want to use the faders because they are sh*tty (don't want to argue here). So I have made two parts: one was actually playing samples are visible and another were volume level of columns are visible and controllable (upper row pads rise volume, lower row decrease volume). It is necessary to update pads after switch from sample playing layout [?] to volume. It is easy to reset pads and get volume level, but I don't know how to get back. Some samples are blinking some are constant and some off.
- does it only light buttons when it receives midi messages
Yes, David, I'm pretty sure, the lights of the APCmini are totally silent unless midi-out messages are sent. I have never seen any lights if Ableton not present.
@Transcend Well, that's a good start. [but_rect] will not be useful probably for your patch, but it can easily be changed to do what you eventually want, and at least we know that the Midi messages are correct. I imagine that the button colour changes will eventually depend on the rest of your patch so as to be meaningful.
At the moment it sends and receives to every midi channel (I think) so beware if you connect other midi devices to Pd at the same time. A single midi channel will need to be nailed down if that is your intention.
This is how I want to play the files. I added a sampler (and comments) to your patch sampler.zip
And this is the Volume Control part (65 button means volume up 0 means volume down)
I imagine that the button color changes will eventually depend on the rest of your patch so as to be meaningful.
Yes, meaningful in terms of functionality, no aesthetically meaningful
Midi messages are correct
All the colors was correct, except your patch doesn't send 0 or "off"
@Transcend Just played around with it.
Each rectangular button should play a file with the same number.
For example Button 40 plays 40.wav etc.etc.
The button should turn green when pressed and the file is then played. It is not possible to play the file again until it is finished and the button is flashing.
I might not have understood, but anything is easy to change.
And the Master fader (56) should control the volume I hope.
Thanks, I will try to find a solution.