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

Search:

Type: Posts; User: grinch

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    18
    Views
    414

    Mostly posting here out of a sense of completion....

    Mostly posting here out of a sense of completion. Further topics of interest would be higher resolution interrupts for clean buffer transfer at 44.1kHz sample rate and a fix for the apparent bug in...
  2. Replies
    18
    Views
    414

    Got the parts in today to try the built-in SPDIF...

    Got the parts in today to try the built-in SPDIF method. It's working great. I'm getting very clean signal with no dropouts. Additionally by running the SPDIF output at 48kHz I eliminate an buffer...
  3. Replies
    18
    Views
    414

    After doing some more research I have another...

    After doing some more research I have another thought. Seems like this would be a great application for the new S/PDIF input object that was added to the audio library for the Teensy 4.0. I know some...
  4. Replies
    18
    Views
    414

    Here is the code I'm using to test: ...

    Here is the code I'm using to test:



    #include <Audio.h>

    AudioInputUSB usb1;
    AudioOutputMQS mqs; //just to trigger audio library update ...
  5. Replies
    18
    Views
    414

    Tested this on another computer with built-in USB...

    Tested this on another computer with built-in USB ports running OSX 10.12. I get the same overrun / underrun problem as before.

    One thing that would be helpful to know: is this a longstanding...
  6. Replies
    18
    Views
    414

    I case it matters, I also have to use one of...

    I case it matters, I also have to use one of those stupid USB C to regular USB converter dongles since Apple decided to start eliminating ports. I've tried a couple of these out to see if it makes a...
  7. Replies
    18
    Views
    414

    1. Gotcha, I'll go with other options in that...

    1. Gotcha, I'll go with other options in that case.

    2. That's fine, appreciate you just giving advice. The sample offset tracking thing is very case specific so I wasn't expecting to have anyone...
  8. Replies
    18
    Views
    414

    Thank you for hopping on the thread Paul, was...

    Thank you for hopping on the thread Paul, was hoping I could get your input on this ;). That helps clear up a lot of my understanding.

    After making a test patch to check the overrun and underrun...
  9. Replies
    18
    Views
    414

    Also hoping someone can tell me the function of...

    Also hoping someone can tell me the function of "usb_high_speed" and how that variable gets set
  10. Replies
    18
    Views
    414

    I'm hoping someone can answer my original...

    I'm hoping someone can answer my original question. The behavior I'm getting seems to suggest that USB audio is discarding samples at some point, which seems weird. I'm wondering how this happens and...
  11. Replies
    18
    Views
    414

    -Max/MSP (https://cycling74.com/) is a visual...

    -Max/MSP is a visual programming environment that's well set up for audio synthesis. The point here isn't to use Max though, but rather to get audio from any programming environment on a laptop. This...
  12. Replies
    18
    Views
    414

    Bump.........

    Bump.........
  13. Replies
    11
    Views
    265

    So I tried this with the Teensy 4.0, which seems...

    So I tried this with the Teensy 4.0, which seems to solve whatever dropout issue I was having with the Teensy 3.6. I am getting the occasional buffer overrun flag, which seems to be related to the...
  14. Replies
    11
    Views
    265

    I tried this using the AudioSynthWaveformDC...

    I tried this using the AudioSynthWaveformDC object to generate a constant value for dropout detection output. As I would expect, this version detects no dropouts whatsoever. Left it running over an...
  15. Replies
    18
    Views
    414

    USB Audio Frame Sync on Teensy 4.0

    Hi, I am working on an audio project using the Teensy 4.0 as a USB audio device. In this project I use a usb audio stream from Max/MSP to control a large array of binary shift register outputs, 64 in...
  16. Replies
    11
    Views
    265

    Yeah I was already thinking of trying this. Got a...

    Yeah I was already thinking of trying this. Got a couple Teensy 4.0s in the mail, and I'm going to see if it works any better once I switch them out.

    I've been looking on github for the Teensy4...
  17. Replies
    11
    Views
    265

    This is the case. I set my interval timer...

    This is the case. I set my interval timer priority to 0 in order to ensure it is completely sample accurate. I'm not exactly sure how this interacts with other timer priority stuff, but it is the...
  18. Replies
    13
    Views
    392

    Hey all, this is mostly working well, but I'm...

    Hey all, this is mostly working well, but I'm experiencing an issue with dropped audio frames. Would be incredibly helpful if y'all were able to advise. Made a post about it here: POST
  19. Replies
    11
    Views
    265

    I'm really hoping Paul or someone else with in...

    I'm really hoping Paul or someone else with in depth knowledge of the audio library can weigh in on this. My code is doing a multithreaded thing with two layers of interrupts, and I'm thinking that...
  20. Replies
    11
    Views
    265

    Hmmm... tired that out, doesn't seem to have much...

    Hmmm... tired that out, doesn't seem to have much effect. When I compiled as debug there was a lag before dropouts started occurring but then they come back at the same rate as before. Was worth a...
  21. Replies
    11
    Views
    265

    Here is the Max Patch I am using to test this. It...

    Here is the Max Patch I am using to test this. It sends a constant value of 8.0 / 32767.0 out of the left audio channel, which gets read as 0B00001000 in binary on the Teensy end, which corresponds...
  22. Replies
    11
    Views
    265

    Dropped Frames Using AudioInputUSB Object

    Hi, I am working on a Teensy 3.6 audio project where I am controlling an array of shift register outputs via a USB audio stream from Max/MSP. I've written a custom object to transfer the data from...
  23. Replies
    13
    Views
    392

    Actually working quite well now. The...

    Actually working quite well now. The digitalWriteFast() function helped a ton. Removed a bunch of wobble from the waveform. I'm also calling the latch write first thing in my output function, so that...
  24. Replies
    13
    Views
    392

    So I actually got a dirty proof of concept...

    So I actually got a dirty proof of concept version of this working using a circular ring buffer and the IntervalTimer object. I've got a custom output object written that copies incoming audio blocks...
  25. Replies
    13
    Views
    392

    I don't think DMA will work for my specific...

    I don't think DMA will work for my specific application. While there may theoretically be a way to hook up DMA transfers to a SPI buffer, in this case I need to transfer 64 bits at a time, and not...
  26. Replies
    13
    Views
    392

    Do all the audio output objects rely on the DMA...

    Do all the audio output objects rely on the DMA object interrupt? What would you recommend using as a timing source for an output that doesn't use DMA?
  27. Replies
    13
    Views
    392

    How Does Output Object Timing Work?

    Hi, I am working on a project for which I'd like to write a custom output object for the Teensy audio library (using Teensy 3.6). To this end I have been studying the existing output objects in the...
  28. Replies
    0
    Views
    63

    Teensy Audio Not Working on OSX 10.15

    I'm trying to work on a project using the Teensy Audio library, which says it installs automatically with Teensyduino. However when I install Teensyduino on OSX 10.15 and try to run some example code...
  29. In case anyone else experiences a similar problem...

    In case anyone else experiences a similar problem here is the answer:

    DC must be connected to another audio object for the update function to be called. Making a dumby connection to something else...
  30. AudioSynthWaveformDc Timed Amplitude Function Not Working

    Hi, I'm working on an audio project that could use a smoothed control signal, was hoping to use AudioSynthWaveformDc with its timed amplitude function. However, when I try to use the timed amplitude...
  31. Clean Looping Mod for AudioPlaySDWav Using File.seek(int)

    Hi, I recently posted about making a SD wav file player object that could handle more than 2 channels. Well I did that and it's working really well! Now I'm trying to add in clean looping...
  32. Audio Lib: Playing SD Wav Files with More Than 2 Channels

    Hi, I have an application wherein it would be useful to be able to play back a wav file with more than 2 channels of audio from an SD card. I have an 8 channel TDM codec board (based on Paul's...
  33. Opening it with sublime text. Here is the code, I...

    Opening it with sublime text. Here is the code, I am trying to loop playback of raw files:


    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>
    ...
  34. Also, the documentation in the audio design tool...

    Also, the documentation in the audio design tool says otherwise:

    "The data file must be RAW 16 bit signed integers in LSB-first format."
  35. Okay, do you know of any way to check if the...

    Okay, do you know of any way to check if the conversion went correctly? Like what the contents of the raw file should look like? I tried using a program called switch which had the option: 16-Bit PCM...
  36. Creating Raw Files for AudioPlaySdRaw Object

    Hi, I'm working on a project that requires playing back a bunch of audio files at once, wanted to try out using AudioPlaySdRaw in place of AudioPlaySdWav in order to reduce overhead. However the...
  37. Replies
    6
    Views
    421

    Indeed there was! I think I just needed to call...

    Indeed there was! I think I just needed to call SPI.begin() after setting the MOSI and SCLK to alternate pins, rather than before, was just taking this from the example, so I didn't realize the begin...
  38. Replies
    6
    Views
    421

    Updated update: But then as soon as I comment...

    Updated update:

    But then as soon as I comment out the lines activating SPI, everything starts working fine:


    // SPI.begin();
    //
    // SPI.setMOSI(SDCARD_MOSI_PIN);
    // ...
  39. Replies
    6
    Views
    421

    Update: When I try changing the SPI pin...

    Update:

    When I try changing the SPI pin assignment the codec output becomes extremely noisy, sounds like a mismatched data / clock signal kind of thing:


    // Use these with the Teensy 3.5 & 3.6...
  40. Replies
    6
    Views
    421

    Hmmmm... Interesting... Perhaps it's these...

    Hmmmm... Interesting... Perhaps it's these section of the code:

    // Use these with the Teensy 3.5 & 3.6 SD card
    #define SDCARD_CS_PIN BUILTIN_SDCARD
    #define SDCARD_MOSI_PIN 11 // not...
  41. Replies
    6
    Views
    421

    CS42448 Codec with SD Card Audio

    Hi, I've been messing around with using the CS42448 codec with a teensy 3.6, based on the design given in this article (thanks Paul!):...
  42. Thanks for adding that so quickly! I'm sure...

    Thanks for adding that so quickly! I'm sure that'll be helpful for folks who are trying to use this.
  43. I found the BUILTIN_SDCARD define in the library....

    I found the BUILTIN_SDCARD define in the library. It's defined as 254 so I tried replacing BUILTIN_SDCARD with that in my code, and it compiles but the SD card fails to open.

    I'm beginning to...
  44. To be more specific, the problem is that this...

    To be more specific, the problem is that this function (containing playSDWav.play() and playSDWav.isPlaying()) takes much longer to execute when I add the OLED, neopixel and button controls to the...
  45. Teensy Loader 1.44 (is that the Teensyduino...

    Teensy Loader 1.44 (is that the Teensyduino version number?)
    Teensy 3.6
  46. playSDWav.isPlaying() and playSDWav.play(file) are blocking loop

    Hi, I'm working on a project which requires a lot of channels of audio playback (16 mono channels to be precise). I'm trying to do this on a Teensy 3.6 using the SD wav file player object playSDWav....
  47. Also, as soon as I uncomment the line: #define...

    Also, as soon as I uncomment the line:
    #define USE_TEENSY3_OPTIMIZED_CODE

    In:
    Arduino/Contents/Java/hardware/teensy/avr/libraries/SD/SD_t3.h


    I get the following error in compilation:...
  48. Are you referring to the hardware folder that...

    Are you referring to the hardware folder that lives inside the Arduino application?

    So like Arduino>ShowPackageContents: Contents/Java/hardware/teensy/avr/libraries/SD?

    If so that would...
  49. Trying to Use SD Optimization from Teensy Audio Lib

    Hi, I'm trying to use the SD optimization from the teensy audio library.

    In the documentation for playSDWav it says:

    An experimental SD library optimization exists, which can remove these SD...
Results 1 to 49 of 51
Page 1 of 2 1 2