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

Search:

Type: Posts; User: Bill Glass

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    75
    Views
    6,647

    Is the results what you expected? I hope so. ...

    Is the results what you expected?

    I hope so.

    They sure look good to me.

    I will probably get a transmitter optical connector for my box as well as the same company makes an FCR684205(R&T). My...
  2. Replies
    75
    Views
    6,647

    I had too much volume on my TV music player and I...

    I had too much volume on my TV music player and I switched to external 5V supply on Teensy Vin instead of power from the USB. It looks good now. Here's the input wav file, and the SD card recorded...
  3. Replies
    75
    Views
    6,647

    For the 10kHz without recording to the SD but to...

    For the 10kHz without recording to the SD but to the USB, same " really not look good" spectrum.
    But, with 10kHz tone on the audio input to the adapter and output to the USB, result was OK.

    26675
  4. Replies
    75
    Views
    6,647

    My results using optical spdif connector...

    My results using optical spdif connector recording a 10 kHz sine wav coming out of my TV audio player OR my PC via an optical cable.


    #include <Bounce.h>
    #include <Audio.h>
    #include <Wire.h>...
  5. Replies
    75
    Views
    6,647

    Thank you. I received the optical connecter...

    Thank you. I received the optical connecter today. I tried to hook it up but there seems to be a compatability issue between the spdfin pin 15 of the Teensy 4.0 and the audio adapter. I need the...
  6. Replies
    75
    Views
    6,647

    Hello Alex I am still waiting for that optical...

    Hello Alex

    I am still waiting for that optical spdif connector to evaluate the quality of the received signal from my TV thru the Teensy spdif asrc input. I now have a reliable method for...
  7. Replies
    75
    Views
    6,647

    OK, no more hiccups. Got me what seems to be a...

    OK, no more hiccups. Got me what seems to be a good method for analyzing Teensy digital audio after ADC. Thanks for your help! Attached are the spectrums of input to Audacity player sig.jpg, and SD...
  8. Replies
    75
    Views
    6,647

    BTW, I'm the BUG. Yes, indeed. Quick test with...

    BTW, I'm the BUG. Yes, indeed. Quick test with same program, I set m to 100 blocks (301.7ms means 103.7 blocks) and I set AudioMemory(128). It happens now. I'll go look for hiccups tomorrow.

    Thanx!
  9. Replies
    75
    Views
    6,647

    There is a problem with the length of the...

    There is a problem with the length of the recording queue. If (queue1.available() >=12) it never happens. 12 corresponds to 35msec of 44100Hz samples. According to the Recorder example sketch, the...
  10. Replies
    75
    Views
    6,647

    Yes, but there were, worst case, 22msec even with...

    Yes, but there were, worst case, 22msec even with those last hiccups I showed. According to the comment in the record example, the buffer object can tolerate 301.7 msec. from time to time.
  11. Replies
    75
    Views
    6,647

    Observations: 1. After studying the forum, there...

    Observations:
    1. After studying the forum, there seems to be a general problem concerning reliable recording of audio on the SD card even if reasonable average SD write latency is obtained (<2ms)....
  12. Replies
    75
    Views
    6,647

    And my next day discovery concerning the previous...

    And my next day discovery concerning the previous spectrum reveals occasional hiccups in that 128-sample recording queue.

    26647
  13. Replies
    75
    Views
    6,647

    I powered up myTeensy and audio adapter with 5V...

    I powered up myTeensy and audio adapter with 5V on Vin instead of via the USB cable. Better but not perfect. I'm curious to find out how it will look when I get that spdif input interface.


    ...
  14. Replies
    75
    Views
    6,647

    And the winner is 22msec but occasionally with...

    And the winner is 22msec but occasionally with normal values of 1.7msec.
    I recorded a linein signal at 172.2256Hz (period of 256 samples at 44.1kHz) and it looks pretty ratty. I didn't have this...
  15. Replies
    75
    Views
    6,647

    Ah, that corresponds precisely with what I'm...

    Ah, that corresponds precisely with what I'm doing. Recording every 2 audio blocks to the SDCard. Sounds like a bug? Here's my code:
    #include <Bounce.h>
    #include <Audio.h>
    #include <Wire.h>...
  16. Replies
    75
    Views
    6,647

    Yes, as soon as I get that connector for the...

    Yes, as soon as I get that connector for the spdif optical cable, I will test it and publish the results. I am a little bit pessimistic about what may happen between my 24-bit sine wav file on my USB...
  17. Replies
    75
    Views
    6,647

    VERY IMPRESSIVE! I ordered the connector you...

    VERY IMPRESSIVE! I ordered the connector you suggested and I will try it out, recording(via an SDCard on my audio adapter) a sine wave from a wav file stored on my TV audio player. I don't know how...
  18. Replies
    75
    Views
    6,647

    Hello. Thanx for the info. Yes, I will try that....

    Hello. Thanx for the info. Yes, I will try that. If it works OK with the Teensy Async spdif input, I will replace my audio connector input with it. It's for my AGC/Compressor box (see below). How...
  19. Replies
    75
    Views
    6,647

    I would like to try this example too. Can you...

    I would like to try this example too. Can you please explain the hardware and schematic I need to interface my optical cable to my Teensy 4.0 and audio adapter. Thanks.
  20. Final version: // Record sound as raw data...

    Final version:


    // Record sound as raw data to a SD card
    //
    // Requires the audio shield:
    // http://www.pjrc.com/store/teensy3_audio.html
    //
    // 1 pushbutton needs to be connected:
    // ...
  21. OK, I have an idea on how I can compare processor...

    OK, I have an idea on how I can compare processor usage of myTeensyBiq vs. the standard audio library biquad.

    1. I know that I can use the command, biquad.processorUsage() to have the the % usage...
  22. 1.OK got it. 2.Last question of the (next)...

    1.OK got it.

    2.Last question of the (next) day. I was able to measure the execution cycles/sample wit myTeensyBiq() because I have access to the beginning and end execution times but not so with...
  23. See myTeensyBiq() in the code which I just sent...

    See myTeensyBiq() in the code which I just sent using multiply_accumulate_32x32_rshift32_rounded() & described in dspinst.h. I get better results than filter_biquad.cpp (THD=90dB instead of 72),...
  24. I have recorded biquad outputs to SDCard instead...

    I have recorded biquad outputs to SDCard instead of thru the USB interface to avoid any additional processing to them.
    Here is my code and results (cycles corrected for calculation error).

    What...
  25. Thanx. Yeah, I've learned a lot from y'all! It's...

    Thanx. Yeah, I've learned a lot from y'all! It's a good forum!
  26. Hello, I have now successfully integrated the...

    Hello,

    I have now successfully integrated the Compressor code AND the AGC code on a single platform. There is a Teensy 4.0, an Audio Adapter, an OLED display controlled by an ATMega328(3.3V 8...
  27. Yes I forgot to do that. DC offset is gone now. I...

    Yes I forgot to do that. DC offset is gone now. I also made a mistake on cycles/mac because I was counting only 5 mac's per biquad when it's really 7 (2nd term of num & den polynomial coefs can be >...
  28. Biquad results using multiply_accumulate_32x32_rshift32_rounded

    I was interesting in finding out what the differences are between using the standard Teensy biquad library and using a direct form 1 32x32 MAC for a 6th order LPF at fc=1000Hz.
    Enclosed, find the...
  29. I implemented my AGC algo. It works great for...

    I implemented my AGC algo. It works great for music. However, I might use your compressor for watching TV movies as my hearing is not so good for comprehension. I found that I can store the test...
  30. I guess the trace on the audio shield is just a...

    I guess the trace on the audio shield is just a test point then?
    I can see the danger of connecting a virtual ground with a DC offset to an input device(BT xmitter) at REAL ground.
    I guess the...
  31. In fact, I solved my problem. I browsed around...

    In fact, I solved my problem. I browsed around the forum and found out that I shouldn't connect audio shield headphones output to line in of another external device (in my case a bluetooth...
  32. I have developed a "final" version for my...

    I have developed a "final" version for my (Teensy+AudioAdapter+Oled) TV & Stereo agc box. It works OK but I noticed a slight 50Hz humming noise added to the sound. I am supposing it's ground loop...
  33. At my level, didn't find anything so just added...

    At my level, didn't find anything so just added an ATMega328P 3.3V, 8MHz on the Teensy TX4 pin to manage the OLED. It's overkill but doesn't take much additional space and cheap.

    26290
  34. Thank you. I will look at that option.

    Thank you. I will look at that option.
  35. I guess I chose the wrong option when I ordered...

    I guess I chose the wrong option when I ordered it. Anyhow, seems it will be difficult to go from 50 msec to < 2.9 msec. I'll check it out. Thanx.
  36. Next problem in my Teensy adventure. Wanted to...

    Next problem in my Teensy adventure. Wanted to add an OLED 128x32 (Adafruit_SSD1306) display to my AGC project to monitor the left & right agcGain's. I found that the display blocks the execution of...
  37. Interesting. 640/147. Alotta coefs. Maybe the...

    Interesting. 640/147. Alotta coefs. Maybe the 44.1K is not converted exactly to 192K by using smaller ratios, then resolved later by the HW? Interesting subjects (at least for me). Also, a high...
  38. I agree there's no clock-mismatch but there's no...

    I agree there's no clock-mismatch but there's no "common representation" for converting from 44117(for example) to 44100Hz. It would require an interpolation by 44100 and a decimation by 44117....
  39. Well, I simulate before. Firstly, Mathlab....

    Well, I simulate before.
    Firstly, Mathlab.
    Secondly, C(mingw64 on my PC) in fixed point including dspinst.h to emulate the DSP Cortex instructions.
    Finally, I code the Teensy.
    I like to compare...
  40. What I found today. Teensy 4.0 configured as a...

    What I found today. Teensy 4.0 configured as a passthru: input wav file containing 10000 Hz tone named sig.wav & played from Teensy SD card, sent thru a FIR with center tap at 1.0 and all others 0.0,...
  41. Hi Frank; Interesting and surprising for doing...

    Hi Frank;

    Interesting and surprising for doing that with high quality audio. But, effectively, I can't hear the xtra or missing samples on my PC. I remember when I was working, we developed a...
  42. But there's gotta be an asynchronous sample rate...

    But there's gotta be an asynchronous sample rate conversion somewhere. Otherwise, if the PC is running at 44101(crystal precision) and the Teensy USB audio driver is at 44999, there's gonna be 2 lost...
  43. Samples are coming from the Teensy to the PC at...

    Samples are coming from the Teensy to the PC at 44100 +- epsilon via the USB driver. I configured the Audicity digital recording rate to 48000. Who's doing the conversion to 48000? Audacity software...
  44. I did an experiment with Audacity where I...

    I did an experiment with Audacity where I programmed fs=48000 and I obtained a wav file from Audacity at 48000 even though I configured Audacity for "digital audio interface(Teensy)". Maybe there's...
  45. But my original question remains: "What is in the...

    But my original question remains: "What is in the path connecting the audio samples on the SD card to the Audacity digital input audio samples (except for the 128 sample queue in the Teensy)?"....
  46. Slight error (I'm a rookie with this GUI tool and...

    Slight error (I'm a rookie with this GUI tool and I didn't knpw you could unwrap the imported code without xy coordinates). I just removed the #ifdef code not compiled and imported & unwrapped it in...
  47. NO. The GUI tool doesn't take into consideration...

    NO. The GUI tool doesn't take into consideration the #ifdef's according to what I programmed (relook at my code). See correct attached image here: 26228
  48. I sure would like to get a clear and precise...

    I sure would like to get a clear and precise answer concerning a question that I asked to Paul Stoffregen concerning 100% digitally evaluating library filter xfer functions. "Using the SDcard Player,...
  49. My SDcard reader is already not very reliable in...

    My SDcard reader is already not very reliable in only 1 direction. It's easier to get the USB digital Teensy ouput to Audacity f26220or analysis or creating wav files. Attached, the spectrum obtained.
  50. p.s. The filters will be patched in between...

    p.s. The filters will be patched in between playSdWav1 and audioOutput
Results 1 to 50 of 69
Page 1 of 2 1 2