You are here

Yoshimi on the Raspberry Pi

Page 1 of 6

Yoshimi on the Raspberry Pi

PostPosted: Fri Sep 27, 2019 8:18 pm
by Folderol
Well I finally got round to making a serious attempt to get this working on my Pi 3B, which has been languishing in a draw for many months. Please excuse some to the techie details if you don't know what they are :tongue:

I used rasbian-lite as a base, then just pulled in xorg, openbox, rox, and the minimum dependencies to install the current Yoshimi master.

I cheated, and used installing qjackctl to get it to configure the Pi for audio, but don't actually run jack with it - performance is not as good as all Alsa. I also used cpufrequtils to push the Pi up to 'performance'.

Oddly, cat /proc/cpuinfo doesn't show the clock rate, but it does increase the bogomips when performance is set. Still not brilliant goes from 36 to 74 (but not really sure what that actually means).

Unfortunately there is a only single USB hub, and I have to use all 4 ports, so that prolly doesn't help.

I'm getting not brilliant, but usable results working at either 44.1k or 48k with a buffer of 512, Alsa Midi and audio. This is using one of the very small USB audio modules. This can just about drive a pair of sensitive headphones, and connecting it to a proper amp gives a surprisingly good response.

There is no RealTime kernel available from raspbian, but running a CPU monitor tends to suggest the audio is hogging one core, and the others show some activity with GUI and keyboard action. The Pi CPU runs only slightly warm. I haven't tried running it headless yet, but suspect it would be a very small improvement.

I'll take it along to SynthFest and run it alongside my laptop (which will be running the KA6). This means I can take the audio across via KA6's inputs 1&2, and push it out amplified to the same speakers :)

I'll be leaving it all out in the open - so hopefully it will create a bit of interest :)

Re: Yoshimi on the Raspberry Pi

PostPosted: Fri Sep 27, 2019 8:42 pm
by BJG145
Cheers Folderol, good to know it's working... :thumbup:

Re: Yoshimi on the Raspberry Pi

PostPosted: Fri Sep 27, 2019 9:35 pm
by Eddy Deegan
Really nice work Will... any chance of a dd image? ;-)

Re: Yoshimi on the Raspberry Pi

PostPosted: Sat Sep 28, 2019 10:19 am
by blinddrew
And if you can't get it running to your full satisfaction you can console yourself with the knowledge that you've provided most of the script for the next computer-hacker-vs-the-terrorists blockbuster movie.
:)

Re: Yoshimi on the Raspberry Pi

PostPosted: Sat Sep 28, 2019 11:00 am
by Folderol
Eddy Deegan wrote:Really nice work Will... any chance of a dd image? ;-)
Uploading in progress but it s S L O W. ISP is throttling me to 120k and its a 1.3G file. Taken 30min to get to 20% :(

Target time looks to be aboit 13:30. I'll update when it's done.

When complete it will be at:
http://www.musically.me.uk/themainevent/yoshimiPi.zip
This will unpack to an 8G image file which can be DDed to the card.
I'll prolly leave it in place till at least Tuesday. If you can confirm it works for you, I'll leave it longer and let people at synthfest know it's available :)

It's not verified as I don't have any spare cards, and don't want to risk trashing what works!
Login is the default 'pi', password 'raspberry' - not exactly high security so i didn't bother to set up a new user. However, I did enable root access - password available on request :)

Finally, when you first run it Yoshimi will complain it can't find an audio device, unless by some amazing coincidence you have the same mini usb module as me :)

Re: Yoshimi on the Raspberry Pi

PostPosted: Sat Sep 28, 2019 1:01 pm
by Folderol
OK, it's there now - a bit quicker than I expected :)

I'd be very grateful if someone could try it out as soon as possible. There's no point in me writing out a guide for novices if it doesn't at l;east install correctly!

Oh, and...
@BD :tongue:

Re: Yoshimi on the Raspberry Pi

PostPosted: Sat Sep 28, 2019 3:20 pm
by Eddy Deegan
Thanks Will :clap: :clap: :clap:

I've downloaded it and I'll let you know how it goes (hopefully Tuesday as I had to order a new Pi)!

Re: Yoshimi on the Raspberry Pi

PostPosted: Sat Sep 28, 2019 8:09 pm
by Trevor Johnson
I'd be very grateful if someone could try it out as soon as possible.

Thank you, Wonks, I'll give it a try if I can find a spare micro SD card.

Incidentally, I was lucky enough to pick up a Pi4 (4Gb) from Rapid a few weeks ago, which is superb. Wow, is it quick and responsive!

Re: Yoshimi on the Raspberry Pi

PostPosted: Thu Oct 10, 2019 6:03 pm
by Folderol
In view of the interest shown at Synthfest (and the very generous gift of a Pi4) I've decided to try and make a complete and compact Yoshimi-Pi system. This will comprise a 7inch HDMI monitor that will sit on a 'base unit' comprising the PI itself,USB-Audio module and PSU. The PSU will use a standard mains lead and power both the Pi and the monitor.

I'll also keep track of the cost of all parts.

The only extras would then be a mouse and keyboard.

I'm currently waiting for bits to arrive, and will get on with this as soon as possible. I should have a clearer idea of how well this works sometime next week, but the following week I'll be in Germany, so might not be able to make much progress beyond proof of concept until November.

Re: Yoshimi on the Raspberry Pi

PostPosted: Thu Oct 10, 2019 7:51 pm
by Eddy Deegan
Folderol wrote:In view of the interest shown at Synthfest (and the very generous gift of a Pi4) I've decided to try and make a complete and compact Yoshimi-Pi system. This will comprise a 7inch HDMI monitor that will sit on a 'base unit' comprising the PI itself,USB-Audio module and PSU. The PSU will use a standard mains lead and power both the Pi and the monitor.

I'll also keep track of the cost of all parts.

The only extras would then be a mouse and keyboard.

I'm currently waiting for bits to arrive, and will get on with this as soon as possible. I should have a clearer idea of how well this works sometime next week, but the following week I'll be in Germany, so might not be able to make much progress beyond proof of concept until November.

You just made my day! Put me down for one with certainty. I'll also get my youtube friend to film a demo video for you of me going nuts on it if you'd like :thumbup:

Re: Yoshimi on the Raspberry Pi

PostPosted: Thu Oct 10, 2019 7:54 pm
by ConcertinaChap
If I get to see Eddy going nuts on it I'd get one of these for sure! Put me down for number 2 :)

CC

Re: Yoshimi on the Raspberry Pi

PostPosted: Thu Oct 10, 2019 8:52 pm
by BJG145
Maybe you could base it on a Pisound?

That would be great 'cos then I could just stick a card in mine.

Image

Re: Yoshimi on the Raspberry Pi

PostPosted: Fri Oct 11, 2019 11:25 am
by Folderol
A bit more info - while I wait impatiently for the screen and cable to arrive.

Using the Pisound is unfortunately not an option. For a start it massively increases the total cost, but also the case style would not work with the extras I'll need to install.

Yoshimi can in fact run at 192k, but with much increased processor loading. The module I'm currently testing with costs about £10 and runs at 48k 16bit. This sounded fine at the show, and also sounds fine directly running a pair of Sennheiser phones, as well as through a sudo-balanced lead into my main amp at home. However, what I'm thinking of doing is fitting a standard TRS plug to the case for ease of use with phones etc. but also leaving the USB port exposed so it can be unplugged and a high quality unit plugged in - this of course to some extent negates the self-contained nature!

The Pi4 uses a micro HDMI socket. These are rather fragile, and there are reports of the plugs breaking after a few plug/unplug cycles, so I'm considering making this a captive lead. The other end is a standard size HDMI plug, so much more robust.

The captive (but replaceable) lead idea I've used in the past is to cut a grove in the box where it meets the lid that's a fairly close fit but allows some movement, then put a strain relief clip inside the box.

I'm also considering finding a way to do a whole system shutdown rather than standby, with a latching relay on the mains in, so you will press a button to power up, like you would on a conventional computer. There would actually be zero demand after you do the normal shutdown from the desktop.

I'll almost certainly use a diecast metal case. They are easy to work with, provide effective screening and heat dissipation. They are also are pretty robust. Yoshimi will only use one CPU core heavily, and the others quite lightly, so it's most unlikely I'll actually need the heatsink with the one I've got.

Re: Yoshimi on the Raspberry Pi

PostPosted: Fri Oct 11, 2019 11:44 am
by The Elf
So Yoshimi is about to become a 'hardware' sound module, addressable over USB from a DAW? If so, it becomes a much more viable proposition for my working methods.

Or have I misunderstood?

Re: Yoshimi on the Raspberry Pi

PostPosted: Fri Oct 11, 2019 12:34 pm
by BJG145
It sounds very cool Folderol, good luck with it! :thumbup: