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.
18398
When the amplifier...
Type: Posts; User: el_supremo
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.
18398
When the amplifier...
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...
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...
Add a mixer to bypass each effect.
18393
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...
@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...
Get rid of StateOne, StateTwo and toggleState.
if(button0.fallingEdge()) {
usbMIDI.sendNoteOn(60, 99, channel);
}
if(button0.risingEdge()) {
usbMIDI.sendNoteOn(61, 99,...
Almost certainly. Change them and see.
Pete
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...
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...
Your code isn't printing the two digit year correctly. Try this:
Serial.print((tmtm.Year + 1970)%100),Serial.print("(");
Pete
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...
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...
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"
...
//***DEFINE DIRECTLY CONNECTED POTENTIOMETERS************************
//Pot (Pin Number, Command, CC Control, Channel Number)
//**Command parameter is for future use**
//Pot PO1(A0, 0, 1, 1);...
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...
Ooopps. Yup, copy and paste error.
Pete
Yeah, that one looked wrong to me too.
Pete
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...
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
When the switch is closed you should get a solid 0
Pete
How long is the system going to be underwater?
Is the oscillator only counted down to keep track of seconds or are you using it for stamping events with a much higher precision than seconds?
Pete
There should not be a problem with any of the names you've mentioned, but you've used single quotes here. Could it be something as simple as using single quotes instead of double quotes in the code?...
Try setting the gain of all the mixer inputs at every stage to 0.25
Pete
Hmm. I'll have to ponder that.
BTW what is readline? It looks like you are reading a line from Serial and a line from Serial2 into the same buffer. If so, that'll be quite messy.
Pete
Don't redeclare MySerial. Just assign a new value to it.
MySerial = Serial2;
.
.
.
MySerial = Serial;
Pete
@icecold: I can't get your code to compile. I haven't got Control_Surface.h so I just commented that out.
Although there is an Encoder.h in Teensyduino, the compiler doesn't know what...
No problemo :D
Pete
The underscore is a valid character anywhere in a C/C++ variable name. It doesn't mean anything special in the language (i.e. to the compiler) but can be used to make a variable name easier to read...
Does it toggle the LED every two seconds?
Pete
When I added this statement to your code:
const uint8_t out = LED_BUILTIN;
it works. Teensy 4(beta 2) with current Arduino and Teensyduino on Windows 10.
Pete
Why do you have three delay buffers? You store the same sample in each one and otherwise never change their content. Therefore all three always have the same content.
I think you can use just one...
const PROGMEM int LFO_TABLE[]=
I think the PROGMEM has to go at the end of the declaration, like this:
const int LFO_TABLE[] PROGMEM =
because it is defined as a storage attribute:
#define...
I started the 3rd attempt running this morning and left it for a couple of hours. No errors at all, even when dragging/resizing the monitor window.
But then I wanted to run a different sketch on a...
Just tried the 3rd attempt. Looks like a winner. Even if I pull the plug or hold the button for 20 seconds, it still recovers without an error message.
Speed seems to be the same - varies from...
I've tried the 2nd attempt on Windows 10 Pro x64 on a 6 cpu (12 hyperthreads) i7-6800K @3.4GHz and 64GB of ram with arduino 1.8.9 + TD1.47
If I just leave it running, the Java process uses about 5%...
Frank B says it works
Pete
SPI.setSCK(14);
and there's also SPI.setMOSI(7) if you need it.
Pete
Yes, frequency is in Hz.
Pete
This works for me on T4B2. It's a newer version from Frank B.
Pete
P.S. I've only used it for 12000Hz but it should be good for other rates.
#include <Audio.h>
#include...
Install the new Teensyduino release 1.47 https://forum.pjrc.com/threads/57216
Pete
From the 1.47 release notice, Paul wrote:
Pete
while (recQueue.available() >= 2) {
file.write((byte*)recQueue.readBuffer(), 256);
recQueue.freeBuffer();
}
This will leave one record buffer in the queue. Wouldn't it be better to use...
Yes, it needs verbose to be selected.
Pete
I compiled and installed your code. Works here.
Pete
@mjs513: Post your imxrt-size.c and I'll give it a try.
Pete
P.S. I've just realized that it doesn't appear to have done anything since I updated to b7. I'll look at it.
P.P.S. I had forgotten...
Yep, CR2032.
Pete
In this message Paul said that "Teensy Loader and the new bootloader also now automatically initialize the RTC to your PC's time."
I wrote a sketch to synchronize the T4B2 RTC to a GPS. When I...