All Projects → jpetazzo → griode

jpetazzo / griode

Licence: other
Griode + Novation Launchpad + Raspberry Pi = a music instrument!

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to griode

Debian Pi Aarch64
This is the first 64-bit system in the world to support all Raspberry Pi 64-bit hardware!!! (Include: PI400,4B,3B+,3B,3A+,Zero2W)
Stars: ✭ 2,505 (+2059.48%)
Mutual labels:  raspberrypi, raspberry
wor-flasher
Legal utility that runs on RPiOS to flash another SD card with Windows 10/11
Stars: ✭ 451 (+288.79%)
Mutual labels:  raspberrypi, raspberry
ControlBlockService2
This is the driver for the ControlBlock re.v 2.X, a power switch and input/output/gameapd gadget for the Raspberry Pi
Stars: ✭ 18 (-84.48%)
Mutual labels:  raspberrypi, raspberry
Nwjs rpi
[NW.js port for Raspberry Pi] binary compiled for the ARMv6 used in Raspberry Pi (compatible with RPi 2 and RPi 3)
Stars: ✭ 91 (-21.55%)
Mutual labels:  raspberrypi, raspberry
motor-hat
Node Module to control Adafruits MotorHAT for the RaspberryPi
Stars: ✭ 28 (-75.86%)
Mutual labels:  raspberrypi, raspberry
Gitlab
GitLab CE (Docker image) for ARM devices, this is a mirror repository of
Stars: ✭ 121 (+4.31%)
Mutual labels:  raspberrypi, raspberry
rpi-backup
raspberry pi backup,树莓派系统备份,最小镜像备份
Stars: ✭ 213 (+83.62%)
Mutual labels:  raspberrypi, raspberry
Raspberrypi tempmon
Raspberry pi CPU temperature monitor with many functions such as logging, GPIO output, graphing, email, alarm, notifications and stress testing. Python 3.
Stars: ✭ 52 (-55.17%)
Mutual labels:  raspberrypi, raspberry
Raspberry-Pi-Dashboard
Web-based dashboard interface to inspect Raspberry Pi hardware and software with no extra software required.
Stars: ✭ 131 (+12.93%)
Mutual labels:  raspberrypi, raspberry
RPi-TELEBOT
Python based Telegram bot to monitor and control the raspberry pi
Stars: ✭ 19 (-83.62%)
Mutual labels:  raspberrypi, raspberry
Docker Jdownloader
JDownloader 2 Docker Image (Multiarch) - Passed 40M Downloads
Stars: ✭ 85 (-26.72%)
Mutual labels:  raspberrypi, raspberry
NR1-UI
Userinterface for Volumio (RaspberryPi) with ssd1322 and ssd1306 oled display, spectrum bargraph, progress bar, LED functions, Standby-functions, 4 Buttons and Rotary Encoder.
Stars: ✭ 29 (-75%)
Mutual labels:  raspberrypi, raspberry
Homekitcam
A project to make a Raspberry Pi driven, HomeKit Enabled camera.
Stars: ✭ 69 (-40.52%)
Mutual labels:  raspberrypi, raspberry
Gumcp
Web Control Panel for Raspberry Pi
Stars: ✭ 124 (+6.9%)
Mutual labels:  raspberrypi, raspberry
Q3lite
Q3lite, an OpenGL ES port of Quake III Arena for embedded Linux systems.
Stars: ✭ 64 (-44.83%)
Mutual labels:  raspberrypi, raspberry
yamete
Yamete - Hentai downloader in PHP CLI - Easy site downloader PHP system
Stars: ✭ 63 (-45.69%)
Mutual labels:  raspberrypi, raspberry
Rpi23 Gen Image
Advanced Debian "stretch" and "buster" bootstrap script for RPi 0/1/2/3 and QEMU
Stars: ✭ 300 (+158.62%)
Mutual labels:  raspberrypi, raspberry
Balena Electronjs
electronJS-based resin application template
Stars: ✭ 348 (+200%)
Mutual labels:  raspberrypi, raspberry
TinyChat
💬 Extra small chat client with GUI
Stars: ✭ 15 (-87.07%)
Mutual labels:  raspberrypi, raspberry
amanuensis
The Amanuensis is an automated songwriting and recording system aimed at ridding the process of anything left-brained, so one need never leave a creative, spontaneous and improvisational state of mind, from the inception of the song until its final master. See the README for instructions and feel free to message me at soundcloud.com/to_the_sun.
Stars: ✭ 30 (-74.14%)
Mutual labels:  daw, instrument

Griode

Griode lets you play music using a LaunchPad or a similar controller.

For short demos and tutorials, check this YouTube playlist.

I gave a few talks about Griode:

  • Berlin Hack&Tell at C-Base (May 2018) 🔗
  • Linux Technologies Berlin (July 2018) 🔗
  • Python Users Berlin (April 2019) 🔗

Here are the slides that I use when presenting Griode.

This poster explains how to switch instruments and modes. The original version of the poster was made by Jérôme Petazzoni to present at PyCon in 2019; and it was then much improved by Elodie Trinh (thanks Elodie!).

There is also a basic (and incomplete) user manual that you may (or not) find helpful.

Quick start

Here are some quick instructions to get you started, assuming that you have a LaunchPad connected to an Debian/Ubuntu system.

git clone git://github.com/jpetazzo/griode
cd griode
sudo apt-get install python3-pip python3-dev libasound2-dev libjack-dev fluidsynth
pip3 install --user -r requirements.txt
( cd soundfonts; ./download-soundfonts.sh; )
./griode.py

Your LaunchPad should light up with a red and white pattern, and pressing pads should make piano sounds.

Installing on a Raspberry Pi

If you want to setup Griode on a Raspberry Pi, you can use the instructions above, but make sure that you run them as the pi user.

You can use the "lite" (text only) or the "desktop" version, it doesn't matter for Griode.

If you want Griode to start automatically when the Pi is powered on, see this paragraph.

Detailed setup instructions

You need:

  • Python 3
  • FluidSynth (to generate sounds)
  • at least one SoundFont (instrument bank used by FluidSynth)
  • a LaunchPad or similar MIDI controller

Installing Python dependencies

On Debian/Ubuntu systems, you will need the following system packages, so that the python-rtmidi Python package can be installed correctly:

apt-get install python3-dev libasound2-dev libjack-dev

You can then install Griode's requirements with pip:

pip install --user -r requirements.txt

Of course, you are welcome to use virtualenv or anything like that if you want.

If you get compilation errors, you might need extra packages (libraries or headers).

Note: if you have problems related to the installation of python-rtmidi, you might be tempted to try to install rtmidi instead. DO NOT! The two packages are slightly incompatible; so after installing rtmidi, perhaps Griode will start, but you will get another bizarre error at a later point.

Installing FluidSynth

Fluidsynth is a software synthesizer. On Debian/Ubuntu systems, you can install it with:

apt-get install fluidsynth

Installing SoundFonts

Griode requires at least one "SoundFont" so that FluidSynth can make sounds. The easiest way to get started is to go to the soundfonts/ subdirectory, and run the script download-soundfonts.sh.

Griode will load SoundFonts called ?.sf2 in alphabetical order. The download-soundfonts.sh script will create a symlink 0.sf2 pointing to the "GeneralUser GS" SoundFont, which contains the 128 instruments of the General MIDI standard, as well as a few variations, and a few drum kits.

You are welcome to download your own soundfonts, place them in the soundfonts/ subdirectory, and create symlinks to these files: they will be loaded when you start Griode.

What are soundfonts?

SoundFonts are instrument banks used by some audio hardware and by FluidSynth to generate notes of music. The typical extension for SoundFont files is .sf2.

There are many SoundFonts available out there. Some of them are tiny: the Sound Blaster AWE32 (a sound card from the mid-90s) had 512 KB of RAM to load SoundFonts, and there are SoundFonts of that size that offer the 100+ instruments of the General Midi standard! And some SoundFonts are huge: I saw some 1 GB SoundFonts out there with just a couple of piano instruments in them, but in very high quality (i.e. using different samples for each note and for different velocity levels.)

Here are a few links to some SF2 files:

LaunchPad

Griode currently supports the Launchpad Pro, the Launchpad MK2 (aka "RGB"), and has partial support for the Launchpad S. You can plug multiple controllers and use them simultaneously.

Griode relies on the name of the MIDI port reported by the mido library to detect your Launchpad(s). This has been tested on Linux, but the port names might be different on macOS or Windows.

Debugging

You can set the LOG_LEVEL environment variable to any valid logging level, e.g. DEBUG or INFO:

export LOG_LEVEL=DEBUG
./griode.py

Note:

  • DEBUG level is (and will always be) very verbose.
  • You can put the log level in lowercase if you want.
  • The default log level is INFO.

Persistence

Griode saves all persistent information to the state/ subdirectory. If you want to reset Griode (or some of its subsystems) to factory defaults, you can wipe out this directory (or some of the files therein).

Starting automatically on boot

If you are using a Raspberry Pi running the Raspbian distribution, and want to automatically start Griode on boot, you can use the provided systemd unit (griode.service).

After checking out the code in /home/pi/griode, and confirming that it runs correctly, just run:

sudo systemctl enable /home/pi/griode/griode.service
sudo systemctl start griode

Griode will start, and it will be automatically restarted when the Pi reboots.

If it doesn't start, or if you want to see what's going on:

sudo systemctl status griode
sudo journalctl -u griode

Bugs

  • If you keep a note pressed while switching to another gridget, the note will continue to play. This is almost by design.
  • If you keep a note pressed while stopping recording, it might record a zero-length notes.
  • If a sync is triggered while notes are pressed, it might result in zero-length notes.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].