Just 44.1kHz, same as the standard WAV playback object (which has a lot of code referring to other sample frequencies, but doesn’t actually implement them…).
Indeed it would, but it’s a huge additional level of...
Yes, I should really tidy up the SCOPE macros, they're only intended for real-time debugging purposes...
The only other file that might be useful is the revised gui/index.html, as that allows you to place the new...
You're only changing the gain on channel 0 of mixer1 and mixer2 ... the playback object is connected to channel 2 of those mixers.
I'm not sure what you mean by "it works for AudioRecordWAVstereo"; the...
“If it ain’t broke, don’t fix it” has always struck me as good advice :D
You could try doing a “portable” Arduino install and using Teensyduino 1.58 beta to see if the official fix works for you: I think the above...
This sounds very much like the startup bug, might be worth applying the patch linked in that thread.
It doesn't help that the Audio library version number hasn't been updated since late 2016, despite there...
I did wonder about that part…
I have a PR that nearly got merged (https://github.com/PaulStoffregen/Audio/pull/433), before Paul got distracted, which allows use of a PSRAM instead of a single 23LC1024, giving 95s...
The best way is to add PSRAM to a Teensy 4.1; see https://www.pjrc.com/store/psram.html It does need some different keywords or functions (the linked page totally fails to mention extmem_malloc() and extmem_free(),...
Curious, you’d think that so long as there’s no other code using the SPI bus it’d be OK (if slightly grubby) to leave a CS low.
I think Paul S would mutter about stability over temperature and voltage extremes, but...
You’d expect so, but I seem to remember the SPI driver checks for valid pin numbers and ignores attempts to set ones that don’t work. So actually you end up using the default ones on T4.x, which works provided you don’t...
Yes, but only with USB descriptors which include a CDC serial interface - TeensyDebug checks for these. It looks as if the FlightSim descriptor only has the emulated serial interface; no idea why, it may be a legacy...
For my updated version of the AudioEffectDelayExternal object I followed the existing idiom of allocating memory at instantiation time, for example AudioEffectDelayExternal myDelay(AUDIO_MEMORY_EXTMEM,44100);. I didn’t...
Just another observation, not sure it’ll shake anything loose but … those bursts appear to be occurring at about the audio update interval of 2.9ms, or 344.5Hz frequency. Not sure what the scope is picking up as 2kHz …...
Fairly sure it’s not a “general problem”, the PT8211 has been used successfully for some time - I don’t have a huge amount of experience with it but it certainly worked for me when I tried it.
Can you try switching...
What are VDD and VCC? They appear to be wired together via PWR_FLAG, and to +3.3V via a 10R. Looks like all sorts of mayhem could result, but you haven’t shown the whole schematic so hard to tell…
As of Teensyduino 1.57 this is possible, and documented at https://www.pjrc.com/teensy/td_libs_AudioConnection.html. AudioConnection objects can also be created with new and destroyed with delete.
Sounds like you have the right hardware to make a start, at least. I’d suggest not jumping straight in to SD card playback; either follow the audio tutorial on the PJRC website or look at the many audio examples...
You’re right, I should add a simple playback example!
The nearest I have for now is https://github.com/h4yn0nnym0u5e/Audio/blob/feature/buffered-SD/examples/Buffered/AudioTestPlayMultiSD/AudioTestPlayMultiSD.ino,...
Based on using my improved SD playback library (see https://forum.pjrc.com/threads/70963-Yet-Another-File-Player-(and-recorder)) … caveat, it’s untested on a Teensy 3.x … you could use either 2x stereo (2x...
Great, thanks. One point that’s just occurred to me … as it is there’s always one PSRAM enabled, so the SPI bus can’t be used for anything else. That wasn’t an issue with only 6 of them, of course, as there are a couple...
I was thinking in terms of having the option to use different pins as chip select. D2-4 are also I2S2, so might well be wanted for an audio project. There aren’t many pins on a Teensy 4.0 that can’t be used for some...
Frank is still around, as mcu32 - maybe he’ll pipe up?
If I were you I’d try to track for fitting pull-downs (you don’t have to fit them), and maybe some links to change the device selection lines from D2 to D4 to...
great that it’s working for you!
The low-latency pre-buffering is currently only in the SDPiano demo, but I’m hoping to build it in to the buffered playback library itself as it seems to be a pretty common need. So...
Try this: https://forum.pjrc.com/threads/70963-Yet-Another-File-Player-(and-recorder) ? In particular the SDPiano demo does pretty much the sort of thing you’re describing, I think. I’m working on building in the...
Excellent news, glad we got it sorted out. It’s prompted me to improve the documentation for the PR branch (it shows up in the Design Tool), so once it’s in, things should be a bit easier for everyone.
My post#38, second and third bullet points ... your posted code has been modified, though not actually in an important way (someone added a question mark after the line @BriComp highlighted). More important, it looks as...
Probably OK ... hard to tell without seeing the full path to the folder and a glimpse of its contents. It doesn't need the -main on the end, but I think it doesn't hurt, either.
A few things:
please refer to Paul's post and the image I posted to make sure the MTP_Teensy library is in EXACTLY the right path - your image shows that it isn't
double-check you have downloaded and not modified...
So it should look something like this (click on the image to enlarge it...):
I've done some improvements on the documentation, which you can find at...
It looks as if you've requested to use delay memory fitted to the audio adaptor, but previously you said you put it on the Teensy 4.1 as EXTMEM - try changing that statement to AudioEffectDelayExternal...
Yes - https://forum.pjrc.com/threads/70963-Yet-Another-File-Player-(and-recorder). Not specifically for the Amazon Basics SD card, but if you want to give it a try I'd love to know if it works. 2Mbytes/sec should be...
If I'm reading it right CS on the "back memory chips" is either 48 or 51 (the little grey cells, M. Poirot)
I can't take credit for the EXTMEM heap management, that's already part of Teensyduino; not much...
This part is fairly easy: AUDIO_MEMORY_PSRAM_8MB isn't declared, because you called it AUDIO_MEMORY8_PSRAM_8MB.
Not sure why serial messages aren't showing up, but ... it sounds as if you've added PSRAM to the Teensy...
It's a thing, apparently ... a fellow developer at work used the phrase to me, and it stuck: see https://en.wikipedia.org/wiki/Copypasta. Used here in the sense of "this code is just like the previous, so I'll make a...
Something like this should help - I haven't tested it beyond compiling it, though:
/*
* Generate a new sequential filename in the
* recFileName buffer. Adjust recFileFormat to your
* needs.
*/
char...
Even worse for mainMixer2 ... looks like you changed the design at some point and copy/pasta has left you only changing the gain of channel 0 (channel number is unsigned, and values >3 are ignored)
Recording is disabled, if I recall correctly because it didn’t work properly. You could try my library, see https://forum.pjrc.com/threads/70963-Yet-Another-File-Player-(and-recorder) for links and discussion.
How much buffer is "enough" is always likely to be application-dependent. If you have a fairly benign one that exits loop() or calls yield() or delay() often, then the EventResponder will have frequent opportunities to...
Sure, much better (or at least different) allocation strategies are possible ... but it's not intended as a demo of MIDI note allocation, just of the buffered playback! Actually, you may have found a bug ... I thought...
Good news. I thought it worked, but it's always good to have it confirmed by an independent witness!
There's some rather stale code between lines 333 and 345 of the SDPiano demo which monitors voice allocation and...
That's great, thanks Michael. It'd be good if there were similar suppliers in the UK and EU, but I guess the trouble is that you either do a lot of last-minute build and test, or have a lot of stock of different...
8 mono voices at near-normal speed should be fine, I think, even without PSRAM. For the SDPiano demo I used 8 stereo voices, each with a 32k buffer, for a total of 256k, or about a quarter of a Teensy 4.x's RAM. So 16k...
You probably are :D but thanks for the encouragement!
Development is a bit stalled at the moment, as I’ve been working on adding the ability to pre-load the start of a file for low latency applications; this will...