Hi everyone,
I'm writing here to share my Raspberry Pi 4 touchscreen project and how I managed to achieve:
Maximum polyphony of 96
64 sample buffer
24000Hz internal sample rate
I'm using:
Raspberry Pi 4 Model B w/ 2GB RAM (£34)
HiFiBerry DAC2 Pro (£45)
Official 7" Touchscreen display (£60)
SmartiPi Touch 2 Case (£24)
SmartiPi Touch 2 Back Cover 35mm (£7)
USB-C Cable with On/Off Switch (£3)
Pianoteq 6 Stage
(all prices rounded up, and from The Pi Hut)
I followed Edgar's brilliant guide (https://forum.modartt.com/viewtopic.php?id=5351) for the Raspberry Pi 3, but seemingly had to spoof the Pianoteq software to run at a 24000Hz internal sample size, whilst the hardware was running at 48000Hz. Pianoteq doesn't like it and complains of the wrong buffer size, and I get consistent spikes on the CPU graph, but the performance is flawless with no audio hitches whatsoever.
To do this I had to switch around the device sample rate, internal sample rate and buffer size - setting the buffer size I wanted first, with a setting that Pianoteq didn't complain about, then changing the sample size to one with which it thinks the buffer size is suboptimal. The buffer size stays, but if I go to change it the 64 sample buffer size isn't one of the options from the drop down menu.
I'm sorry I can't be more specific - I've set the settings and don't want to go through the rigmarole of fiddling around, but if anyone has any questions please let me know.
A question for the forum - does this sound like a bug? I don't want them to fix it in case I can't get these results again!
I was sceptical about the project, but I'm really happy with results. I've wired the output from the Pi through a small amplifier (Lepy LP-2020A) and into the built in speakers on my Yamaha P-45. The speakers aren't great, but the treble and bass settings on the little amp make it sound more alive.
I've set up the OS to start Pianoteq fullscreen when I turn on the Pi, and have a shutdown shortcut on the desktop, so I can turn it all off quite easily. I don't have links to the guides, but searches relating to Linux brought be to results quickly.
To address something I read in my travels through the forums; in my experience RAM has little to no effect on the performance - 2GB is enough to run both the OS and Pianoteq with plenty of room to spare (current usage with Pianoteq open is consistently c.237MB). CPU effects performance, and using a DAC hat offloads the processing of audio, increasing performance, and allowing for more connectivity.
Thanks to everyone for your posts and to Edgar, and Niclas for his help in posting Edgar's guide!
Tom
Last edited by tjp (14-02-2021 14:58)