Inverting Potentiometers output

Where in this code do i insert this libraries command that inverts a potentiometers output?

#include <Control_Surface.h> // Include the Control Surface library

// Instantiate a MIDI over USB interface.
USBMIDI_Interface midi1;

// Instantiate CCPotentiometers
CCPotentiometer potentiometers[] {
  {A0, 0x4A},
  {A1, 0x2A},
  {A2, 0x5},
  {A3, 0x13},
  {A6, 0x14},
  {A7, 0x15},
  {A8, 0x16},
  {A9, 0x17},
  {A10, 0x19},
  
};

void setup() {
  Control_Surface.begin(); // Initialize Control Surface
}

void loop() {
  Control_Surface.loop(); // Update the Control Surface
}


and the command according to the documentation found here, Control Surface: CCPotentiometer Class Reference is

void 	invert ()

Can you give more information please?
What is this Control_Surface?
What potentiometers are we talking about?
What is the setup in hardware?
What should this setup do?

Hi, @sloan666
Welcome to the forum

What model Arduino are you using?
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

This may help;
https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

Tom.... :smiley: :+1: :coffee: :australia:

Add the following to your setup():

for (auto &p : potentiometers)
  p.invert();

this worked perfectly!

Thank You!