Audio Library

Status
Not open for further replies.
The library does have code for 22050 and 11025 Hz sample rates in the memory player object. It converts to 44100 Hz by linear interpolation, which is far from perfect, but still much better than repeating the same sample twice or 4 times.

So far, that's never been ported into the other player objects....
 
Have you tried converting them with a program such as audacity?

I had, turned out that there's an issue in the SD library which made it not read my file because I put a - in the name. I didn't realize this until I went back and did some debugging now. With that said, it would seem reasonable to give the wav library the ability to handle other bit rates.
 
The library does have code for 22050 and 11025 Hz sample rates in the memory player object. It converts to 44100 Hz by linear interpolation, which is far from perfect, but still much better than repeating the same sample twice or 4 times.

So far, that's never been ported into the other player objects....

Would it make sense to port the code for translating rates, and possibly the sample size into the AudioStream object?
 
Looks promising, but what I'm looking for is a Class-D Amp with Teensy connectivity so I may finally build my active speakers with a Teensy and these amps (as they should work with an I2S input, a DAC unfortunately is not needed) ... something like the HifiBerry Amp, but as Teensy-Version, meaning just plug a Teensy board in the prepared amp board, an the doctor is in! So I think the solution of a fully activated nearfield monitor could be solved for around 40 to 60 bucks ... :) ... one may add WiFi for AirPlay or BlueTooth for aptx purposes ... the fantasy is not limited with this very capable little board ...
 
One of the many chips I considered using (but didn't ever have time to even build a prototype) was TI's TAS5760LD.
Not quite the same, but same series, so I ordered today this one: PlainAmp. Very affordable prices, even it's sold from a german small company. Let's be curious ...

To see the difference: TI Website comparison - a little more power, no headphone amp (who need this?) and no hardware control. Is this a problem?
 
Last edited:
Are there other Class-D solutions ready to buy in the wild with I2S/I2C input? Mainly I found Raspberry ready versions, often without description, if and how thea are connectible to other, generic I2S outputs. In this case, some reverse engineering is necessary ...
 
Quite a few features have been added to the audio library lately. Most are open source contributions! If you haven't use the library lately, here's what's new:

Note frequency detection (Collin Duffy)
RMS analysis
Mid-Side stereo processing (Hedde Bosman)
AK4558 codec support (MickMad)
High-res 24+ bit sine wave
Inverting mixer gain
Design tool import & many bugs fixed (Manfred / fms1961)
Reverse sawtooth & sample-hold waveforms (Florian Loretan)
Many small fixes and features filled in...
Continuous Integration Checking on Github (Ivan Kravets)
 
Quite a few features have been added to the audio library lately. Most are open source contributions! If you haven't use the library lately, here's what's new:

Note frequency detection (Collin Duffy)
RMS analysis
Mid-Side stereo processing (Hedde Bosman)
AK4558 codec support (MickMad)
High-res 24+ bit sine wave
Inverting mixer gain
Design tool import & many bugs fixed (Manfred / fms1961)
Reverse sawtooth & sample-hold waveforms (Florian Loretan)
Many small fixes and features filled in...
Continuous Integration Checking on Github (Ivan Kravets)
I see your doing some documentation now, did you ever figure out how to add math equations to the System Design Tool that look good? If so it might be useful to add some of the theory behind the Yins algorithms in the description or in the tool tip?
 
No one knows if this can be done?
Perhaps you will ask this in a dedicated thread, because this one is about generic themes of the Audio LIbrary, not for specific problems/solutions. The chance to get an answer will be way bigger ... :cool:
 
Perhaps you will ask this in a dedicated thread, because this one is about generic themes of the Audio LIbrary, not for specific problems/solutions. The chance to get an answer will be way bigger ... :cool:

My mistake thinking a thread about the Audio Library is the the place to ask if the library supports a specific feature, give just a couple post ago a list of new features were mentioned. Perhaps you could be so kind as to point me to where this other thread is that you speak of.
 
Had you tried just playing the file again as it ends? Also check the granular thread, someone posted a zip with some new library entries that had a loop option I think.
 
Had you tried just playing the file again as it ends? Also check the granular thread, someone posted a zip with some new library entries that had a loop option I think.

That is currently what I am doing now. Because the sound I am trying to play is a contentious effect with no pauses in it, there is always some sort of pause heard, depending on when the check is made and when the new play is issued.

I'll see if I can find something in that granular thread.
 
All you have to do is query if the sample has stopped in a loop, and start it if it has.

I'm on holiday otherwise I'd post you code

Jon
 
All you have to do is query if the sample has stopped in a loop, and start it if it has.

I'm on holiday otherwise I'd post you code

Jon

The problem with that is the amount of time that can pass between the end of the sample and the check/starting of the new one. That pause can cause a silence in the output that can be noticeable. This is that I am currently doing.
 
The problem with that is the amount of time that can pass between the end of the sample and the check/starting of the new one. That pause can cause a silence in the output that can be noticeable. This is that I am currently doing.

If you need finer control, you have to write your own objects or modify the existing.
It's open source :)
I'd be interested to see your modifications (might be useful).
 
Looping and seeking have been on my TODO list for quite a long time.......

With WAV files it's a bit tricky, due to the header and placement of other sound sections within the file.
 
The problem with that is the amount of time that can pass between the end of the sample and the check/starting of the new one. That pause can cause a silence in the output that can be noticeable. This is that I am currently doing.

Is that on flash or sdcard?
 
Status
Not open for further replies.
Back
Top