The Arduino docs for the map function say it is implemented like this:
long map(long x, long in_min, long in_max, long out_min, long out_max) {
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
You could define your...
The Neotrellis library code is blocking and depending on what you may be trying to do, painfully slow and is probably the culprit messing up audio.
My Midi controller project has an ILI9341 screen, 18 encoders and two hardware buttons wired to a...
https://www.adafruit.com/product/5792
I think he is referring to this..
You can emulate and RGB dot-clk interface using FlexIO shifters and timers - but I have never done it myself - I’ve only emulated 8080 on FlexIO for display purposes
Thank you for your reply! That is very helpful.
is this correct? or is there a better way to do it? it seems to work.
int lfoAmount = analogRead(potAmplitudePin);
float lfoAmplitudeMapped = map(lfoAmount, 0, 1023, 0, 100)...
At its simplest clone the relevant repository to a local repo of yours, create your change branch, create a pull-request, and start a thread about it...
You may not be able to achieve a 5-MHz interrupt rate, and if you do, you'll have little or no time for other I/O or calculations. I think you need to look for a different approach.
float lfoAmplitudeMapped = map(lfoAmount, 0, 1023, 0, 1);
The map function only uses integers and returns an integer so the only possible values that this can return are zero or one.
Similarly, in this one
float lfoSpeedMapped = map(lfoSpeed...
pixels.show(); Sends data to 2 WS2812 LEDs above my footswitches
trellis.pixels.show(); Sends data to the neotrellis board
I appreciate any suggestions Paul, although i have already tried removing all the neopixel code from the sketch
Oh and for reference, the unison 1-4 voices aren't connected and are for a future feature that I want to add. What I want, is to be able to push a button, and have it switch between poly mode (default), and a unison mode with detune.
Hello! I have been working on a synthesizer with the Teensy Audio Library on a Teensy 4.1. It is working pretty well so far, but there are a few issues that I can't seem to resolve on my own.
Issues-
Potentiometer readings - So I have two pots...
On every interrupt call I want to transfer binary data (bit by bit)to a gpio pin. Let's say 1011, it means
Pin high for 200ns
Pin low for 200ns
Pin high for 200ns
Pin high for 200ns
Why use interrupts? Because I have to perform some calculations...
Hello,
Thanks for the solution Mattkuebrich! .sync() function works well!
But .pulsewidth() function seems to be broken... I think something wrong in the synth_waveform_withsync.cpp file. I tried to fix it, but when I opened it, my eyes began to...
I haven't been able to test this yet, but it seems there has been confusion in the past about setting the pulse width using AudioSynthWaveformModulated. See the last few posts in this thread. Seems like to set it directly, you'd want to use a DC...
M2 macBook air, Frontier fiber starting from 0.59.3 and doing remove first from the boards manager, got various times for each:
ver min:sec
zst 1.58.1 0:40
XZ 0.59.3 1:34
bz2 1.58.1 2:13
zst 0.59.3 0:17
zst 1.58.1 0:20
bz2...
Hi there,
I need to generate a 5MHz data transfer. I have used teensytimertool, interval timer so far but the pin doesn't toggle beyond 500ns period(high+low part).
Any help would be appreciated please.
Furthermore, as I increase it from 1us...
that will teach me. Just tried and looks like as you said - works great on CPU limited platforms:
RPI4 ZST: 1 minute 45 seconds !!!!!!
was really surprised!
Quick followup to this old thread. For the next version of Teensyduino, I'm adding a check for the installed location if running on Windows. If Teensyduino appears to in a pathname installed by Boards Manager, but Arduino IDE doesn't give...
Every day it seems there are more new, high quality, high-res TTL RGB-666 displays available. Beyond a esp32 board offered by Adafruit, there isn't much out there to make them approachable. Is there a recommended software/hardware approach that...
Hello,
Thanks for the solution Mattkuebrich! .sync() function works well!
But .pulsewidth() function seems to be broken... I think something wrong in the synth_waveform_withsync.cpp file. I tried to fix it, but when I opened it, my eyes began to...
Decided to try this out on my RPI4 running ubuntu 22.04.3 using IDE2.2.1. Not seeing much time difference between XZ and bz2
XZ: 4 minutes 23 seconds
bz2: 4 minutes 39 seconds
Notes:
1. removed all teensy from arduino15 (staging and...
Hi All,
Digging up an old thread...
I have a sync pulse on one pin and need to measure 4 other signals timing relative to the sync. I basically need a non-blocking PulseIn() between two pins (it's relatively low frequency, durations of 10us to...
In Arduino IDE, first make sure you have Teensy selected either from the drop-down list in the toolbar or from Tools > Board menu. The rest of Arduino's menus update depending on the selected board.
Then look for the examples in File > Examples...
Hello together,
I am a newbee in this Forum. I use the Teensy Audio Library (Windows 10).
But I didn't find the example in the Audio Tools, like Chorus in the bottom right corner... Maybe someone can tell me where the examples are hidden...
Hello together,
I am a newbee in this Forum. I use the Teensy Audio Library (Windows 10).
But I didn't find the example in the Audio Tools, like Chorus in the bottom right corner... Maybe someone can tell me where the examples are hidden...
I already have better computer, but since I knew that @mjs513 was probably using a faster machine, I thought I would try a slower one, as mentioned:
Net - yes could be faster. Could go with the Cell phone type connection, although 5G is somewhat...
Please understand I'm guessing trying to figure out what's wrong over the internet without access to your hardware... so here's another blind guess.
I see you have Adafruit_NeoPixel library in use. Looks like Adafruit_NeoTrellis might also have...
I went through the same process of writing DMA mode libraries for T4.1, not only for Serial/UART but also for SPI master, SPI slave. I had to because the standard libraries did not give me the functionality that was needed in the applications...
I did some more testing with many different cards now and my last provided code snippet seems to work fine. It is very rare that a card will not respond to CMD6 after re-inserting, but it happened. The re-try mechanism always successfully made...
@KurtE seems like you might be ready for a computer upgrade - and/or better internet?
I ran the ZST again after XZ and it was under a minute - so part of the time seems to be on the fly downloading?
When I removed 0.59.3 (as before) then...
Be aware that these ST MEMS with their SPI and I2C interface options can cause trouble during initialization. More on that in this thread: https://forum.pjrc.com/index.php?threads/spi-help-moving-from-teensy-3-2-to-4-1.73318/page-2
The bottom...
You need a buffer big enough for twice the longest interval between yield() calls, plus some margin. It looks as if your code exits loop() often, so if you monitor the loop interval and print the maximum value, that’s going to help a lot.
Say...
You need a buffer big enough for twice the longest interval between yield() calls, plus some margin. It looks as if your code exits loop() often, so if you monitor the loop interval and print the maximum value, that’s going to help a lot.
Say...
hi again sir @h4yn0nnym0u5e, I already tested the library, just had some problems installing it earlier but now I have it.
Thank you for the modification of the Audio Library.
I just had some questions, for the createBuffer(****...