Hello, that was it! PROGMEM were missing before static const. Now it works for all my SF2 files.
Thank you very much for your help. I have a lot of fun with my Teensy 4.0.
Type: Posts; User: SPIRIT
Hello, that was it! PROGMEM were missing before static const. Now it works for all my SF2 files.
Thank you very much for your help. I have a lot of fun with my Teensy 4.0.
Thanks for your help. PROGMEM was indeed missing in the .cpp file and .h is correct
#include "flut_samples.h"
PROGMEM
static const uint32_t sample_0_flut_flut1[80000] = {
Thank you for your help. I just learned to use Python and it works. I made with python a new version of SoundfontDecoder.exe. Now the code is different with the .h and .cpp files. and it looks ok....
I saw that I had 2 versions of Arduino, so 2 files. So I deleted the one that was present in the download folder and use the one in Programs (x86). I have a 64-bit version of Windows, does that...
It' true, it's more complete. Could it be a problem of compatibility or access to the file? Tanks.
Arduino : 1.8.12 (Windows 10), TD: 1.52-beta1, Carte : "Teensy 4.0, Serial, 600 MHz, Faster, US...
Hello, I am using a windows 10 with 64 bits, a Teensy 4.0 card and an Audio board.
I use the SimpleWave.ino example with one of the files found in the soundfontdecoder bank, Celesta, to start and...
Better like this ?
void loop()
{
int piezo = analogRead(A0);
int velocity = map(peak, thresholdMin, 1023, 1, 127);
I changed that and I have better sensitivity. The volume changes...
Well, I have this result. It is not very beautiful but it works. I have a problem with the velocity which is very bad. If I tap the Piezo with my hand, I don't have a volume variation, but with a...
I used the PiezoDrum example in the Teensy library. I deleted the MIDI code and adapted it for the audio. I also deleted the HelloDrum library. I manage to play an audio file with the Piezo but I...
I did a test with a different version without the wav of the SD card but with an h file. So I used the SamplePlayer example from the library that I modified to use it with a Piezo. Just to be sure...
Thanks for your help. I don't use the same code for buttons and piezos. I use the examples available with the Teensy Audio library. Here is the helloDrum.h file and a link to the entire library for...
It works fine, but sometimes it becomes unusable because it sometimes becomes unresponsive or crashes with the worst sound. It is easy to crash if you hit repeatedly.
Sorry, I hadn't seen for the stars in the code. The person who wrote the code says it also has a problem with wav files. He thought that the Teensy 4.0 version would correct the problem. I don't...
I also did the test with buttons and it works perfectly. I think there are a few things that don't work with piezos and wav. This is why I ask if others have the same bug.
Hello, I tested with several diagrams and other audio files with lower frequencies. Always the same result. Does anyone have a working example with a wav and a piezo? Is it only me who have this...
Hello. I am testing HelloDrum library with Piezos sensors. But it has a bug when using wav files. When you quickly type on a Piezo the wav file freeze a few seconds before working again. It's a...
Well, I just did a test with another sd card. She's old and not very fast but it works to do a simple test. At least I now know where the problem is coming from.
Thank you for your reply.
For more details, I use a class 6 SD card with 16 GB. Is it fast enought ?
I don't think the problem is with the SD card. I did a test with this code and the audio file plays without problem....
Hello. I'm starting with Teensy 4.O and Audio Shield, I have some basics with Arduino.
To start I would like to play a short wav (drum for example) with a Piezo. Do you have an example please ?
...