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

Search:

Type: Posts; User: Frank B

Page 1 of 10 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    8
    Views
    109

    If this was really not meant as spam (paid...

    If this was really not meant as spam (paid consulting etc) I apologize of course.
    It would be fine if he would contribute the algorithm to the Teensy audiolib.
  2. I have a workaround for Littlfs: ...

    I have a workaround for Littlfs:

    https://forum.pjrc.com/threads/67754-WaveplayerEx?p=291833&viewfull=1#post291833
  3. Thread: WaveplayerEx

    by Frank B
    Replies
    108
    Views
    5,194

    Ok, last addition for a while. As Teensy's...

    Ok, last addition for a while.
    As Teensy's LittleFS is not threadsafe and, for NAND Flash, takes way too long to open a file - (I've seen > 12 millisconds!), this can be seen as workaround, too.
    ...
  4. Replies
    278
    Views
    8,113

    Nothing. If you read the my following post: I...

    Nothing. If you read the my following post: I said it will not help.

    Better get your roof done:) That's more important.
  5. Replies
    11
    Views
    143

    ?? School Math :-) 1 / 2 / 8000000Hz = 62.5ns

    ?? School Math :-)
    1 / 2 / 8000000Hz = 62.5ns
  6. Replies
    278
    Views
    8,113

    Eh, no, that will not help much.. it may reduce...

    Eh, no, that will not help much.. it may reduce the pobability for races (if existing) but will not slow down..
  7. Replies
    11
    Views
    143

    See Post#2

    See Post#2
  8. Replies
    11
    Views
    143

    That it is not possible to reach more than 8 MHz.

    That it is not possible to reach more than 8 MHz.
  9. Replies
    11
    Views
    143

    No it's a fundamental law....

    No it's a fundamental law.
    https://en.wikipedia.org/wiki/Nyquist_rate
  10. Thread: WaveplayerEx

    by Frank B
    Replies
    108
    Views
    5,194

    Ok, let's assume we use the...

    Ok, let's assume we use the Nums_7dot1_8_44100.wav file from the examples. There is a voice, counting from 1 to 8 (each number on a different channel - but this is not interesting here)

    There is a...
  11. Replies
    278
    Views
    8,113

    Hm. Not tried - does it help to just make the...

    Hm. Not tried - does it help to just make the timer slower? (That would be the perfect place to create a variable speed - IF that works)
    Tim? Can you test?

    edit:
    It would be a opportunity to add...
  12. Replies
    278
    Views
    8,113

    Yes, that's the challenge. Also, perhaps we have...

    Yes, that's the challenge.
    Also, perhaps we have to keep in mind slow PCs.

    And, a question - there are Tablets etc with Windows. Do they have the same problem? I own no such thing...
    The next...
  13. Not needed here - pressed() takes care of that....

    Not needed here - pressed() takes care of that. It returns true if the state changed.
    It's just the wrong pin.
  14. Replies
    15
    Views
    361

    Could you both post the layout (the USB traces...

    Could you both post the layout (the USB traces should be visible) ?
  15. PIN 19 is used for I2C which is needed for the...

    PIN 19 is used for I2C which is needed for the Audio Shield.
  16. Replies
    8
    Views
    109

    As said, the lib is open source. Good...

    As said, the lib is open source. Good contributions are always welcome.

    And, as this is a commercial site, placing the link here is questionable.
  17. Replies
    8
    Views
    109

    __builtin_popcount(for 32Bit) looks like this on...

    __builtin_popcount(for 32Bit) looks like this on Teensy:


    1c68: 0843 lsrs r3, r0, #1
    1c6a: f003 3355 and.w r3, r3, #1431655765 ; 0x55555555
    1c6e: 1ac0...
  18. Replies
    8
    Views
    109

    The audio lib is open source on Github - he can...

    The audio lib is open source on Github - he can contribute to it anytime. But why do you speak for him?
  19. Thread: WaveplayerEx

    by Frank B
    Replies
    108
    Views
    5,194

    Ok... had too much time today... Some new...

    Ok... had too much time today...
    Some new functions:

    size_t position(); - returns the current sample number. Will increase in steps of 128 (or AUDIO_BLOCK_SAMPLES)
    bool setPosition(size_t...
  20. Thread: WaveplayerEx

    by Frank B
    Replies
    108
    Views
    5,194

    @Paul, I'm adding a "loop" feature. Please give...

    @Paul, I'm adding a "loop" feature. Please give me a few days.


    Other question: Can we use the existing "Resampler.cpp" to adapt to different samplerates?
  21. Yes, when I wrote the reply, I did not remember...

    Yes, when I wrote the reply, I did not remember the "feedback" thing. I edited the post later..
  22. Replies
    15
    Views
    277

    Yes - it works good.

    Yes - it works good.
  23. The Audio lib has resampling code...

    The Audio lib has resampling code (Resampler.h/.cpp) - it's used for S/PDIF.

    Does anyone know if it can be used i.e. for 11kHz - 44kHz or 48kHz->44kHz?
    What is Alexander's username here?
  24. Replies
    15
    Views
    277

    Ok, that's right. Confused that with Kurt`s...

    Ok, that's right. Confused that with Kurt`s version with enabled buffer.
  25. Hi Bill, this does not happen, there is no...

    Hi Bill,
    this does not happen, there is no conversion. Best is to look at the code, it uses a buffer.
    However, from time to time things like this happen:


    // buffer overrun, PC...
  26. Replies
    15
    Views
    277

    I think it is not completely impossible that...

    I think it is not completely impossible that bottlenecks can occur when both fast SPI and TDM are supplied via the slower OCRAM (DMA). Esp, as there not reads only, but writes too and the cache is...
  27. I can't answer this :) But I know - at least on...

    I can't answer this :)
    But I know - at least on windows, you can change the default samplerate to 44100. I *think* no conversion will happen then.
  28. Replies
    15
    Views
    277

    Does it help to reduce the SPI clock? Can you try...

    Does it help to reduce the SPI clock? Can you try that?
  29. An even more simple answer is, that the PSRAM...

    An even more simple answer is, that the PSRAM chips just need power to keep their data. If you lift of the VCC pin and _not solder it to that pad and provide its power by using an other method it...
  30. Replies
    15
    Views
    277

    What just comes to mind: Hardware - different...

    What just comes to mind:
    Hardware - different PCB, different layout, additional inbuilt SD, more pins.
    Software:

    - startup.c detects and initializes PSRAM
    - Different linker file (ok, its just...
  31. Replies
    6
    Views
    1,012

    Anno 2016 I used this to program an ESP8266...

    Anno 2016 I used this to program an ESP8266 through a Teensy - i think that should work for a ESp32, too.
    (But have not tried it)

    You have to comment out the "Flexiboard" things:
  32. Your PC converts the samplerate to 44100Hz before...

    Your PC converts the samplerate to 44100Hz before sending the data to the Teensy.
    The Teensy tells the PC that it can do 44100Hz only.
  33. 0xABCD...

    0xABCD Have you tried to edit the line I mentioned? Does it help for your issue?
  34. Replies
    30
    Views
    1,581

    And exactly this is your understanding problem....

    And exactly this is your understanding problem. The trick is the unsigned arithmetic.
  35. Replies
    9
    Views
    374

    While it's nice that the code is smaller, it only...

    While it's nice that the code is smaller, it only has an effect if you need 100% flash or RAM otherwise.

    Is it faster?

    @Luni: don't you use the Teensy size tool?
  36. Replies
    23
    Views
    290

    "Output": I meant the stuff you posted. And if...

    "Output": I meant the stuff you posted.
    And if Arduino says it can't find that file, well.. .then it can not find that file.
  37. Replies
    23
    Views
    290

    : fatal error: FilenameFunctions.h: No such file...

    : fatal error: FilenameFunctions.h: No such file or directory

    Please, just look at the output instead of posting kilobytes of useless logs.
  38. Replies
    23
    Views
    290

    /Users/alfredolivas/Documents/Arduino/libraries/Gi...

    /Users/alfredolivas/Documents/Arduino/libraries/GifDecoder/src/GifDecoder.h:5:25: fatal error: AnimatedGIF.h: No such file or directory
  39. Hi, no, it works as it is. You *may* have to...

    Hi,

    no, it works as it is.
    You *may* have to change the output device (it's a PT8211 in the sample code)
    , and if you're not using a Teensy with inbuilt SD some SPI settings.

    The "PROGMEM"...
  40. HI, no problem, it's here:...

    HI, no problem, it's here: https://github.com/PaulStoffregen/cores/blob/master/teensy4/startup.c#L438
    The Teensy startup-code autodetects PSRAM and sets the value.
  41. Progmem has the advantage that you don't need...

    Progmem has the advantage that you don't need PSRAM.
  42. From PROGMEM, it looks like this: // Simple...

    From PROGMEM, it looks like this:


    // Simple WAV file player example
    //
    // This example code is in the public domain.
    //
    // Plays a file from program flash
    //
    //
  43. Hi, ok, I just wrote this: // Simple WAV...

    Hi, ok, I just wrote this:


    // Simple WAV file player example
    //
    // This example code is in the public domain.
    //
    // Plays a file from PSRAM
    //
    //
  44. Would have been nice to get *any* response re:...

    Would have been nice to get *any* response re: the issues. So, we can't know if it ever get fixed, if it takes a year or two or some weeks or days.
    Best is not to use Littlfs until then.

    The...
  45. Yes, of course it never hangs, there is no...

    Yes, of course it never hangs, there is no interrupt that reads while open() runs.
  46. Replies
    17
    Views
    298

    @Nominal: If you re-read the posts, you will...

    @Nominal: If you re-read the posts, you will notice that I did not write a single word about the code.
    I said, that if you use godbolt, you may want to use the correct compiler settings. Otherwise...
  47. The problems are more the issues I mentioned.......

    The problems are more the issues I mentioned.... it crashed in open() for me, it will crash for others, too.. :) even if the open() is way faster with NOR - the underlying problem remains.
  48. You can also use a HEX editor and compare the...

    You can also use a HEX editor and compare the file you've recorded with an other file.
  49. Please upload a wave file. (or try this:...

    Please upload a wave file.
    (or try this: https://github.com/FrankBoesing/Teensy-WavePlayer - despite of the name, it can record, too)
  50. Replies
    17
    Views
    298

    I'd also use the real switches like Arduino does:...

    I'd also use the real switches like Arduino does:

    -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -O3

    especially you need -mthumb -mcpu=cortex-m7 to generate the same code. the other...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4