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

Search:

Type: Posts; User: gfvalvo

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. First, a caveat. All my Audio Library experience...

    First, a caveat. All my Audio Library experience is with T3.x devices, never used a T4.x.

    That being said, the AudioInputI2Sslave is indeed capable of having responsibility for triggering the...
  2. Given the lack of requirements, specifications,...

    Given the lack of requirements, specifications, and other details, it's impossible to say.
  3. How do you propose to synchronize the sample rate...

    How do you propose to synchronize the sample rate transfer over SPI to the Audio Library's sampling rate (even if you use a lower rate)?
  4. Replies
    5
    Views
    366

    It looks like your setup has both the WM8804 and...

    It looks like your setup has both the WM8804 and the Audio Shield driving the I2S0_RSD0 input on the T3.2. You shouldn't connect two outputs to the same input.
  5. Replies
    5
    Views
    366

    Somebody has to be I2S master. Timing is set by...

    Somebody has to be I2S master. Timing is set by the S/PDIF source, so WM8804 must be in Master mode. Set up Teensy for I2S slave.
  6. See Reply #6...

    See Reply #6 and Reply #7.
  7. Replies
    1
    Views
    249

    Snipping Tool

    Snipping Tool
  8. I see that I missed showing a connection in the...

    I see that I missed showing a connection in the circuit diagram from my post that you linked. The diagram should show that LRCLK connects to both Pins 23 and 29 on the T3.2. I did this because I...
  9. Replies
    13
    Views
    557

    I posted code for 64 * Fs Quad I2S master and...

    I posted code for 64 * Fs Quad I2S master and slave in my reply to your previous thread. You could use that as a starting point.
  10. Replies
    13
    Views
    557

    Why don't you just make your own version of...

    Why don't you just make your own version of i2s_quad that uses BLCK = 64 * Fs?
  11. Replies
    2
    Views
    160

    I used SPDIF I/O and Audio Board I2S I/O in this...

    I used SPDIF I/O and Audio Board I2S I/O in this project: https://forum.pjrc.com/threads/45394-SPDIF-Input-and-Output?highlight=toslink
  12. I was answering this question:

    I was answering this question:
  13. Replies
    18
    Views
    795

    Because I've never used S/PDIF on a T4.0. Or, in...

    Because I've never used S/PDIF on a T4.0. Or, in fact used T4.0. at all. Therefore, I won't make a recommendation based on it. I only recommend solutions that I'm 100% sure will work. I've used the...
  14. CORRECTION: In theory, you can have multiple...

    CORRECTION:
    In theory, you can have multiple devices connected to the same I2S output, assuming there's only one master and that the electrical parasitics of the connections don't degrade signal...
  15. Only one device at a time can be connected to an...

    Only one device at a time can be connected to an I2S input or output. So you can use the DAC part of the Audio Shield at the same time, but not the ADC.

    You can also use the chip's second I2S I/O...
  16. Replies
    4
    Views
    304

    I've only worked directly with SPI hardware on...

    I've only worked directly with SPI hardware on T3.x. On that family of processors I pretty sure the SPI clock setup doesn't offer the resolution you're looking for. That's why I suggested using one...
  17. Replies
    18
    Views
    795

    It seems to me that the problems of your 3...

    It seems to me that the problems of your 3 different threads posted here all stem from the same source --- attempting to use USB audio. Is that a requirement? Can Max/MSP (whatever THAT is) provide...
  18. Replies
    4
    Views
    304

    The SPI hardware is detailed in the appropriate...

    The SPI hardware is detailed in the appropriate chip datasheet: https://www.pjrc.com/teensy/datasheets.html
    I believe at least some of them offer the feature of a continuous clock.

    Using an FTM...
  19. I've successfully used this board with Teensy 3.2...

    I've successfully used this board with Teensy 3.2 / 3.6 and the Teensy Audio Library: https://www.amazon.com/gp/product/B07HHPJLWC/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
    It does both...
  20. Replies
    11
    Views
    458

    Before going too far down the road of trying new...

    Before going too far down the road of trying new hardware, you should take the divide and conquer approach to debug the problem. I'd replace the AudioInputUSB object with a couple of AudioPlayQueue...
  21. Replies
    11
    Views
    458

    * Your IntervalTimer interrupt may have a higher...

    * Your IntervalTimer interrupt may have a higher priority than the SWI that triggers all the audio class update() functions. That might cause some funny interactions if the former interrupts the...
  22. Replies
    13
    Views
    561

    If the shift register's latch input is LEVEL...

    If the shift register's latch input is LEVEL sensitive rather than EDGE sensitive, it might look more like this:

    #include <Audio.h>
    #include <SPI.h>
    #include <EventResponder.h>

    class...
  23. Replies
    13
    Views
    561

    Interesting problem. Actually, from the...

    Interesting problem. Actually, from the description it doesn't seem like @grinch needs to synchronize the SPI transfers to the Audio Library sample rate. Only the latch input of the shift register...
  24. Replies
    13
    Views
    561

    Thoughts: * Post the code you have. * Post...

    Thoughts:

    * Post the code you have.

    * Post a schematic

    * I'll bet you can nail the interrupt timing exactly by working with a PIT directly rather than indirectly with IntervalTimer (see...
  25. Replies
    13
    Views
    561

    Why don't you want to use DMA? That's what I'd...

    Why don't you want to use DMA? That's what I'd try first, using the same PDB timer method as the AudioOutputAnalog class.
  26. Replies
    35
    Views
    949

    Something like this will work on any Arduino...

    Something like this will work on any Arduino board and you won't have to resort to templates or lambdas:

    #include "Arduino.h"
    #include "OneButton.h"

    class NewButton: public OneButton {...
  27. Replies
    4
    Views
    224

    Assuming a Teensy 3.x, Pin 11 is I2s MCLK, Pin...

    Assuming a Teensy 3.x, Pin 11 is I2s MCLK, Pin 13 is I2S Din, and Pin 14 becomes SPI CLK. It's all documented on the Audio Board page.
  28. The WM8804-based board that I linked in the...

    The WM8804-based board that I linked in the thread that you referenced above supports both coax and optical S/PDIF input (as well as coax and optical S/PDIF output). It's reasonably priced and is...
  29. Reads / writes of 32-bit variables are atomic on...

    Reads / writes of 32-bit variables are atomic on a 32-bit ARM processor.
  30. Replies
    11
    Views
    626

    I find that the apparent setting hysteresis,...

    I find that the apparent setting hysteresis, drift, and lack of repeatability inherent in using pots outweighs other considerations. But, YMMV.
  31. Replies
    2
    Views
    184

    I'll take a look. Thanks.

    I'll take a look. Thanks.
  32. Replies
    2
    Views
    184

    SD Card on Arbitrary SPI Interface

    Hi all.

    So, the standard Teensy SD library nicely handles SPI-connected SD cards and the SDHC interface on T3.5 / T3.6. However, it's hard-coded to use the SPI instance of SPIClass (aka SPI0).
    ...
  33. Replies
    11
    Views
    626

    The State Table Approach...

    The State Table Approach nicely handles contact bounce as part of its algorithm.

    Here's one implementation that I wrote: https://github.com/gfvalvo/NewEncoder
  34. Replies
    11
    Views
    626

    I'd start by seeing if you have enough pins to...

    I'd start by seeing if you have enough pins to use rotary encoders instead of Pots. They produce much more stable and repeatable results. You might be able to do that by using pins on the T3.5's back...
  35. Actually, it will work perfectly if properly...

    Actually, it will work perfectly if properly implemented. It's done all the time in the digital telecom world. The "PLL" must synch the RX frequency exactly to the TX frequency --- but only on...
  36. @martianredskies, you should probably start a new...

    @martianredskies, you should probably start a new thread instead of hijacking this one. But yes, many of the Audio Library classes contain functions that are intended to be called from the main...
  37. Everything is Open Source. Just open the .h and...

    Everything is Open Source. Just open the .h and .cpp files for the objects of interest. It's all there to see.
  38. Replies
    6
    Views
    350

    I've found Agent Ransack...

    I've found Agent Ransack to be an invaluable tool for answering questions like this.
  39. I'll have to take your word for it on the...

    I'll have to take your word for it on the difference between audio clips. I have no doubt that you hear it. It's just that such minutiae in audio isn't my thing. I'm more a "blink the lights to the...
  40. Replies
    15
    Views
    661

    No, I just used boards with InvenSense devices.

    No, I just used boards with InvenSense devices.
  41. Replies
    2
    Views
    285

    Take a look at the State Table approach described...

    Take a look at the State Table approach described here: http://www.buxtronix.net/2011/10/rotary-encoders-done-properly.html
    It handles de-bouncing automatically as part of the algorithm.
  42. Replies
    15
    Views
    661

    Yes, that's what I found when I tested it. It's...

    Yes, that's what I found when I tested it. It's also what the device's datasheet shows. It also violates the I2S specification.
  43. Replies
    15
    Views
    661

    Well, I can't explain that. Different flavor of...

    Well, I can't explain that. Different flavor of SPH0645 perhaps? This picture is from the datasheet provided by Adafruit for their SPH0645 Breakout:
  44. Replies
    15
    Views
    661

    The SPH0645 is not the best choice as it's I2S...

    The SPH0645 is not the best choice as it's I2S output violates the timing specification. The Data signal transitions on the wrong edge. See:...
  45. Perhaps not. But, if you did as requested, others...

    Perhaps not. But, if you did as requested, others could recreate your issue and test potential solutions. Is there some reason you're unwilling to show code?
  46. Glad it's working. But, your use of the interrupt...

    Glad it's working. But, your use of the interrupt is still wrong and unnecessary.

    What are "gates"? Why can't you just read the input line in the loop() function?

    Also, which Teensy board are...
  47. You need to learn about arrays. They are a basic...

    You need to learn about arrays. They are a basic and essential element of the language. There are numerous references online. Here' Arduino's:...
  48. Check out the Granular effect.

    Check out the Granular effect.
  49. Just use an array of drums: ...

    Just use an array of drums:


    AudioSynthSimpleDrum myDrums[4];
    uint8_t currentDrum;


    void playDrum () {
    myDrums[currentDrum].noteOn();
    }
  50. Perhaps you could adjust the rate of the RX...

    Perhaps you could adjust the rate of the RX T3.5's I2S MCLK (with I2S0_MDR register) based on the fill level of a receive FIFO? It would form a kind of a PLL with the fill level as the phase...
Results 1 to 50 of 418
Page 1 of 9 1 2 3 4