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

Search:

Type: Posts; User: FRS

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    498

    Ok, I think I understand... I've attached new...

    Ok, I think I understand...
    I've attached new files that should work correctly.

    muxAmp.h

    #ifndef muxamp_h_
    #define muxamp_h_
    #include "Arduino.h"
    #include "AudioStream.h"
  2. Replies
    5
    Views
    498

    Hi Mark, Thanks for the tips, I completely...

    Hi Mark,

    Thanks for the tips, I completely understand your last two points and will update the code to initialize and check for limits.

    Can you explain further on how I would release all 15...
  3. Replies
    5
    Views
    498

    It was not working before with that in there. I...

    It was not working before with that in there. I admit I don't fully understand the handling of blocks, and with the original code that says if gain is 0, release block. Seems like the block needs to...
  4. Replies
    5
    Views
    498

    16 to 1 Multiplexor with Gain

    I'm creating a library object that selects 1 of 16 input blocks, applies gain, and then outputs a single block of audio.
    I've been testing this on the Teensy 4.0. The multiplexing/switch of inputs...
  5. For anyone else running into this problem, I have...

    For anyone else running into this problem, I have found that Arduino EasyTransfer library gets the job done, and uses only 1 wire instead of 2.
    There are a few libraries like Teensy4_I2C out there,...
  6. Teensy 4.0 not working as Slave Reader with Wire

    I recently updated my project from the Teensy 3.2 to the Teensy 4.0, as I was running out of processing power for audio portion of my project.

    In my project I have a Teensy 3.2 (interface...
  7. Replies
    2
    Views
    983

    Thanks Paul for all your help!

    Thanks Paul for all your help!
  8. Replies
    2
    Views
    983

    Audio Block Allocation Question

    I'm working on a custom audio library object, and have changed AUDIO_BLOCK_SIZE from 128 to 16 samples in my project to improve some latency issues. That all works just fine.

    This leads me to...
  9. Tips for improved latency... Try lowering the...

    Tips for improved latency... Try lowering the BLOCKSIZE from 128 to something more like 16 (that seems to be the best value that still allows things to work properly.

    If you are using the...
  10. Replies
    4
    Views
    1,150

    Works great! Thanks for your guidance Frank!

    Works great! Thanks for your guidance Frank!
  11. Replies
    4
    Views
    1,150

    That does help, but I don't think I'm coding it...

    That does help, but I don't think I'm coding it correctly. I can't seem to get the code to compile.

    My code:

    #include <ParallelFlash.h>

    void setup() {

    // wait for Arduino Serial...
  12. Replies
    4
    Views
    1,150

    Direct address of samples on flash chip

    If I transfer RAW samples from SD card to the flash chip, then use the ListFiles examples to read what is on the flash chip it serial prints the sample name and file size.

    My question is how to...
  13. Thread: Parallel SPI Flash

    by FRS
    Replies
    11
    Views
    5,059

    I got it working. Much faster! I for one,...

    I got it working. Much faster!

    I for one, really appreciate your contribution of code Frank!

    Anyone complaining latency and their audio glitching when trying to play RAW serial, should look...
  14. Thread: Parallel SPI Flash

    by FRS
    Replies
    11
    Views
    5,059

    Hi Frank, This looks like just what I need to...

    Hi Frank,

    This looks like just what I need to hopefully speed up sample reading from the flash memory. However I'm having some issues trying to get this all to work. I am using W25Q128FVSIG flash...
  15. Replies
    4
    Views
    1,109

    I found another thread talking about the same...

    I found another thread talking about the same issue I noticed here:
    https://forum.pjrc.com/threads/40351-Latency-and-Jitter-values-for-Teensy-3-2-DAC-and-for-the-Audio-Board-s-i2s

    I have...
  16. Replies
    4
    Views
    1,109

    As another test, playing sounds stored internally...

    As another test, playing sounds stored internally in the processor plays at the same latency rate as when reading sample for the RAM chip.

    I'm under the impression that the audio block being 128...
  17. Replies
    4
    Views
    1,109

    When I substitute in the sgtl5000_1 DAC to play...

    When I substitute in the sgtl5000_1 DAC to play audio instead of the processors internal DAC, the latency appears to be 4-6ms.

    So it appears that the sgtl5000_1 is able to play audio 2ms faster...
  18. Replies
    4
    Views
    1,109

    Ext Interrupt to sample playback latency

    I've got a teensy 3.2 project nearly completed, and am now focusing on the timing of things as I was noticing a 10ms delay from receiving an external interrupt to the time a sample begins playing.
    ...
  19. Replies
    0
    Views
    811

    Changing sample playback rate on internal DAC

    I'm looking for anyone who has been successful at manipulating the audio playback rate of samples when using the internal 12 bit DAC.

    I have played with using someone else's code when using the...
  20. Replies
    13
    Views
    5,907

    Kurt, that's good to know. I'll plan to keep both...

    Kurt, that's good to know. I'll plan to keep both devices on the same i2C buss to simplify things.

    Something I notice is in the sketch setup of parameters for audio and patch chord routing, it...
  21. Replies
    13
    Views
    5,907

    After moving the display to SDA/SCL1, I got it to...

    After moving the display to SDA/SCL1, I got it to work, but could not get the code to compile without errors for the SGTL5000 to work on SDA/SCL0 while using the i2c_t3. If I put Wire back in to...
  22. Replies
    13
    Views
    5,907

    I'm not trying to use Wire.h and i2c_t3.h at the...

    I'm not trying to use Wire.h and i2c_t3.h at the same time.

    when using i2C_t3, functions still call wire like: Wire.beginTransmission(i2c_addr);

    I was successful in getting the OLED display...
  23. Replies
    13
    Views
    5,907

    UPDATE: I commented out all of my additional...

    UPDATE: I commented out all of my additional "audio" code from the sketch, and the OLED display is now working with SCL1, and SDA1 with the changes I noted in my previous post.

    So now I get to...
  24. Replies
    13
    Views
    5,907

    Can you expand on what this requires? If I want...

    Can you expand on what this requires?
    If I want to keep the audio card with SGTL5000 on the default i2C buss, would anything really change here?

    In my sketch I commented out Wire.h, and included...
  25. Replies
    13
    Views
    5,907

    I'm using a Teensy 3.2 board, with the audio...

    I'm using a Teensy 3.2 board, with the audio shield soldered on top of the teensy.

    I saw other posts mention the i2c_t3 and was looking into that, but it only brings up more questions. It sounds...
  26. Replies
    13
    Views
    5,907

    Help using OLED SSD1306 I2C on SCL1 and SDA1

    Anyone know how I can get an OLED SSD1306 running on the I2C buss to work with SCL1 and SDA1 rather than SCL0 and SDA0?

    I've got a project, and have tested the display using SCL0 and SDA0 and...
  27. Replies
    13
    Views
    3,794

    Hi Paul, My work computer is not online for...

    Hi Paul,

    My work computer is not online for easy transfer of code into the forum. However the test setup was simply to wire a WAVEFORM object to the i2S1 output object in the GUI. The write...
  28. Replies
    13
    Views
    3,794

    I'm begging to think this ringing is due to the...

    I'm begging to think this ringing is due to the SGTL5000's built in filtering.

    With a sample rate of 44,100, the ringing measures 45.3us, or a frequency of 22,050hz.
    Changing the sample rate to...
  29. Replies
    13
    Views
    3,794

    excessive ringing on WAVEFORM waves

    Anyone else notice excessive "ringing" when looking at the output of the waveforms on a scope when using the WAVEFORM oscillator?

    As a test I have a WAVEFORM module wired directly to the i2S1...
  30. Replies
    11
    Views
    3,884

    I can only assume that the author of the bitcrush...

    I can only assume that the author of the bitcrush library was trying to simplify the code by shifting bits right and then left to clear out unused bits. In their comments an unsigned int is used so...
  31. Replies
    11
    Views
    3,884

    Bitcrush library is not correct

    I just wanted to point out that the Bitcrush library is incorrect, due to the way bits are shifted right and then left to truncate the lower bits.

    The problem with this method is that although...
Results 1 to 31 of 31