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

Search:

Type: Posts; User: jonr

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds; generated 48 minute(s) ago.

  1. Replies
    8
    Views
    742

    It looks like the teensy4 can be switched from a...

    It looks like the teensy4 can be switched from a 24 Mhz crystal derived oscillator to a RTC crystal derived RC oscillator. Which appears to be tunable with COUNT_RC_TRG (or RC_OSC_PROG?) The result...
  2. As I see it, it encourages people to write...

    As I see it, it encourages people to write portable code and helps find errors in poor code from elsewhere.

    If someone doesn't like the "PRIu32" style, then there is:

    printf(" %u\n", (unsigned)...
  3. Replies
    29
    Views
    602

    > Think will need to convert many many %u %x %d ...

    > Think will need to convert many many %u %x %d to %lu %lx %ld Will be sort of a pain!

    > printf("uint32_t var : %"PRIu32"\n", u32x);

    I see one here:
    Audio/input_adc.cpp:341:45: warning:...
  4. Possibly a i2s MEMs microphone for input into the...

    Possibly a i2s MEMs microphone for input into the teensy?
  5. Replies
    10
    Views
    302

    I unplugged all USB devices and then plugged in...

    I unplugged all USB devices and then plugged in only the teensy. Indeed, this worked!

    Thanks, this will make debugging much easier.

    I suppose ideally there would be some way for the teensy to...
  6. Neither DMAMEM nor using real ffts worked out. ...

    Neither DMAMEM nor using real ffts worked out. But I was successful in using the symmetry of fft output to reduce memory use. This resulted in > 12,000 taps with stereo input and separate impulse...
  7. Replies
    10
    Views
    302

    Forget volume() issue in #5 - volume() is working...

    Forget volume() issue in #5 - volume() is working OK now that I found the alsa control in Linux.
  8. Replies
    41
    Views
    823

    Thanks. Link to audio issue: ...

    Thanks. Link to audio issue:

    https://forum.pjrc.com/threads/63733-Linux-audio-device-bug-toslink-on-T4?highlight=linux+audio
  9. > Tried what? Compared to what? Agreed, wasn't...

    > Tried what? Compared to what?

    Agreed, wasn't clear.

    Serial.printf("%"PRIu32"\n", u32x);
    vs
    Serial.println(u32x);

    But the memory use is a printf() issue, not the use of "PRIu32".
  10. Replies
    41
    Views
    823

    I'm hoping that USB Type: Serial+Midi+Audio on T4...

    I'm hoping that USB Type: Serial+Midi+Audio on T4 with Linux can get fixed. Same exact program works fine with Audio only.
  11. > printf("uint32_t var : %"PRIu32"\n", u32x); ...

    > printf("uint32_t var : %"PRIu32"\n", u32x);

    Nice, thanks. But I tried it on a teensy and memory usage went way up.
  12. My understanding is that output pins should be...

    My understanding is that output pins should be limited to 10mA. Add a mosfet if you need more.
  13. Replies
    5
    Views
    202

    While it can be done from Paul's schematics and...

    While it can be done from Paul's schematics and advice (https://www.pjrc.com/store/ic_mkl02.html) alone, you will be better off starting with one of the published complete designs (schematic, PCB...
  14. Replies
    13
    Views
    483

    > 66 MHz effective Interesting, slower than I...

    > 66 MHz effective

    Interesting, slower than I thought. I'd guess that an unrolled loop of [*d = GPIO1_DR] is probably most similar to how fast DMA can run. If the DMA is triggered by a pin...
  15. Are the Raspberry Pi's GPIO pins set to maximum...

    Are the Raspberry Pi's GPIO pins set to maximum source and sink current drive capability?

    You could put a RC filter on the teensy end.
  16. Account for it being quad SPI.

    Account for it being quad SPI.
  17. Replies
    13
    Views
    483

    @dgranger I'm curious how fast you can go if...

    @dgranger

    I'm curious how fast you can go if you don't use DMA and just poll? Ie, wait for pin change, read/store GPIO, loop.
  18. While 9216x2 taps is OK, it could go higher if...

    While 9216x2 taps is OK, it could go higher if DMAMEM could be used for some of the large arrays (eg fmask). But with USB input and spdif output, this causes some static. Any idea why or how to...
  19. As I recall, the pedvide ADC library has the...

    As I recall, the pedvide ADC library has the obnoxious side effect of turning on interrupts.
  20. Here is the alpha code if you need two impulse...

    Here is the alpha code if you need two impulse responses applied to two channels:
  21. Replies
    3
    Views
    233

    I think you want: float32_t inbuf; ...

    I think you want:

    float32_t inbuf;

    myFile.read(&inbuf, sizeof(inbuf));
  22. Replies
    5
    Views
    325

    I always get 223.98 when using a double. "%.2f"...

    I always get 223.98 when using a double. "%.2f" works even with a float.
  23. > This seems all pretty unstable. Possibly...

    > This seems all pretty unstable.

    Possibly related - I found the audio+midi+serial option to not work with T4.0 and Linux. Serial alone or audio alone (except for volume control) has been fine.
  24. Replies
    3
    Views
    168

    There is lots of info about time accuracy on this...

    There is lots of info about time accuracy on this forum. Consider doing your own temperature compensation. Or using the RTC.
  25. Replies
    10
    Views
    302

    Another issue/bug: any call to usb1.volume()...

    Another issue/bug: any call to usb1.volume() causes the audio device on linux to stop working.

    * Linux Mint, Arduino 1.8.13, TD 1.53
    * Teensy 4.0 with toslink/spdif3 output
    * USB Audio in
  26. Replies
    19
    Views
    480

    It probably helps (lower jitter?), but experience...

    It probably helps (lower jitter?), but experience says it isn't necessary.
  27. I have code to alpha test if anyone is interested.

    I have code to alpha test if anyone is interested.
  28. Agreed, unless someone with better understanding...

    Agreed, unless someone with better understanding wants to help, creating a second fmask array and then running the existing multiply/ifft process twice better fits my limited understanding of this...
  29. > both IRs (for left and right speaker channels)...

    > both IRs (for left and right speaker channels) are both stuffed into the maskgen buffer

    I thought about this, but if this would work, how does it work as the code is now? The imaginary/odd...
  30. Replies
    19
    Views
    480

    +1 on what Paul said. Since this keeps coming...

    +1 on what Paul said. Since this keeps coming up, here is one that can be copied. Note the guard ring and single ground connection point. Not shown is the continuous ground plane under it. ...
  31. Ran into an issue - speaker/room correction is...

    Ran into an issue - speaker/room correction is normally done with a separate impulse for each channel. And I don't understand the code well enough to change it.
  32. Replies
    10
    Views
    302

    That wiring worked, but wasn't bright enough for...

    That wiring worked, but wasn't bright enough for some DACs. This works correctly.
  33. Replies
    10
    Views
    302

    Has anyone used T4 Serial+Midi+Audio with Linux? ...

    Has anyone used T4 Serial+Midi+Audio with Linux? DD4WH (OS unknown) reported the opposite problem (Audio alone didn't work).
  34. Replies
    19
    Views
    480

    I think your crystal is sharing a line with...

    I think your crystal is sharing a line with something else. I wouldn't do that.
  35. Will do once I'm done. More on DRC here: ...

    Will do once I'm done. More on DRC here:

    https://en.wikipedia.org/wiki/Digital_room_correction#:~:text=Digital%20room%20correction%20(or%20DRC,of%20a%20sound%20reproduction%20system.

    It does...
  36. Thanks (for the help and the code). I found it...

    Thanks (for the help and the code). I found it was necessary to use AudioMemory(20). Sounds good now. Might be worth using 20 (or more?) in your code.

    The goal is to do digital room...
  37. I don't use I2S at all, but restoring that rate...

    I don't use I2S at all, but restoring that rate line made no difference. A big clue - disabling all the convolution code and just taking samples, converting to float and then back also has the...
  38. I made minimal changes to use USB input and...

    I made minimal changes to use USB input and spdif3 output and I get lots of static (setup works fine without convolution). Tried two difference versions (first was 09/11/2019). Any suggestions or...
  39. Replies
    10
    Views
    302

    Linux audio device bug? + toslink on T4

    When I run this program with the USB type set to Serial/MIDI/Audio, there is silence. I change to USB type "Audio" and it works well. T4, OS is Linux Mint, Teensyduino 1.53. Is it possible to have...
  40. Replies
    19
    Views
    480

    More info here: ...

    More info here:

    https://forum.pjrc.com/threads/62921-Help-with-Teensy-3-2-DIY-Project
  41. > do Serial.flush() I've been caught by the...

    > do Serial.flush()

    I've been caught by the fact that Serial.flush() doesn't actually wait until the data is seen by the PC. For that you also need a delay.
  42. Replies
    3
    Views
    168

    Due to pin-out differences (a TCXO needs power),...

    Due to pin-out differences (a TCXO needs power), I assume this is for a custom teensy design? If so, I'd encourage you to design it to use a VCXO. This would allow software to trim for even better...
  43. Thread: audio clock slip

    by jonr
    Replies
    15
    Views
    438

    There is frequency accuracy and jitter. ...

    There is frequency accuracy and jitter. Hopefully nobody is thinking that something like a 10 ppm difference in frequency is audible (unless it causes a buffer under-run). Jitter does effect sound...
  44. Thread: audio clock slip

    by jonr
    Replies
    15
    Views
    438

    NTP works better than I guessed. I run chrony on...

    NTP works better than I guessed. I run chrony on my PC and it reports that the system clock wanders around 5 ppm fast but is corrected to .01 ppm.

    My sound card's rate is a bit off - I have to...
  45. Thread: audio clock slip

    by jonr
    Replies
    15
    Views
    438

    I'm no expert, but I see these choices for audio...

    I'm no expert, but I see these choices for audio rate sync where there is a teensy and other audio clocks:

    a) Use a shared clock source. Certainly possible if the teensy is the clock source,...
  46. Thread: audio clock slip

    by jonr
    Replies
    15
    Views
    438

    > the host is responsible for adjusting the data...

    > the host is responsible for adjusting the data rate to match the device's requirement

    Understood, and helpful to know this. But if the data is coming into the PC from some other source (eg,...
  47. Thread: audio clock slip

    by jonr
    Replies
    15
    Views
    438

    Another option would be to flip between PLL4 and...

    Another option would be to flip between PLL4 and PLL5. I don't know if that would cause any audible glitch.

    It does appear that when the crystal is exactly 24 mhz, the system will produce...
  48. Thread: audio clock slip

    by jonr
    Replies
    15
    Views
    438

    Regarding PLL4, it looks like it needs to be...

    Regarding PLL4, it looks like it needs to be stopped and restarted to change. But there are periods when an audible glitch would be harmless. For example, on startup. Ie, run for a few minutes...
  49. Replies
    6
    Views
    286

    As much as possible, switch to digital audio...

    As much as possible, switch to digital audio transmission.
  50. Thread: audio clock slip

    by jonr
    Replies
    15
    Views
    438

    audio clock slip

    Just getting started with teensy audio. I imagine that the teensy 4 derives its i2s clock from something that isn't an exact multiple of 44100. So if I'm receiving real-time audio on a PC at 44100...
Results 1 to 50 of 499
Page 1 of 10 1 2 3 4