You need a buffer big enough for twice the longest interval between yield() calls, plus some margin. It looks as if your code exits loop() often, so if you monitor the loop interval and print the maximum value, that’s going to help a lot.
Say...
The stock audio / SDFAT libraries do not allow you to play back audio from SD while simultaneously accessing it from your sketch. See this thread for discussions and links to a new set of audio objects which do allow this (because no file access...
Sorry for the delay. Thanks so much for the thorough response! I’ve tried the code you’ve provided - it seems to work and fails gracefully if the shaper function isn't set. I've updated functionshaper, comparator and dcblock based on your...
@karelv, here's a modified version of your demo code:
/*
* Teensy's EventResponder example/demonstrator:
* using IntervalTimer objects to do work and trigger event responders.
*
* > Blinks the built-in LED every half second, and prints a...
Sure, all sorts of priority and time allowance mechanisms could be added. I don’t need them so I’m not taking the time to add them.
I don’t believe “it might go wrong, or be misused” is a valid reason for not adopting a backwards compatible...
There’s some relevant discussion starting at https://forum.pjrc.com/index.php?threads/uncanny-eyes-is-getting-expensive.71068/post-314499. I’m not sure where @chris.nz got to with making UE more cooperative with other stuff. I’m pretty happy with...
Unfortunately. as seems so often to be the case, there is no example (that I'm aware of). Documentation comes a poor last to (a) doing essential stuff, (b) coming up with some interesting concepts and implementing prototypes, and (c) merging the...
Just now we had the first spam message get through since adding the Crowd Moderation add-on. Indeed it got 3 reports within an hour and went to the moderation queue, removed from public view.
I tried my troubled Board prototype with the T4.1 plus the two I2C devices after installing the new Teensyduino and from the first test, it works!
I shall be running the board through a couple other scenarios and if all is Ok, I will post a...
Just install as normal, there’s no need to uninstall. If I recall correctly, there’s a point where the installer offers you a target folder, which defaults to the Program Files x86 path - that’ll work for one of your installations, and you’ll...
You can report them (link at bottom left of the "offending" post), but they don't disappear immediately as they did with vBulletin. I did so the other day...
You should probably packetize your data using something like SLIP encoding, which should help ensure everything stays aligned, or at least that you detect it if data go AWOL. For Teensyduino there's an implementation of SLIP as part of the OSC...
Yes, the old "Forum Rule" is on my to-do list. The old vBulletin actually had a "banner ad" feature which was the mechanism the old site used to put that message at the top of every page.
We also had some customization on the old pages for...
Are you 100% sure the issues go away when you use the card slot directly? I had issues with the Audio library where SD access from sketch and playback (interrupt) code gave a 1 second hang at the exact same place in the code. This is...
There's probably only a minor impact, but it would be good to have the "post your code and FULL details" banner at the top of every section, as we did with vBulletin. Some people might read it and comply...
I strongly suspect this is yet another case of issues with static initialisation of Wire objects, as discussed in this thread. We seem to have lost the (widely ignored) exhortation at the top of every page to "Show Your Code" and "What Version Of...
This looks like a very interesting suite of objects - it’d be nice to think that at some point there would be a Teensyduino update that curates these and the many other contributions into a major overhaul of the Audio library!
I’ve not had a...
Implemented in my updates to the code. You can either change the default 2 minute timeout at line 55 of audio-guestbook.ino, or edit the gbkcfg.txt file and put that on your SD card.
As noted in this thread, Teensyduino 1.58 broke a number of things that depended on SPI and Wire being constructed before dependent objects are used. AudioControlSGTL5000 depends on Wire, as the SGTL5000 is controlled via I²C. This is fixed in...
AudioPlaySdWav accesses the SD card under interrupt, which usually causes a crash if you also attempt also to access files on that card from your sketch. It also reads in very small and inefficient chunks so you can't play many files at once...
I think there's a bit of confusion over what's happening in the [USB] MIDI interrupt handler. As far as I can see it'll just queue messages until the application is ready for them. The application may attach a callback handler to the event types...
Maybe … don’t know enough about xenForo. https://forum.pjrc.com/index.php?threads/converted-fcb1010-drum-machine-for-practice-with-friends-teensy-modification.73806/post-333247 should link to a post I made which had superscript in it, and appears...
Superscripts and subscripts don't seem to be available :( ... and haven't ported over from the old forum.
Amazing work on getting the replacement up so fast, though ... I'm super impressed!