I've pushed a few changes to https://github.com/h4yn0nnym0u5e/Audio/tree/feature/buffered-SD, which improve stability when using the preload capability. The preload API still needs to be documented, and a demo made.
...
The caution means exactly what it says - don't do it, you will probably break the audio adaptor.
You either need to find a replacement cable, or fit an amplifier driven from the line level pins and sending its...
As noted in various recent threads (sorry, too lazy to search for them :D), the SPI library is smart enough to reject an attempt to set invalid pins for the SPI hardware, so these are all ignored.
It would be useful...
Please take a look at my supposedly improved documentation, which you can find at https://github.com/h4yn0nnym0u5e/audio-guestbook/tree/feature/doc-01. This gives you a bit more detail on where the sketch and libraries...
This thread may be worth a look. There should be links to various repositories which update the USB core code to more channels and higher data rates, plus additional Audio objects which can make use of that.
There...
That's right :)
You're quite right. I've corrected my fork, which also updates the pull request that's been pending since 3rd February...
Yes. I think a lot of his changes are very useful, so the "do not use" is...
That's very interesting (or strange, if you prefer...). There seem to be some fixed-gain stages in the SGTL5000 mic amplifier, of which +40dB has the highest gain, so it may be the variable-gain stage is causing most of...
I need to take a look at this …
The SAFE_RELEASE macros try to ensure that any input audio blocks transmitted to an object are released as part of its destruction, because otherwise they’d be permanently allocated....
Update: as noted on another thread, there's already a call to sgtl5000_1.micGain(); in the code, which typically sets the gain very low (somewhere between +5 and +15dB, depending on which repo you start from). This is...
Yup, that sounds awful all right! But at least we're vaguely in control of the levels now.
As you say, hard to shield the existing cable, though maybe you could get a replacement one which is better-made. Hard to be...
Odd that you can't attach stuff, not much I can do to help with that! Could be a forum restriction on new joiners, is the only thing I can think of. Can you put the WAV on a DropBox or Google drive, with public access?...
That looks like a noisy example uploaded to the forum recently. Here it is before:
and now, after I got rid of a loud glitch at the end, then did Effect / Normalize:
Couldn't hear it before I did that...
EDIT:...
To insert an image, use the insert image button:
Note you have to choose the file, then upload it.
You may need to zip a WAV file in order to upload it, not sure.
705kbps is correct: 44100 ksps = 88200 kBps =...
I am right about the chunk lengths - here's the Goldwave error message:
As I also noted, I have players which play the resulting files without complaint; but I don't think it's totally unreasonable to say "it could...
It's not quite as simple as that, unfortunately. Here's a selection of the MTP enable / disable code, as found in the original repository:
uint32_t MTPcheckInterval; // default value of device check interval
......
This isn't very surprising ... if you record a quiet signal with a lot of noise, turning the volume up will just turn the noise up along with the signal. You need to get a better signal into the WAV file.
I just...
Post a WAV file that shows the problem? See Forum Rule at the top of every page you visit here ... "details to reproduce any issue".
One issue with DD4WH's fork, which I fixed and got pulled into the original repo,...
That sample is incredibly quiet, so I'm not surprised the noise level is high. From your third image it looks as if you have the mic ground (black wire) connected to the mic input of the audio card ... though of course,...
You could try adjusting the Advanced port settings:
This is an FTDI cable on my Windows 10 PC, I can't recall if these are the default settings or I've adjusted them myself in the past.
Or my library can do at least 16 mono, while also recording (which Frank wasn’t interested in). I’m working on low-latency playback start for sample playing. See...
It would be good to complete this, though @mcginty seems to have gone AWOL in 2023. I think we got to the point that a lot of stuff was working, or very nearly so, with the following on my radar as needing completion:
...
You could certainly use it to help convert WAV to RAW. I found this site to be helpful in terms of parsing the file format: http://soundfile.sapp.org/doc/WaveFormat/. One thing to bear in mind is that it is not a...
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...