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

Search:

Type: Posts; User: h4yn0nnym0u5e

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    112
    Views
    5,432

    Just posting here as they're two of the four...

    Just posting here as they're two of the four "major contributions" that @PaulStoffregen says he's got pending, and an early warning might save later grief! If the incompatibility results in one or...
  2. Replies
    112
    Views
    5,432

    I'm sorry to report that WaveplayerEx and my...

    I'm sorry to report that WaveplayerEx and my Dynamic Audio Objects are (currently) not playing well together, at least in my "torture test". Run this with the Serial Plotter to visualise memory use...
  3. Ah, OK. As far as I know the only item in the...

    Ah, OK. As far as I know the only item in the path which isn't a simple word-for-word transfer may be in the USB audio driver (cores/teensy4/usb_audio.cpp), which has to cope with the sample rate not...
  4. Short answer - too much! Here's your patch in the...

    Short answer - too much! Here's your patch in the Audio System Design Tool:
    26225
    fir1+2 and queue1+2 have too many connections to their inputs: current rules are that the last connection made...
  5. That's very gratifying! I did a quick search and...

    That's very gratifying! I did a quick search and couldn't immediately see which other 3 efforts you might be considering - if you post which those are, then I can try to have a look and see if I can...
  6. As noted above, I've done a dynamic audio...

    As noted above, I've done a dynamic audio library. With that, creating and destroying on the fly is one approach, but you could also switch to "don't update if not connected to the main update list"...
  7. Not using the official core and Audio library,...

    Not using the official core and Audio library, but I've done some work on that - please see this thread which has links to my github repositories. I've not had any reports of bugs / difficulties...
  8. Updated in both cores ...

    Updated in both cores and Audio to pre-release v0.2-alpha: please use both together!

    Cores is roughly in sync with Teensyduino 1.55 beta #3
    Documentation updated in the Audio library
    Defaults...
  9. Thanks Paul. I've forked "cores" from your repo...

    Thanks Paul. I've forked "cores" from your repo so I can work on dynamic audio objects, and tried to keep it up to date with your [only] master branch, but clearly that can get out of step with other...
  10. Don’t think LM358 is rail-to-rail, which is...

    Don’t think LM358 is rail-to-rail, which is probably needed at 3.3V. Lots of options are, though.
  11. Replies
    74
    Views
    3,834

    Broken audio example (?)

    Bit of a cross post, but please see https://forum.pjrc.com/threads/68163-Master-commit-7798d24-breaks-audio-library?p=288262#post288262 and https://github.com/PaulStoffregen/cores/issues/607. This...
  12. Master commit 7798d24 breaks audio library

    Raised in GitHub as issue #607

    Audio/WavFilePlayer.ino example will not compile with cores 7798d24 and audio library 1c5426e


    A complete copy of the code:...
  13. Yamaha do use a Hall sensor for the reed sensor...

    Yamaha do use a Hall sensor for the reed sensor on their WX controllers. The service manuals are findable on the web... I’d considered adding an accelerometer / gyro for extra controller channels,...
  14. Apologies, but don't use the above, some of the...

    Apologies, but don't use the above, some of the work on FS.h in cores seems to have broken the audio libraries...
  15. I've done (i.e. got working but not really...

    I've done (i.e. got working but not really finished...) a wireless MIDI implementation for the Yamaha WX series of wind controllers, tested only on the WX-5. That used an Arduino Pro Micro +...
  16. Minor updates to bring into sync with current...

    Minor updates to bring into sync with current cores and Audio library, fix a compile-time warning about an uninitialised variable (code never seemed to execute, though...), and enable an early call...
  17. Thread: Goodbye

    by h4yn0nnym0u5e
    Replies
    14
    Views
    1,759

    As a newcomer who only joined the forum three...

    As a newcomer who only joined the forum three months ago, but has benefitted from others' help and (I hope) also made modest contributions, I'd like to add my perspective to this thread. (For info,...
  18. Replies
    112
    Views
    5,432

    Suspect it's a dedicated controller / ASIC these...

    Suspect it's a dedicated controller / ASIC these days, or maybe an ARM processor. In the good ones. Cheap ones, who knows...
  19. Replies
    112
    Views
    5,432

    I’m only using one microSD for my testing so far....

    I’m only using one microSD for my testing so far. No, it’s had no special treatment, I’ve probably never formatted it, just got it out of the pack and used it ... just like a real user :D It always...
  20. Replies
    112
    Views
    5,432

    Found part of the problem and created a PR - I...

    Found part of the problem and created a PR - I wasn't taking into account the sample size (8- or 16-bit), or the number of channels, when estimating the CPU load from the SD card reads.

    With this...
  21. Replies
    112
    Views
    5,432

    Looks valid to me, there must be something going...

    Looks valid to me, there must be something going wrong in my measurements. Need to think about it... There's no logical reason why the SD card speed should vary, just the way it interacts in practice...
  22. Replies
    112
    Views
    5,432

    Great. Note that it's "safe" to switch the read()...

    Great. Note that it's "safe" to switch the read() method while actively playing, as far as I can tell. May be some minor pops, but it doesn't crash.

    I've just done some documentation in the GUI...
  23. Replies
    112
    Views
    5,432

    PR submitted! For backward compatibility it...

    PR submitted! For backward compatibility it defaults to the "old school" interrupt re-load, as discussed above.
  24. Replies
    112
    Views
    5,432

    Mainly using the Audio library’s figures, plus I...

    Mainly using the Audio library’s figures, plus I put a wrapper around the event response read from the SD, as that’s obviously happening outside where the library can count it. Interrupt counts the...
  25. Replies
    112
    Views
    5,432

    Forgot to say, those figures are with...

    Forgot to say, those figures are with addMemoryForRead(4). With the 16 tracks and addMemoryForRead(1), I get 30% and 125%, though oddly the interrupt version actually still sounds OK.
  26. Replies
    112
    Views
    5,432

    Clearly not. I get 5% load for event-driven,...

    Clearly not. I get 5% load for event-driven, 88-95% interrupt-driven for the 4+6+8 track test. Both sound OK.
  27. Replies
    112
    Views
    5,432

    All merged in and pushed up to my repo. Just...

    All merged in and pushed up to my repo.

    Just done a test with 16x mono 16-bit 44kHz WAV files: CPU load looks like 12.5% with the event version, sounds as if it's working OK (hard to tell with...
  28. Replies
    112
    Views
    5,432

    Agree about setting the default, as noted that’s...

    Agree about setting the default, as noted that’s very easy. It’d be good to get some response from Paul on whether the player might be adopted at some point, and guidance on what would improve the...
  29. Replies
    112
    Views
    5,432

    Hi Frank You can find it at...

    Hi Frank

    You can find it at https://github.com/h4yn0nnym0u5e/Teensy-WavePlayer/tree/feature/UseEventResponder. As of 0d7e008 it isn't backward-compatible with existing sketches, because it needs...
  30. Replies
    112
    Views
    5,432

    I've done some work on pushing the SD card reads...

    I've done some work on pushing the SD card reads out to the foreground code by embedding an EventResponder in each AudioPlayWav object. Not fully tested but it looks massively more efficient (I don't...
  31. Replies
    112
    Views
    5,432

    Excellent - pulled and tested, still works :D ...

    Excellent - pulled and tested, still works :D

    It could indeed replace the other players, or the existing ones could simply become a skin on yours - much easier to maintain.

    Happy to create a...
  32. Replies
    112
    Views
    5,432

    That sounds like a really useful addition. I've...

    That sounds like a really useful addition. I've not soldered up my audio connectors yet, but could probably find a way to test it. Guess you'd only write the header once recordSdWav::stop() was...
  33. Replies
    112
    Views
    5,432

    It looked to me as if both Audio (as we...

    It looked to me as if both Audio (as we understand it) and EventResponder are Teensy-only at the moment anyway. If some future Arduino-based EventResponder needed an explicit yield() call added...
  34. Replies
    112
    Views
    5,432

    Hi Frank Been giving this a bit of thought ......

    Hi Frank

    Been giving this a bit of thought ... and noticed also your post on another thread ... and was wondering if the SD card reads could be moved outside the audio update interrupt entirely,...
  35. Replies
    112
    Views
    5,432

    OK, I've had a go with the test code and also a...

    OK, I've had a go with the test code and also a more fun 6-track saxophone recording, and all seems well now. Thanks for your efforts fixing that, much appreciated.
  36. Replies
    112
    Views
    5,432

    No problem, do keep the sine waves, also any...

    No problem, do keep the sine waves, also any variant of my test code you think might be a useful example! Will pull the update and try it out soon, maybe even tonight.

    Many thanks

    Jonathan
  37. Replies
    112
    Views
    5,432

    Sine wave files zipped and attached - let me know...

    Sine wave files zipped and attached - let me know if you have any problems with them. Agreed, I couldn't see any way that could happen - extremely strange.

    Cheers

    Jonathan
  38. Replies
    112
    Views
    5,432

    Agree, it's getting a good buffering scheme in...

    Agree, it's getting a good buffering scheme in place that would make a big difference. In theory Teensy 4.x with its 1Mb RAM could buffer 8 mono 44100Hz 16-bit tracks for 1s each, so it ought to be...
  39. Replies
    112
    Views
    5,432

    "Good" is just a matter of opinion :o Harder to...

    "Good" is just a matter of opinion :o Harder to do, definitely, but few of the posts I've seen made me think "you're taking totally the wrong approach, think again". Well, not from the SD playback...
  40. Replies
    112
    Views
    5,432

    Sure, no hurry. Multiple separate files is...

    Sure, no hurry. Multiple separate files is probably a more common use case than 8-track WAVs, judging by the number of posts about it! I've been trying to think of a sane way of doing the SD reads...
  41. Replies
    112
    Views
    5,432

    Struggling a bit with this, though possibly...

    Struggling a bit with this, though possibly because I'm trying something which is not the correct use case... I have 6 mono WAV files which I want to play simultaneously, taking advantage of the...
  42. Issue created and PR submitted. Also "fixed"...

    Issue created and PR submitted. Also "fixed" returning NULL on a second call to ::readBuffer() without an intervening ::freeBuffer(), as NULL is documented as "no data available", not "either no data...
  43. Well, it's certainly wrong now... I'm...

    Well, it's certainly wrong now...

    I'm inclined to agree with you that returning NULL to mean "silence" is probably also the Wrong Thing, due to the clash with the existing documented behaviour of...
  44. AudioRecordQueue behaves incorrectly with no input

    The Audio library design rules state that a NULL received audio block (from receiveReadOnly()) should be treated as if a silent block had been received. AudioRecordQueue does not do this, but simply...
  45. I've had a play with similar things some years...

    I've had a play with similar things some years back - full disclosure, I never completed it, though I'm meaning to come back to it some time!

    Reflective optos are a good way to sense small...
  46. Replies
    29
    Views
    1,774

    Time difference for serial printing 6 characters...

    Time difference for serial printing 6 characters rather than 4? You might want to read CYCCNT immediately after the loops end...
  47. I was going to suggest you use my Dynamic Audio...

    I was going to suggest you use my Dynamic Audio Objects library, which allows creation or deletion of AudioStream and AudioConnection objects on the fly, but then noticed you're using a Teensy 3.2...
  48. Replies
    9
    Views
    905

    Don’t think I needed to using this technique -...

    Don’t think I needed to using this technique - USB-right is the reference signal, and USB-left the delayed one. I believe the OP was interested in i2s in to out delay, and I think I’ve measured that....
  49. Replies
    7
    Views
    641

    Here's a simple demo of how I might do it. Note...

    Here's a simple demo of how I might do it. Note you can get into trouble if you change the struct definition, as all the structure members are likely to move, but it makes life pretty simple and you...
  50. Replies
    9
    Views
    905

    Who, me? Well, I did, anyway :) I created a...

    Who, me? Well, I did, anyway :)

    I created a simple audio engine, and physically connected i2s2 out R to i2s1 in R. Hence i2s2 out L will be the same as out R, but delayed by the overall latency of...
Results 1 to 50 of 124
Page 1 of 3 1 2 3