Get Drum Pad Names

    Jun 22 2015 | 7:54 pm
    Hi Folks I am trying to get all the drum pad names from the api using M4L, then send this by OSC to Lemur.
    The problem I have is that I cannot work out how to use get drum_pads.
    Any pointers to how to call that function.
    Thanks in Advance.

    • Jun 22 2015 | 8:38 pm
      Something like this?
      It will print the names of the drum pads to the max window. There are some parameters to define the amount of pads, and the offset for zero. You could also set up a name check using the route object at the bottom to only report drum_pads with a certain leading character/string.
    • Jun 22 2015 | 8:45 pm
      Many Thanks Evan. That is just what i needed. Cheers
    • Sep 17 2021 | 1:00 pm
      Hi Evan, I am in need of a similar solution. I would like a device that pulls the names from each individual pad on a standard 12 pad drum rack, and then displays them in a big window. I want to trigger drum racks live, but need to be able to see very clearly the different sounds that are on each pad. I have copied this Max Patch you posted back in 2015 and got it working at a basic level. But I am sadly a M4L novice and don't find coding intuitive. I would love any advice you could give me on how to make this patch work if a drum rack isn't the first device in a track. I can work out how to make it select a different track, but if a drum rack is inside an audio effect rack, the max console reports back "live.object - get: no valid object set". I would also like to set it up so I can display the names that are retrieved in a grid that matches the drum pad I will be using (Roland SPD-SX). Any advice on how to do this would be greatly appreciated. Thanks, Jonno