Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • h4yn0nnym0u5e's Avatar
    Today, 04:02 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 the other being...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    Today, 02:32 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 and audio engine...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    10-20-2021, 02:23 PM
    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 being exactly...
    54 replies | 1766 view(s)
  • h4yn0nnym0u5e's Avatar
    10-20-2021, 10:22 AM
    Short answer - too much! Here's your patch in the Audio System Design Tool: fir1+2 and queue1+2 have too many connections to their inputs: current rules are that the last connection made wins, so fir1 and queue1 are...
    54 replies | 1766 view(s)
  • h4yn0nnym0u5e's Avatar
    10-20-2021, 09:51 AM
    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 spot any changes...
    30 replies | 2866 view(s)
  • h4yn0nnym0u5e's Avatar
    10-13-2021, 10:04 AM
    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" mode, and then just...
    8 replies | 485 view(s)
  • h4yn0nnym0u5e's Avatar
    10-13-2021, 09:59 AM
    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 using, but I suspect...
    8 replies | 485 view(s)
  • h4yn0nnym0u5e's Avatar
    09-15-2021, 02:06 PM
    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 to executing all audio...
    30 replies | 2866 view(s)
  • h4yn0nnym0u5e's Avatar
    09-12-2021, 12:00 PM
    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 master branch, but clearly that can get out of step with other parts of Teensyduino. I...
    2 replies | 215 view(s)
  • h4yn0nnym0u5e's Avatar
    09-12-2021, 06:55 AM
    Don’t think LM358 is rail-to-rail, which is probably needed at 3.3V. Lots of options are, though.
    31 replies | 2006 view(s)
  • h4yn0nnym0u5e's Avatar
    09-11-2021, 07:21 PM
    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 report is based on...
    74 replies | 3812 view(s)
  • h4yn0nnym0u5e's Avatar
    09-11-2021, 06:54 PM
    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: Audio/examples/WavFilePlayer/WavFilePlayer.ino Which...
    2 replies | 215 view(s)
  • h4yn0nnym0u5e's Avatar
    09-10-2021, 08:25 PM
    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, but never got round to...
    31 replies | 2006 view(s)
  • h4yn0nnym0u5e's Avatar
    09-10-2021, 05:26 PM
    Apologies, but don't use the above, some of the work on FS.h in cores seems to have broken the audio libraries...
    30 replies | 2866 view(s)
  • h4yn0nnym0u5e's Avatar
    09-08-2021, 05:44 PM
    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 + nRF24L01+ at each end,...
    31 replies | 2006 view(s)
  • h4yn0nnym0u5e's Avatar
    09-08-2021, 04:01 PM
    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 to CrashReport within...
    30 replies | 2866 view(s)
  • h4yn0nnym0u5e's Avatar
    09-05-2021, 09:24 AM
    h4yn0nnym0u5e replied to a thread Goodbye in General Discussion
    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, I've been working for...
    14 replies | 1749 view(s)
  • h4yn0nnym0u5e's Avatar
    09-03-2021, 05:13 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    Suspect it's a dedicated controller / ASIC these days, or maybe an ARM processor. In the good ones. Cheap ones, who knows...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    09-02-2021, 09:21 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 seems to respond on...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    09-02-2021, 08:51 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 in place I ran this...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    09-01-2021, 09:08 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 with other things...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    09-01-2021, 07:15 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 designer, and a PR for...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    09-01-2021, 01:05 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    PR submitted! For backward compatibility it defaults to the "old school" interrupt re-load, as discussed above.
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-31-2021, 09:10 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 read, of course, so I...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-31-2021, 08:29 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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.
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-31-2021, 08:17 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    Clearly not. I get 5% load for event-driven, 88-95% interrupt-driven for the 4+6+8 track test. Both sound OK.
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-31-2021, 08:03 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 that many tracks...)....
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-31-2021, 06:18 AM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 likelihood. We seem to...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-30-2021, 08:51 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 to have yield()...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-30-2021, 05:24 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 understand why, so...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-28-2021, 03:27 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 PR, just a bit...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-28-2021, 10:28 AM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 called, or maybe every...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-27-2021, 02:34 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 (often enough) in loop(),...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-27-2021, 12:10 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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, by putting then into...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-25-2021, 07:52 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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.
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-25-2021, 05:24 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-24-2021, 06:33 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-24-2021, 12:20 PM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 feasible. But...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-24-2021, 10:30 AM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    "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 perspective, anyway......
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-24-2021, 09:10 AM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 outside the audio...
    112 replies | 5276 view(s)
  • h4yn0nnym0u5e's Avatar
    08-24-2021, 07:53 AM
    h4yn0nnym0u5e replied to a thread WaveplayerEx in Audio Projects
    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 round-robin buffering....
    112 replies | 5276 view(s)
No More Results

Statistics


Total Posts
Total Posts
124
Posts Per Day
0.62
Last Post
WaveplayerEx Today 04:02 PM
General Information
Last Activity
Today 06:54 PM
Join Date
04-06-2021