You will always get that "plop" or "click" when you turn a sound on or off very suddenly. You need to ramp the sound up and then down to avoid this.
Try these settings, as a start:
envelope1.delay(0.0f);
...
The syntax for the two-dimensional array is wrong. It should be this:
const int CCID = {{11,11,11,1,1,11},{11,11,1,11,1,11},{11,1,11,11,1 ,11},{1,11,11,11,1,11},{11,11,11,11,1,1}};
Similarly, the reference to the...
You're absolutely right. I misread it. Sorry.
If you just want to see the spectrum of the guitar sample, There's a variable that is set to 0, 1 or 2 when you push the buttons. It is initially zero. If you initialize...
You need to install the three buttons to use the complete example code. By default it uses SDTEST1.WAV as the audio input to the FFT. Each of the three buttons selects a different input.
// Left button starts playing a...
Just FYI: When I compile that code with Arduino 1.8.13 and TD 1.54-beta6, it spits out an error message early on in the compilation.
Error while detecting libraries included by...
The adafruit BMP380 board has 10k pullups on the two I2C pins which may not be sufficient. Try adding pullup resistors of about 4k7 ohms to both A4 and A5.
Pete
Oh, I missed something. The bmp.begin() is before the Serial.begin(). It may be failing but unable to print anything.
Try this:
void setup() {
Serial.begin(9600); //Begin serial communication at 9600bps
...
Try changing bmp.begin(); to this:
if (!bmp.begin()) {
Serial.println("Could not find a valid BMP280 sensor, check wiring!");
while (1);
}
Just to make sure that the Teensy can "see" the BMP280.
...
What kind of audio are you using for line input? If you're playing from a phone or a PC, have you turned up the audio enough?
When I play audio from PC to line-in there's rarely any non-zero output even though I can...
I don't think the buffer size has anything to do with the 480Mbit/sec transfer rate.
I may be wrong, but I think the larger buffer size just allows you to send larger SYSEX messages in one large chunk.
Pete
// TODO: start a timer, rather than sending the buffer
// before it's full, to make best use of bandwidth
This means that, at the moment, it sends a message immediately in which case having a very large buffer is...
uint16_t can only store numbers in the range 0 to 65535. The compiler is warning you that it can't cram a number like 4406636708352ll into 16 bits. That number requires 43 bits which is why it has the 'll' on the end...
In your Churchorgan_samples.h change this line:
#include <AudioSynthWavetable.h>
to this:
#include <synth_wavetable.h>
It still won't compile but it'll get further along.
Pete
I missed another problem
if((L_Queue.available() > 1) && (R_Queue.available() > 1)){
Those should be >= otherwise you won't process anything until there's at least two buffers in each of the left and right...
The ADC values are signed 16-bit. This is why you see the large values such as 65369, it is actually a small negative number.
This piece of your code is wrong:
uint16_t (*buff_pointer_L) = (L_Queue.readBuffer());...
For example, in the read_all_data example, it uses this to instantiate the device:
Adafruit_BNO055 bno = Adafruit_BNO055(55, 0x28);
You would just change it to
Adafruit_BNO055 bno = Adafruit_BNO055(55, 0x28,&Wire2);...
I believe that all you have to do is change
*theWire = &Wire
to
*theWire = &Wire2
Oh, hang on. You don't have to change the library. All you do is reference &Wire2 when you instantiate the Wire object in your...