ManyAddresses SmartPontentiometer #892
gringow831
started this conversation in
General
Replies: 1 comment 4 replies
-
After an hour of trying to find the reason why it wouldn't work I came up with the solution. there was a NumBanks missing it seems. namespace CS {
namespace Bankable {
namespace ManyAddresses {
template <setting_t NumBanks>
struct PBSmartPotentiometer : SmartMIDIFilteredAnalog<NumBanks, ManyAddresses<NumBanks>, PitchBendSender<10>> {
PBSmartPotentiometer(const Bank<NumBanks> &bank, pin_t analogPin, const Array<MIDIChannelCable, NumBanks> &addresses)
: SmartMIDIFilteredAnalog<NumBanks, ManyAddresses<NumBanks>, PitchBendSender<10>>{
{bank, AH::copyAs<MIDIAddress>(addresses)}, analogPin, {}} {}
};
} // namespace ManyAddresses
} } |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been trying without much luck to add a new part for ManyAddresses::PBSmartPotentiometer. I can't see why it isn't working.
I'm guessing otherwise I could use the bank getSelection() to read which bank I am on and enable or disable more Smart Instances. (haven't tried this yet) Although thinking about that, if you have 16 pots and 4 different addresses it will become a very long script.
Beta Was this translation helpful? Give feedback.
All reactions