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

Search:

Type: Posts; User: alex6679

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Hi, Unfortunately that won't work. There...

    Hi,



    Unfortunately that won't work. There is alway only 1 block that clocks the audio pipeline (triggers the call of the update function of all blocks). Depending on the order of the...
  2. Replies
    90
    Views
    7,576

    Hi, yes, there are really 20481 coefficients...

    Hi,
    yes, there are really 20481 coefficients (32bit float).



    Why not? If your algorithm is e. g. not slower and doesn't need more memory, but at the same time has lower distortion, then I...
  3. Replies
    90
    Views
    7,576

    You are right, two things are happening: 1. The...

    You are right, two things are happening:
    1. The resampling of the signal.
    2. Every 128 samples/ at each call of the update function, the number of samples in the input buffer is monitored (the...
  4. Replies
    90
    Views
    7,576

    Thanks for sharing the result.

    Thanks for sharing the result.
  5. Replies
    90
    Views
    7,576

    I could only test the algorithm with my hardware...

    I could only test the algorithm with my hardware and until now nobody else posted results of some tests. So there is not much empirical data. I assumed that
    the results are much better than with...
  6. Replies
    90
    Views
    7,576

    Good, that you were able to fix the problem.

    Good, that you were able to fix the problem.
  7. Replies
    90
    Views
    7,576

    That does really not look good. Can you have a...

    That does really not look good. Can you have a look at the signal on the Teensy without resampling?
    I only had a brief look at you code, but I think replacing the AsyncAudioInputSPDIF3 object with...
  8. Replies
    90
    Views
    7,576

    Hi, you don't need to change the sample...

    Hi,

    you don't need to change the sample freuqency of the library. From 48kHz to 44.1kHz is no problem.
    The the resampling algorithm, that I implemented, is quite simple. It is described here:...
  9. Replies
    90
    Views
    7,576

    @Bill Glass: I was also pleasantly surprised...

    @Bill Glass: I was also pleasantly surprised about the low distortion and I am curious about your results. Two things that you need to take into account: When the resampler is initialized, it uses...
  10. Replies
    90
    Views
    7,576

    That's difficult to answer. Some months back, I...

    That's difficult to answer. Some months back, I did some tests in which I want to get a feeling about the amount of jitter of the Teensy spdif-output.
    I can share the results although they don't...
  11. Replies
    90
    Views
    7,576

    Hi, I don't know/own an audio board, but I can...

    Hi,
    I don't know/own an audio board, but I can tell you how I interface the Teensy with an optical cable.
    I use this optical receiver:
    https://www.cliffuk.co.uk/products/optical/FCR684205R.pdf
    On...
  12. Replies
    75
    Views
    4,971

    Great. I'm glad to hear that. @JayShoe:...

    Great. I'm glad to hear that.

    @JayShoe: Unfortunately I have no experience with the TDM signals and the ESP32. I use 8 channel TDM to exchange sound data between four Teensy 4. I use SAI2 for...
  13. Replies
    75
    Views
    4,971

    I don't see a reason why SAI1 in master mode and...

    I don't see a reason why SAI1 in master mode and SAI2 in slave mode wouldn't work together. I use them together the other way around: SAI2 in master mode and SAI1 in slave mode and it works.
  14. Replies
    75
    Views
    4,971

    I have no experience with the audioshield, but...

    I have no experience with the audioshield, but you could search or make an example at which a sine wave is generated on the Teensy and send to the audioshield. If that works, you can replace the sine...
  15. Replies
    75
    Views
    4,971

    I just tested example 4 and 6. They both worked...

    I just tested example 4 and 6. They both worked here. Here is the result of example 6:
    25912
    At example 6 you can ignore the 'glitches' within the first few seconds. They occure since the incoming...
  16. Replies
    75
    Views
    4,971

    At example 6 only one channel of the input is...

    At example 6 only one channel of the input is connected to the plotter. That's the reason for the missing data.

    I'll try to reproduce the other problem.
  17. Replies
    75
    Views
    4,971

    Nice, we expected of course some distortion. Have...

    Nice, we expected of course some distortion. Have you also tried examples 4 and 6 yet? Maybe they already work.
  18. Replies
    75
    Views
    4,971

    I just saw that yesterday I reset the bit clock...

    I just saw that yesterday I reset the bit clock divider back to the value for 32bit samples. I fixed that (again).
    Can you please give it a last try. Tomorrow I'll be back home and if my fix is not...
  19. Replies
    75
    Views
    4,971

    I don't know what you planned to test, but you...

    I don't know what you planned to test, but you can connect up to 8 channels to the plotter.
    Regarding the shifting the bits: The input works for at SAI1 and I just used the same configuration at...
  20. Replies
    75
    Views
    4,971

    Ok I might found something: At SAI2 the receiver...

    Ok I might found something: At SAI2 the receiver needs to run in sync with the transmitter (at SAI1 its the other way around). I configured the receiver bit clock for 16bit, but it uses the bit clock...
  21. Replies
    75
    Views
    4,971

    I should have explained my commit more clearly:...

    I should have explained my commit more clearly: It only changed the behavior of example 5, where the Teensy is master. I hope that it works now.
    I would like to first get example 5 running (smallest...
  22. Replies
    75
    Views
    4,971

    I forgot to adapt the bit clock divider for...

    I forgot to adapt the bit clock divider for example5. But I just fixed that and chances are good that it works now.
    Example 4: If the plotter shows something, then at least the isr of SAI2 is...
  23. Replies
    75
    Views
    4,971

    I committed 3 examples for SAI2: example4:...

    I committed 3 examples for SAI2:
    example4: Teensy is slave
    example5: Teensy is master
    example6: Teensy is slave + resampling

    All I can say is that they compile. Let me know if they also work.
    ...
  24. Replies
    75
    Views
    4,971

    I forgot to commit that I removed that typedef in...

    I forgot to commit that I removed that typedef in async_inputs.h. It should work now if you get the latest files from teensy-4-async-inputs.
  25. Replies
    75
    Views
    4,971

    I was only asking JoyShoe for the Teensyduino...

    I was only asking JoyShoe for the Teensyduino version because of the compiler error that he postet. The compiler is complaining about the interface of the Resampler class. That interface changed some...
  26. Replies
    75
    Views
    4,971

    I am glad that it works now for both of you. What...

    I am glad that it works now for both of you. What were the problems? Did you have to change something in the example code? I would add all useful information to the documentation of the examples.
    ...
  27. Replies
    75
    Views
    4,971

    Great, I am glad that it works now. I think it...

    Great, I am glad that it works now.

    I think it is not that simple. Currently SAI1 is clocked bei Teensys PLL4 and if we us SAI2 in slave mode it will be clocked by the ESP32. Since the clocks of...
  28. Replies
    75
    Views
    4,971

    Since you both have problems with the examples, I...

    Since you both have problems with the examples, I will double check tomorrow evening if I messed something up when I committed the files. Although I can't imagine that I committed the wrong files. I...
  29. Replies
    75
    Views
    4,971

    Sorry, I completely forgot about that. I use...

    Sorry, I completely forgot about that. I use Visual Studio Code + VisualTeensy to compile my projects. That's the reason why I have main.cpp files instead of .ino files. As SomeoneFromGermany...
  30. Replies
    75
    Views
    4,971

    Which pins do you use at the Teensy? With my code...

    Which pins do you use at the Teensy? With my code it should be IN1, BCLK1, LRCLK1. I am just asking because at one point you used AudioInputI2SQuad and I am wondering if you used connected the second...
  31. Replies
    75
    Views
    4,971

    Maybe your speaker was playing the signal of your...

    Maybe your speaker was playing the signal of your screenshot. The signal is just very quite. Anyway, there is a problem. Can you remove the audioshield for now and just concentrate on receiving the...
  32. Replies
    75
    Views
    4,971

    Qick update: I had a closer look at the signal in...

    Qick update: I had a closer look at the signal in case the Teensy is I2S master. Indeed there is still problem, when the ESP32 is I2S slave
    25827
  33. Replies
    75
    Views
    4,971

    I think I also got a working example with the...

    I think I also got a working example with the Teensy as I2S master: https://github.com/alex6679/ESP32_I2S_Teensy4/tree/main/example2
    I only change a single line of code at the ESP32:


    static...
  34. Replies
    75
    Views
    4,971

    I just committed a first working example of an...

    I just committed a first working example of an I2S stream from the ESP32 to the Teensy 4:
    https://github.com/alex6679/ESP32_I2S_Teensy4/tree/main/example1

    ESP32 side:
    I used the...
  35. Replies
    75
    Views
    4,971

    Yes, the code above is part of the I2S config on...

    Yes, the code above is part of the I2S config on the Teensy, that I used. The problem is that it is part of a quite large project. Posting the complete project would not help much, since the project...
  36. Replies
    75
    Views
    4,971

    Ok, I got your example code on the ESP32 working....

    Ok, I got your example code on the ESP32 working. I googled for the esp32_bt_music_receiver.h header and found this bluetooth receiver class: https://github.com/dvxlab/esp32_bt_music_receiver. So I...
  37. Replies
    75
    Views
    4,971

    I don't think that the problem is caused by the...

    I don't think that the problem is caused by the bit numbering. I use MSB and it works. Here is my I2S configuration on the ESP32


    i2s_config_t i2s_config = {
    .mode = I2S_MODE_MASTER |...
  38. Replies
    75
    Views
    4,971

    I just noticed that you use AudioInputI2SQuad. Do...

    I just noticed that you use AudioInputI2SQuad. Do you try to receive 4 audio channels from the ESP32?
  39. Replies
    75
    Views
    4,971

    Hi, maybe I can help you with your problem. I...

    Hi, maybe I can help you with your problem. I have a working setup with an ESP32 as bluetooth receiver and a T4 that receives the sound from the ESP32 via I2S. I don't have an audio shield and right...
  40. Replies
    1
    Views
    427

    Thanks for pointing that out. I wrote that file....

    Thanks for pointing that out. I wrote that file. I will fix that and make a pull request.
  41. Replies
    17
    Views
    1,313

    Ok. I thought you are working on another fork.

    Ok. I thought you are working on another fork.
  42. Replies
    17
    Views
    1,313

    I just committed the fixes to my fork of the...

    I just committed the fixes to my fork of the audio library:
    https://github.com/alex6679/Audio
    And also here:
    https://github.com/alex6679/teensy-4-spdifIn
  43. Replies
    17
    Views
    1,313

    I'll fix them on my fork of the audio library....

    I'll fix them on my fork of the audio library. What is the easiest way to provide you the changes?
  44. Replies
    17
    Views
    1,313

    There is no layer below the Resampler class....

    There is no layer below the Resampler class. There are no further classes or blocks or a processing pipeline inside the Resampler. The Resampler has a resampling function that implements the...
  45. Replies
    17
    Views
    1,313

    Ok, I added a block diagram of the most important...

    Ok, I added a block diagram of the most important blocks of the AsyncAudioInput class. Does this help at understanding how the class works?
    Independently of the description that I wrote, I should...
  46. Replies
    17
    Views
    1,313

    For me each of the main classes (Resampler,...

    For me each of the main classes (Resampler, FrequencyMeasurement, AsyncAudioInput, the i2s input ) is a functional block and by describing what their tasks are, I meant describing "what they are...
  47. Replies
    17
    Views
    1,313

    Ok, I understand. I will make a block diagram of...

    Ok, I understand. I will make a block diagram of the classes and a short description of their main tasks.
    Also the extension that I implemented for the original i2s slave class is really not a nice...
  48. Replies
    17
    Views
    1,313

    @Frank: I added an example of the resampler...

    @Frank: I added an example of the resampler class, that shows how to resample data that is too large for a single array:...
  49. Replies
    17
    Views
    1,313

    Regarding the cpu usage: It depends on the...

    Regarding the cpu usage:
    It depends on the configuration (constructor arguments) of the class. The class has the same arguments as the AsyncAudioInputSPDIF3.
    I just made some test to determine the...
  50. Replies
    17
    Views
    1,313

    Resampling I2S slave inputs at the T4/ T4.1

    Hi,

    I tried to write a class that allows to resample the input data from the i2s slave inputs to the audio sample of the T4/ T4.1. The resampling class is a template class and the template...
Results 1 to 50 of 90
Page 1 of 2 1 2