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

Search:

Type: Posts; User: el_supremo

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. You need the Rev D board for a Teensy 4.0. The...

    You need the Rev D board for a Teensy 4.0. The pinouts are a bit different and IIRC there's also an extra resistor in there too. See https://www.pjrc.com/store/teensy3_audio.html

    Pete
  2. I commented all the Serial.print statements and...

    I commented all the Serial.print statements and your code works for me on a T3.6 with Arduino 1.8.12 and TD 1.51 beta1.
    The code looks good too - you are handling the audio buffers correctly.

    Pete
  3. A file on an SD card must be in standard 8.3...

    A file on an SD card must be in standard 8.3 format. Naming the file, for example, hellmth3.wav should get it going.

    Pete
  4. Replies
    2
    Views
    47

    Two things. This code if (0 < ctl

    Two things. This code

    if (0 < ctl < COUNT_A) {
    sens = SENSITIVITY; //default sensitivity
    } else {
    sens = SENSITIVITY;
    }
    Has a problem because although the condition (0...
  5. FWIW - WSJTX uses a sampling frequency of 12000Hz...

    FWIW - WSJTX uses a sampling frequency of 12000Hz when generating and decoding FT8 messages and the tone spacing is 6.25Hz - not 15Hz. The default sampling frequency of the audio board is 44100Hz but...
  6. .play only accepts a "const char *" for the...

    .play only accepts a "const char *" for the filename, not a String. Change "String mySounds[]= {" to "const char * mySounds[]= {"
    and then remove the & from the calls to .play.

    Pete
  7. Try changing the mixer1 amplitudes to this: ...

    Try changing the mixer1 amplitudes to this:

    mixer1.gain(0,0.5);
    mixer1.gain(1,0.5);
    so that the total gain through the mixer is 1.

    Pete
  8. Are you using the headphone output and do you...

    Are you using the headphone output and do you have the volume control potentiometer on the audio board?
    If so, you could try changing this:

    sgtl5000_1.volume(0.4);
    to this:

    int n =...
  9. I forgot to mention that on your SD card, the...

    I forgot to mention that on your SD card, the sample input WAV file must be named 02Kick3.wav. The original name in the distribution, "02 Kick 3.wav", is too long to fit the 8.3 format required for...
  10. Replies
    12
    Views
    163

    I think this statement from page 1044 of the...

    I think this statement from page 1044 of the reference manual (Rev 1) is the one you need:


    Pete
  11. It turned out to be easy to change the code so...

    It turned out to be easy to change the code so that it wrote the data in smaller pieces (256 byte blocks).
    Having done that it was also easy to change it so that it writes the data as audio to the...
  12. Each instance of fft1024 requires 8 audio memory...

    Each instance of fft1024 requires 8 audio memory blocks to hold the samples for the FFT. Just to be safe, I would allocate a bit more than 8*number_of_FFT1024.
    But 16 works. Go for it :)

    Pete
  13. I've had another look at the code and compiled...

    I've had another look at the code and compiled the example code on my PC. It runs without any problem. I then added some debugging statements to print out the size of memory requested in each call to...
  14. Replies
    5
    Views
    190

    Why do you say that? I haven't used PWM, so...

    Why do you say that?

    I haven't used PWM, so maybe there are some limitations I don't know about, but the pinout diagram for the 3.5 shows 19 pins that are PWM capable.

    Pete
  15. Replies
    5
    Views
    163

    The connections to the Teensy's power and ground...

    The connections to the Teensy's power and ground look to me like you have just stuck the jumper pins in the holes without any solder.
    18926
    There also appear to be other connections to the boards...
  16. I've had a brief look at the code and one of the...

    I've had a brief look at the code and one of the things you'll have to be mindful of is that it was written for processors which have gigabytes of ram. In such an environment, what often happens is...
  17. I don't get that error message. What I get is...

    I don't get that error message. What I get is that continuePlaying is undefined. In the original example code, continuePlaying is defined between startPlaying and stopPlaying but in your code it...
  18. Replies
    3
    Views
    75

    I can't get your code to compile with the Pololu...

    I can't get your code to compile with the Pololu library. But it does compile if I change the first three lines to this:

    //#include <i2c_t3.h>
    #include <Wire.h>
    #include <VL53L0X.h>
    Try it and...
  19. Replies
    3
    Views
    75

    Which VL53L0X library are you using? Pete

    Which VL53L0X library are you using?

    Pete
  20. Those two are in the Teensy3.* version of the...

    Those two are in the Teensy3.* version of the setI2SFreq function. There is a thread about a version of that function for the Teensy4.
    Frank's original message:...
  21. I can't help with specific parts location or ID...

    I can't help with specific parts location or ID but here's the schematic:
    https://www.pjrc.com/teensy/schematic.html

    Pete
  22. amp1 reduces the amplitude of the inverted signal...

    amp1 reduces the amplitude of the inverted signal by 0.5 but the non-inverted signal isn't attenuated at all.
    Try adding an amp in the non-inverted path and set it to 0.5. This should also ensure...
  23. Replies
    9
    Views
    271

    Ooops. My bad. But the output of imxrt-size.exe:...

    Ooops. My bad.
    But the output of imxrt-size.exe:

    ITCM : 18944 B ( 7.23% of 256 KB)
    DTCM : 406208 B (154.96% of 256 KB)
    OCRAM: 79456 B (15.16% of 512 KB)
    Flash: 28720 B ( 1.41% of 1984...
  24. Replies
    9
    Views
    271

    I can't figure out why it works when there's no...

    I can't figure out why it works when there's no delay because there are two problems that I see.
    memcpy copies a specified number of bytes. You have specified the number of samples. Both instances...
  25. The setup function does not contain a...

    The setup function does not contain a Serial.begin(9600) statement.

    Pete
  26. Replies
    4
    Views
    159

    I know that feeling :) Glad to be of help. ...

    I know that feeling :)

    Glad to be of help.

    Pete
  27. Replies
    4
    Views
    159

    Here's a simple use of the play and record queue...

    Here's a simple use of the play and record queue objects. By default it plays stereo audio from line input to output (headphones). If a button is pushed, it simply swaps the left and right channels....
  28. Replies
    4
    Views
    159

    Have a look at the play and record "queue"...

    Have a look at the play and record "queue" objects in the audio library.

    Pete
  29. yes. But if you don't have a circuit diagram,...

    yes. But if you don't have a circuit diagram, it's unlikely that the serial output will tell you much.

    Do you at least know what the thing was supposed to do?

    Pete
  30. That does seem to be "contact" bounce. Try the...

    That does seem to be "contact" bounce. Try the bounce library to handle the pin with a debounce time of 1 ms and increase if necessary.
    See the Examples|Bounce|change code (or the one in Bounce2)
    ...
  31. Ah, thanks Paul, you're right. I have a vague...

    Ah, thanks Paul, you're right. I have a vague memory of installing something from Frank @DD4WH to do with fast convolution filtering.

    Take the rest of the year off - you've earned it :)

    Happy...
  32. TD 1.47_b4 problem compiling audio library

    Arduino 1.8.10 TD 1.49_b4
    I've run into a problem compiling the audio library. I used this same code on Nov 3rd (to record WWVB during the change of DST from on to off) but I don't remember which...
  33. @vjmuzik: your code is not going to work because...

    @vjmuzik: your code is not going to work because it reads from Serial1 several times in a row without checking to make sure that there's anything in the buffer to read.

    Pete
  34. Your example output is parts of two separate...

    Your example output is parts of two separate messages and you didn't read all of the data. The fourth byte indicates 7 data bytes but you stopped printing after the 6th byte.

    Try incorporating...
  35. The audio library is there but USB Audio isn't...

    The audio library is there but USB Audio isn't done yet.

    Pete
  36. The pdf has a description of the protocol you are...

    The pdf has a description of the protocol you are trying to read. The first byte that the motor sends is always the "head byte" which is 0x3E. You'll see that your example has one of these in it. The...
  37. Each byte, or each response? Which motor is it...

    Each byte, or each response?
    Which motor is it and can you give examples of the response?

    If it sends each response with a CR and/or LF at the end, you can just store the response until the CR/LF...
  38. Replies
    11
    Views
    365

    Adding this code at the top of CWModem.ino will...

    Adding this code at the top of CWModem.ino will remove the error messages. I don't know if it will produce working code though - there may be other problems with memory spaces still to be resolved,...
  39. Glad the envelope worked out. I haven't used...

    Glad the envelope worked out.
    I haven't used releaseNoteOn. I did a quick scan through the code and couldn't figure out how/what it really does. I'll try to have a more detailed look and maybe play...
  40. The click is caused when the sound level is...

    The click is caused when the sound level is abruptly dropped to zero. Instead of a mixer, try using an AudioEffectEnvelope with delay,attack,hold and decay all set to zero milliseconds. Set the...
  41. I'm using Arduino 1.8.10 and Teensyduino 1.49b2....

    I'm using Arduino 1.8.10 and Teensyduino 1.49b2. I can compile the PropShield example in the Mahony library and MahonyAHRS.h (installed with Teensyduino) does contain begin().

    Which version of...
  42. Replies
    14
    Views
    250

    I've realized that what is needed using this...

    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...
  43. Replies
    14
    Views
    250

    Ah. Good question. Not the way I've shown it. I...

    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...
  44. Replies
    14
    Views
    250

    Ah. Good question. Not the way I've shown it. I...

    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...
  45. Replies
    14
    Views
    250

    Add a mixer to bypass each effect. 18393 Set...

    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...
  46. @Brian: I downloaded your library just to have a...

    @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
  47. Replies
    30
    Views
    1,966

    The code in 1.49 B1 of effect_delay.h is: #if...

    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...
  48. Replies
    11
    Views
    260

    Get rid of StateOne, StateTwo and toggleState. ...

    Get rid of StateOne, StateTwo and toggleState.


    if(button0.fallingEdge()) {
    usbMIDI.sendNoteOn(60, 99, channel);
    }

    if(button0.risingEdge()) {
    usbMIDI.sendNoteOn(61, 99,...
  49. Almost certainly. Change them and see. Pete

    Almost certainly. Change them and see.

    Pete
  50. Replies
    5
    Views
    203

    In C/C++, the remainder % operator is only...

    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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4