Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • 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...
    28 replies | 2437 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 | 141 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.
    27 replies | 1339 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 | 2864 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 | 141 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...
    27 replies | 1339 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...
    28 replies | 2437 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,...
    27 replies | 1339 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...
    28 replies | 2437 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 | 1443 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...
    96 replies | 3482 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...
    96 replies | 3482 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...
    96 replies | 3482 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...
    96 replies | 3482 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...
    96 replies | 3482 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.
    96 replies | 3482 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...
    96 replies | 3482 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.
    96 replies | 3482 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.
    96 replies | 3482 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...)....
    96 replies | 3482 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...
    96 replies | 3482 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()...
    96 replies | 3482 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...
    96 replies | 3482 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...
    96 replies | 3482 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...
    96 replies | 3482 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(),...
    96 replies | 3482 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...
    96 replies | 3482 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.
    96 replies | 3482 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
    96 replies | 3482 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
    96 replies | 3482 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...
    96 replies | 3482 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......
    96 replies | 3482 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...
    96 replies | 3482 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....
    96 replies | 3482 view(s)
  • h4yn0nnym0u5e's Avatar
    08-22-2021, 03:44 PM
    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 available or you...
    3 replies | 180 view(s)
  • h4yn0nnym0u5e's Avatar
    08-18-2021, 09:21 PM
    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...
    3 replies | 180 view(s)
  • h4yn0nnym0u5e's Avatar
    08-18-2021, 08:27 PM
    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 fails to count or...
    3 replies | 180 view(s)
  • h4yn0nnym0u5e's Avatar
    08-09-2021, 07:49 PM
    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 position changes, though...
    27 replies | 1339 view(s)
  • h4yn0nnym0u5e's Avatar
    07-29-2021, 07:38 AM
    Time difference for serial printing 6 characters rather than 4? You might want to read CYCCNT immediately after the loops end...
    29 replies | 1498 view(s)
No More Results

Statistics


Total Posts
Total Posts
117
Posts Per Day
0.67
Last Post
Roadmap "Dynamic Updates": any effort going on? 09-15-2021 02:06 PM
General Information
Last Activity
09-25-2021 10:55 AM
Join Date
04-06-2021