Piano HAT

#Unlock your inner Mozart with Piano HAT, the ultimate mini musical companion for your Raspberry Pi!

http://shop.pimoroni.com/products/piano-hat

Piano HAT has been a long time in the making, mostly because we always seem to be busy with something else.

While Piano HAT is perfectly fine just playing wav samples of any instrument you want ( I source them from the Free Sound Project: https://www.freesound.org ) I’ve been using it as an excuse to explore software synthesizers on the Raspberry Pi, including my old favourite SunVox which is available for most platforms.

Probably the best fit at the moment is Yoshimi ( sudo apt-get install yoshimi ), it’s a great little synth but really needs a Pi 2 for best effect. There are some great patches available for Yoshimi, and it supports the midi “patch change” signal too ( if you compile it yourself ), so the Instrument button will actually cycle through the patches in your current bank… if these words make no sense to you-

  • In a synthesizer, a patch is a single configured sound - the word probably stems from the act of “patching signals together”
  • A bank is a collection of patches

Another interesting bit of sonic tinkering has been with Python’s Pyo ( http://ajaxsoundstudio.com/software/pyo/ ), suggested by @sandyjmacdonald, it was a complete and total dog to get installed and running so I’m going to have to investigate making that easier, but once it’s up you can code a synthesizer in chunks using Python and then play it in realtime. It’s a great way for more advanced users to get a feel for how sound generation works. In theory Pyo could take an audio input signal and do funky things with it in realtime.

Finally, MIDI out works really well… I mean really well. Even though my crusty old USB to MIDI cable which conks out if you move it slightly. There’s really no latency that I can detect, which is fantastic because it drives me nuts. ( Latency would be the delay between you pressing a key, and a note sounding… any delay makes it frustrating to play ).

I’ve no idea what USB to MIDI cables work with the Pi, but if you test one let us know. You can use the Pi and Piano HAT as a controller for basically any old synth gear you might have lying around. We hooked it up to @rabid_inventor’s Korg Electribe which was far more fun than should be allowed in a work environment:

Anyway, I’ve waffled on too long! Discuss :D

1 Like

[quote=“gadgetoid, post:1, topic:792”]
In a synthesizer, a patch is a single configured sound - the word probably stems from the act of “patching signals together”[/quote]
Yes, that is sort of the idea… technically in the old days you would wire sound generators such as LFOs and so on together to create the audio chain using ‘patch’ cables.

1 Like

RogueM, interesting post tho midi is not my immediate interest. Is there any chance of a quick guide as to how I can install software for the pianohat I acquired recently for my Raspberry (which works beautifully!) I was told to follow instructions after keying in "curl sSL get.Pimoroni.com/pianohat " they include consult Pimoroni!!! and little else apart from failure to load Py2 or Py3 libraries!*

Best regards Ozzie (Canberra-based)

1 Like

@Ozzie - you should ideally start a new thread for support in the support forum, otherwise your posts are liable to get lost or overlooked.

However, I’ve promoted you to “Member” so you can post some screengrabs of the output you get when running the install command.

If I were to make a stab in the dark, I’m guessing apt-get is failing to install some packages, possibly due to your network configuration. But that’s only a guess.

1 Like

Many thanks for your advice - will do. Screengrab is beyond me but will read and copy what I can. System is straightforward PI2, NOOBS, Edimax nano USB wifi adapter, keyboard and display working perfectly! Thanks for the promotion!
Ozzie

1 Like

Hi Gadgetoid
please can you tell me where you are moving this thread to as I am still struggling to make Pianohat work and need to be heped a bit.
Thanks
Quincy

1 Like

You can open a topic in the Support section:
http://forums.pimoroni.com/c/support

it will be easier personalise the answers to your particular situation :-)

1 Like