Replies: 2 comments 3 replies
-
You are welcome. There is actually no link between this library and Soundpipe. I can confirm that I tried to keep it as "close to the metal" as possible. There are module where you can put in samples and you get out the processes samples. The synth modules do produce samples which could be pushed into other functions. It is possible to create a "acceptable" sound without a DAC using mechanisms like PWM. I did that with the Raspberry Pi Pico. It is also possible to use the internal DAC of the ESP32 as-well. How do you try to link this library with Soundpipe? Regarding PCM -> Pulse Code Modulation. As far as I understood it is just the method to put a signal into discrete value/time signal. Which is the basis of digital audio processing. The projects, I've been made in the meantime are running in a while(true) loop. With each round a block of samples will be processed and pushed to the output (for example using I2S to DAC). The use of Soundpipe should work to process the audio samples after generated by a synthesizer module. |
Beta Was this translation helpful? Give feedback.
-
Past day been working on ESP32 DSP and built a simple diode clipper effect today. However, that diode ladder emulation that was supposedly authored by Will Pirkle has still seemed somewhat burly to add to a simple ESP32-S3 i2s to a DAC. Mainly because I don't know what to input to that filter emulation (what length of array, etcetera) and exactly where and then where it outputs the processed data to. Also, there are multiple editions of it for various other libraries seemingly. Had a look at porting that filter to ESP32 i2s yet? Oh, and if reading this, there is any filter in the repos here that sounds very similar to JP8080? PS: Here is the diode clipper I had used in an iPad app before. It sounded generally accurate when applied to a saw wave run through the diode ladder filter from same library. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks again for posting these files! They are great for learning synth programming! This ESP32 code is compatible with modules from the Soundpipe library and is this ESP32 code about as "close to the metal" as synth programming gets?
Had been trying various ways to play the voltage through a speaker generated from a for loop oscillator straight from a .ino without using a DAC. Then after a lot of chatgpt assisted attempts it seemed that adding a DAC was maybe necessary. There was some way to set some pins to variable frequency PWM, but I want to know that standard C libraries would be compatible, such as Soundpipe.
It seems that type of "for loop to oscillator" programming is known as PCM. I haven't done a lot of DSP programming directly yet though, so thanks in advance for advising if there is another term for that type.
Been SUPER busy this week, so haven't plugged in the DAC with the ESP32 after it arrived, although hoping it will be relatively straight forward to write a for loop and add a filter algorithm from Soundpipe with a potentiometer to control the CO filter.
Beta Was this translation helpful? Give feedback.
All reactions