I've realized that what is needed using this method is an amplifier and a mixer - not two mixers. A mixer always outputs an audio buffer even when all inputs are zero gain.
When the amplifier is set to zero gain, it...
Ah. Good question. Not the way I've shown it.
I think another mixer between i2s1 and reverb1, which is turned on or off at the same time as switch1, should do the trick. The mixer won't output anything and reverb will...
Ah. Good question. Not the way I've shown it.
I think another mixer between i2s1 and reverb1, which is turned on or off as well as switch1, should do the trick. The mixer won't output anything and reverb will use...
Add a mixer to bypass each effect.
Set the gain of one input to one and the other input to zero.
Naming each one "switch", as I've done, instead of "mixer" will help to keep track of which are used as switches and...
@Brian:
I downloaded your library just to have a look. It doesn't compile because BUFFER_SIZE is not defined. Looking through previous messages here, I assume that it should be 128.
Pete
The code in 1.49 B1 of effect_delay.h is:
#if defined(__IMXRT1062__)
// 2.41 second maximum on Teensy 4.0
#define DELAY_QUEUE_SIZE (106496 / AUDIO_BLOCK_SAMPLES)
#elif defined(__MK66FX1M0__)
// 2.41 second...
In C/C++, the remainder % operator is only defined for use when both operands are integers. You could calculate it yourself for floating point operands and I presume you could even define an overload for the % operator....
Which pin are you using as the MIDI output? The MIDI library defaults to using the Serial1 Tx pin (pin 1). But also, that basic example will only send a midi note if it receives one.
Try this code which continuously...
The LC is quite a bit slower than a T3.2 and it has much less flash and ram memory. Either or both of these could conspire against you but I can't tell just from your snippet.
Pete
Your code works for me with the same circuit wired to the connector "face".
If you have a multimeter with continuity tester, check that the continuity from the T3.2 ground pin to the breadboard ground rail is good. The...
That's because attachinterrupt can't set multiple tests for the state of one pin. Each call to attachInterrupt for a particular pin replaces whatever was previously set. Your last call was to test for FALLING which...
See if this gets rid of the errors with BUTTONS and POTS. I've just commented out the code that uses them.
#include <MIDI.h>
#include "Controller.h"
/*************************************************************...
Copy the text of your code into a new message (preferably between code tags - generated with the # menu icon).
If waveform1 is undeclared, you can't have put it into the audio design tool.
Pete
I've installed PocketMIDI and tested it with an M-Audio 61-es keyboard connected to the T3.6 USB Host port which then sends the data over USB midi to the PC (Windows 10 Pro).
Both Midi-Ox and PocketMIDI read key...
The format of the data are explained in Appendix A of the manual on page 77.
Data type T5 - Unsigned Measurement (32 bit):
bits # 31...24 Decade Exponent (Signed 8 bit)
bits # 23...00 Binary Signed value (24 bit)...
shape expects a (float *) as its first argument. Just cast it and the warning will go away.
waveshape1.shape((float *)wave_shape_flat, 2);
and similarly for the other two.
Pete