Open tzenn opened 2 hours ago
Hey! I tried to reach out on the forum but its been a week and I'm still waiting for admin approval to get in so I'll just post it here for now.
Video footage of the issue: https://youtu.be/x1HCdltNRwA
Environment:
Hardware Setup:
Code Being Used:
#include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h> const int STRING_COUNT = 6; const int photodiodePins[STRING_COUNT] = {A0, A1, A2, A3, A4, A5}; AudioInputAnalog adc1(photodiodePins[0]); // String 1 (high E) AudioInputAnalog adc2(photodiodePins[1]); // String 2 (B) AudioInputAnalog adc3(photodiodePins[2]); // String 3 (G) AudioInputAnalog adc4(photodiodePins[3]); // String 4 (D) AudioInputAnalog adc5(photodiodePins[4]); // String 5 (A) AudioInputAnalog adc6(photodiodePins[5]); // String 6 (low E) AudioOutputUSB usb1; AudioConnection patchCord1(adc1, 0, usb1, 0); AudioConnection patchCord2(adc2, 0, usb1, 1); AudioConnection patchCord3(adc3, 0, usb1, 2); AudioConnection patchCord4(adc4, 0, usb1, 3); AudioConnection patchCord5(adc5, 0, usb1, 4); AudioConnection patchCord6(adc6, 0, usb1, 5); void setup() { AudioMemory(24); Serial.begin(115200); } void loop() { for(int i = 0; i < STRING_COUNT; i++) { int rawAmplitude = analogRead(photodiodePins[i]); Serial.print("String "); Serial.print(i + 1); Serial.print(": "); Serial.println(rawAmplitude); } delay(10); }
Issue Description:
Additional Context:
Questions:
Thanks for your time!
Fairly sure the Audio library doesn't support multiple instances of AudioInputAnalog - if you try to place two in the Design Tool, you get the yellow warning triangle signalling a hardware clash.
AudioInputAnalog
Hey! I tried to reach out on the forum but its been a week and I'm still waiting for admin approval to get in so I'll just post it here for now.
Video footage of the issue: https://youtu.be/x1HCdltNRwA
Environment:
Hardware Setup:
Code Being Used:
Issue Description:
Additional Context:
Questions:
Thanks for your time!