Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: SPIRIT

Search: Search took 0.00 seconds.

  1. Replies
    15
    Views
    1,471

    Better like this ? void loop() { int piezo...

    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...
  2. Replies
    15
    Views
    1,471

    Well, I have this result. It is not very...

    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...
  3. Replies
    15
    Views
    1,471

    I used the PiezoDrum example in the Teensy...

    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...
  4. Replies
    15
    Views
    1,471

    I did a test with a different version without the...

    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...
  5. Replies
    15
    Views
    1,471

    Thanks for your help. I don't use the same code...

    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...
  6. Replies
    15
    Views
    1,471

    It works fine, but sometimes it becomes unusable...

    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.
  7. Replies
    15
    Views
    1,471

    Sorry, I hadn't seen for the stars in the code. ...

    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...
  8. Replies
    15
    Views
    1,471

    I also did the test with buttons and it works...

    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.
  9. Replies
    15
    Views
    1,471

    Hello, I tested with several diagrams and other...

    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...
  10. Replies
    15
    Views
    1,471

    bug with piezo and wav file

    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...
Results 1 to 10 of 10