2021-05-31 10:56:56 +02:00
2021-05-30 19:55:43 +02:00
2021-05-30 19:55:43 +02:00
2021-05-31 10:56:49 +02:00
2021-05-30 19:55:43 +02:00
2021-05-30 19:55:43 +02:00
2021-05-31 10:56:49 +02:00
2021-05-30 19:55:43 +02:00
2021-05-30 19:55:43 +02:00
2021-05-30 20:05:28 +02:00
2021-05-30 19:55:43 +02:00

Slider Volume Controll Voicemeeter

This project is based on deej and the Voicemeeter API.

Installation

1.Use the Arduino IDE to upload this code to the Arduino.

const int NUM_SLIDERS = 8; //Edit based on the sliders you have.
const int analogInputs[NUM_SLIDERS] = {A0, A1, A2, A3, A4, A5, A6, A7}; //Edit based on the sliders you have.

int analogSliderValues[NUM_SLIDERS];

void setup() { 
  for (int i = 0; i < NUM_SLIDERS; i++) {
    pinMode(analogInputs[i], INPUT);
  }

  Serial.begin(9600);
}

void loop() {
  updateSliderValues();
  sendSliderValues(); // Actually send data (all the time)
  // printSliderValues(); // For debug
  delay(10);
}

void updateSliderValues() {
  for (int i = 0; i < NUM_SLIDERS; i++) {
     analogSliderValues[i] = analogRead(analogInputs[i]);
  }
}

void sendSliderValues() {
  String builtString = String("");

  for (int i = 0; i < NUM_SLIDERS; i++) {
    builtString += String((int)analogSliderValues[i]);

    if (i < NUM_SLIDERS - 1) {
      builtString += String("|");
    }
  }
  
  Serial.println(builtString);
}

void printSliderValues() {
  for (int i = 0; i < NUM_SLIDERS; i++) {
    String printedString = String("Slider #") + String(i + 1) + String(": ") + String(analogSliderValues[i]) + String(" mV");
    Serial.write(printedString.c_str());

    if (i < NUM_SLIDERS - 1) {
      Serial.write(" | ");
    } else {
      Serial.write("\n");
    }
  }
}
  1. Download Autohotkey if you want to run the Project hidden.
  2. Put the release file in the startup folder. (Or other folders)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Description
No description provided
Readme 104 KiB
Languages
Java 100%