Processing power and Sample Rate, Sample Size #53
Replies: 2 comments 2 replies
-
Thanks for sharing. One step which could be always useful is just to generate a sine to verify the DAC creates the correct signal. I am running my code with 48KHz on the ESP32 when using the PCM5102 DAC. I am not sure how sensitive the USB host breakout is to electrical noise which could be also a problem on breadboards. I had issues with MIDI via the opto coupler. After soldering it to a separeted board it works well. The code is intentionally written that you will get audible noises in case you are doing too much in the loop process. You also should avoid calling any function within this loop which may take longer (for example doing SPI). |
Beta Was this translation helpful? Give feedback.
-
Yes - believe that I can possibly tune the upkeep in the loop to be less frequent and see how much more sample frequency is working. I'm just relieved that all the things went away when I slowed it down - there were all these ghost notes. So it made me wonder about the code and settings but it vanished. I've seen someone have issues with the optocoupler set the resistor pull up to +v to 560 ohm and it seemed to reduce delay comms issues vs the 10k resistor they first used. I've not set up any midi using serial connection to microcontroller connections or optocoupler yet. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In config.h
some comments - I have this PCM5102 DAC that is 32bit capable and 384khz ... but lets get real. ESP32 ... its not god CPU power SOC. Especially if you are toying around and its perhaps doing a few other jobs - like using the USB and other midi.
Symptom - bad sounds, ghost notes, doesn't sound like the waveform - unpleasant sound.
Solution: 1) Make sure you have your ESP32 on 240mhz (assume the IDE is setting that using the menu to set clock)
2) 16bit (like you see Marcel in videos using i assume) and 22khz sample rate. Finally it sounds how I believe it should sound - and that is very sweet and rewarding. I'm so happy. Now I'm off to build my own USB midi controller since I have to wait for another thing in the mail. I'll use one of these Mega32U4 pro micro things - apparently they easily implement midi device (as opposed to the Midi Host for this synth module.
Any other crucial make it or break it tips?
I'll make a video and show where I'm at.
:-)
Beta Was this translation helpful? Give feedback.
All reactions