You are here

Yoshimi on the Raspberry Pi

For all other computers and operating systems, including Atari, Linux and mobile apps.

Yoshimi on the Raspberry Pi

Postby Folderol » Fri Sep 27, 2019 8:18 pm

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 :)
User avatar
Folderol
Jedi Poster
Posts: 9201
Joined: Sat Nov 15, 2008 1:00 am
Location: The Mudway Towns, UK
Yes. I am that Linux nut.
Onwards and... err... sideways!

Re: Yoshimi on the Raspberry Pi

Postby BJG145 » Fri Sep 27, 2019 8:42 pm

Cheers Folderol, good to know it's working... :thumbup:
User avatar
BJG145
Frequent Poster (Level2)
Posts: 3917
Joined: Sat Aug 06, 2005 12:00 am

Re: Yoshimi on the Raspberry Pi

Postby Eddy Deegan » Fri Sep 27, 2019 9:35 pm

Really nice work Will... any chance of a dd image? ;-)
User avatar
Eddy Deegan
Frequent Poster (Level2)
Posts: 2836
Joined: Wed Sep 01, 2004 12:00 am
Location: Brighton & Hove, UK
Please consider supporting the SOS Forum Album project, helping charities via music created by forum members.
 

Re: Yoshimi on the Raspberry Pi

Postby blinddrew » Sat Sep 28, 2019 10:19 am

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.
:)
User avatar
blinddrew
Jedi Poster
Posts: 8517
Joined: Sun Jul 05, 2015 12:00 am
Location: York
Ignore the post count, I have no idea what I'm doing...

Re: Yoshimi on the Raspberry Pi

Postby Folderol » Sat Sep 28, 2019 11:00 am

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 :)
User avatar
Folderol
Jedi Poster
Posts: 9201
Joined: Sat Nov 15, 2008 1:00 am
Location: The Mudway Towns, UK
Yes. I am that Linux nut.
Onwards and... err... sideways!

Re: Yoshimi on the Raspberry Pi

Postby Folderol » Sat Sep 28, 2019 1:01 pm

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:
User avatar
Folderol
Jedi Poster
Posts: 9201
Joined: Sat Nov 15, 2008 1:00 am
Location: The Mudway Towns, UK
Yes. I am that Linux nut.
Onwards and... err... sideways!

Re: Yoshimi on the Raspberry Pi

Postby Eddy Deegan » Sat Sep 28, 2019 3:20 pm

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)!
User avatar
Eddy Deegan
Frequent Poster (Level2)
Posts: 2836
Joined: Wed Sep 01, 2004 12:00 am
Location: Brighton & Hove, UK
Please consider supporting the SOS Forum Album project, helping charities via music created by forum members.
 

Re: Yoshimi on the Raspberry Pi

Postby Trevor Johnson » Sat Sep 28, 2019 8:09 pm

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!
Trevor Johnson
Regular
Posts: 217
Joined: Sat May 15, 2010 12:00 am

Re: Yoshimi on the Raspberry Pi

Postby Folderol » Thu Oct 10, 2019 6:03 pm

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.
User avatar
Folderol
Jedi Poster
Posts: 9201
Joined: Sat Nov 15, 2008 1:00 am
Location: The Mudway Towns, UK
Yes. I am that Linux nut.
Onwards and... err... sideways!

Re: Yoshimi on the Raspberry Pi

Postby Eddy Deegan » Thu Oct 10, 2019 7:51 pm

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:
User avatar
Eddy Deegan
Frequent Poster (Level2)
Posts: 2836
Joined: Wed Sep 01, 2004 12:00 am
Location: Brighton & Hove, UK
Please consider supporting the SOS Forum Album project, helping charities via music created by forum members.
 

Re: Yoshimi on the Raspberry Pi

Postby ConcertinaChap » Thu Oct 10, 2019 7:54 pm

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
User avatar
ConcertinaChap
Jedi Poster
Posts: 7762
Joined: Wed Jul 20, 2005 12:00 am
Location: Bradford on Avon
Making music: Eagle Alley, recording music: Mr Punch's Studio
If you want me I'll be down on Sound on Sound on Sound.

Re: Yoshimi on the Raspberry Pi

Postby BJG145 » Thu Oct 10, 2019 8:52 pm

Maybe you could base it on a Pisound?

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

Image
User avatar
BJG145
Frequent Poster (Level2)
Posts: 3917
Joined: Sat Aug 06, 2005 12:00 am

Re: Yoshimi on the Raspberry Pi

Postby Folderol » Fri Oct 11, 2019 11:25 am

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.
User avatar
Folderol
Jedi Poster
Posts: 9201
Joined: Sat Nov 15, 2008 1:00 am
Location: The Mudway Towns, UK
Yes. I am that Linux nut.
Onwards and... err... sideways!

Re: Yoshimi on the Raspberry Pi

Postby The Elf » Fri Oct 11, 2019 11:44 am

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?
User avatar
The Elf
Jedi Poster
Posts: 13065
Joined: Tue Aug 14, 2001 12:00 am
Location: Sheffield, UK
An Eagle for an Emperor, A Kestrel for a Knave.

Re: Yoshimi on the Raspberry Pi

Postby BJG145 » Fri Oct 11, 2019 12:34 pm

It sounds very cool Folderol, good luck with it! :thumbup:
User avatar
BJG145
Frequent Poster (Level2)
Posts: 3917
Joined: Sat Aug 06, 2005 12:00 am

Re: Yoshimi on the Raspberry Pi

Postby Eddy Deegan » Fri Oct 11, 2019 12:57 pm

Folderol wrote:... through a sudo-balanced lead

At first I was "eh, wot?"

Folderol wrote:Yes. I am that Linux nut.

And now I'm "Yes. Yes you are." :lol:
User avatar
Eddy Deegan
Frequent Poster (Level2)
Posts: 2836
Joined: Wed Sep 01, 2004 12:00 am
Location: Brighton & Hove, UK
Please consider supporting the SOS Forum Album project, helping charities via music created by forum members.
 

Re: Yoshimi on the Raspberry Pi

Postby Folderol » Fri Oct 11, 2019 1:43 pm

Opps! My excuse is I wrote that before lunch :tongue:

@Elf: That's exactly what I'm hoping to achieve.

@BJG145: Thanks, it should be an interesting challenge.
User avatar
Folderol
Jedi Poster
Posts: 9201
Joined: Sat Nov 15, 2008 1:00 am
Location: The Mudway Towns, UK
Yes. I am that Linux nut.
Onwards and... err... sideways!

Re: Yoshimi on the Raspberry Pi

Postby The Elf » Fri Oct 11, 2019 2:08 pm

Folderol wrote:@Elf: That's exactly what I'm hoping to achieve.
Then you now have my attention! :thumbup:
User avatar
The Elf
Jedi Poster
Posts: 13065
Joined: Tue Aug 14, 2001 12:00 am
Location: Sheffield, UK
An Eagle for an Emperor, A Kestrel for a Knave.

Re: Yoshimi on the Raspberry Pi

Postby Folderol » Tue Oct 15, 2019 12:32 pm

To put it mildly, I am a little less than delighted with Amazon.

The monitor I ordered was quoted as due for delivery today. Well I just checked on-line and this has now magically changed to between the 26th, and 5th November - right in the middle of the time I'll be in Germany :madas:

I do have another HDMI capable monitor, but it's a bit inconvenient to say the least. It's hooked up to this computer.
User avatar
Folderol
Jedi Poster
Posts: 9201
Joined: Sat Nov 15, 2008 1:00 am
Location: The Mudway Towns, UK
Yes. I am that Linux nut.
Onwards and... err... sideways!

Re: Yoshimi on the Raspberry Pi

Postby Wonks » Tue Oct 15, 2019 12:41 pm

Cancel and get another one.
User avatar
Wonks
Jedi Poster
Posts: 10161
Joined: Thu May 29, 2003 12:00 am
Location: Reading, UK
Correcting mistakes on the internet since 1853

Next

Who is online

Users browsing this forum: No registered users