Replies: 4 comments 1 reply
-
Unlikely, the ADC cannot read out-of-range values, and MIDI cannot transmit them. Ton answer the question about mapping: see CCPotentiometer-Map.ino |
Beta Was this translation helpful? Give feedback.
-
Thanks for you quick answer. If I map directly in a DAW I get values between 2 and 65 aprox. and I would like to map into 0-127 to standard values to control a full dial or fader. |
Beta Was this translation helpful? Give feedback.
-
这是一封自动回复邮件。已经收到您的来信,我会尽快回复。
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your answers! |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to use a ultrared proximity sensor. I get out of range values with this standard code:
#include <Control_Surface.h> // Include the Control Surface library
// Instantiate a MIDI over USB interface.
USBMIDI_Interface midi;
CCPotentiometer knobsTop[] {
{A0, MIDI_CC::General_Purpose_Controller_1}};
void setup() {
Control_Surface.begin(); // Initialize Control Surface
}
void loop() {
Control_Surface.loop(); // Update the Control Surface
}
Couls someone help me mapping this value into 0- 127? I know you can use map() in Arduino but I have made some test and I don´t know how to aplly this with Control-Surface library.
Thanks in advance.
Best
Beta Was this translation helpful? Give feedback.
All reactions