Hello all,
I own an Euroshield mounting a Teensy 3.2 that works with Audio libraries. I am fairly new to Teensy programming and I need some help on a very basic task that apparently I can't figure out.
I would like to read the DC value in Volts from the two inputs of the board, ideally I would like to have a float value as when I am doing an analogRead(X) from a knob (but I guess for DC IN it would be between -1 and 1?) . I would like something similar to the following, but instead of using AudioAnalyzeRMS object, I'd like to use a different object that lets me .read() the current value, similarly to this:
I would like to perform some modifications on the input value before sending it to output, treating it as a DC value (between -1 and 1) rather than audio level signals. I think this should be as easy as reading a knob value, but I really can't figure it out. Any suggestion or pointer to some reading material would be highly appreciated.
Thanks
I own an Euroshield mounting a Teensy 3.2 that works with Audio libraries. I am fairly new to Teensy programming and I need some help on a very basic task that apparently I can't figure out.
I would like to read the DC value in Volts from the two inputs of the board, ideally I would like to have a float value as when I am doing an analogRead(X) from a knob (but I guess for DC IN it would be between -1 and 1?) . I would like something similar to the following, but instead of using AudioAnalyzeRMS object, I'd like to use a different object that lets me .read() the current value, similarly to this:
Code:
AudioInputI2S audioInput;
AudioAnalyzeRMS input_1;
AudioAnalyzeRMS input_2;
AudioConnection patchCord1(audioInput, 0, input_1, 0);
AudioConnection patchCord2(audioInput, 1, input_2, 0);
...
last_input_1 = input_1.read();
last_input_2 = input_2.read();
I would like to perform some modifications on the input value before sending it to output, treating it as a DC value (between -1 and 1) rather than audio level signals. I think this should be as easy as reading a knob value, but I really can't figure it out. Any suggestion or pointer to some reading material would be highly appreciated.
Thanks