Book Image

Raspberry Pi Blueprints

Book Image

Raspberry Pi Blueprints

Overview of this book

Table of Contents (17 chapters)
Raspberry Pi Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Configuration


Chances are that the Pi and bottles will need to be reconfigured and retuned on a per song basis due to the limited number of notes that can be configured at the same time (if you use the Pi model B+, this may not be a big problem). To help make this process easier, there is a script (midi_note_summary.py) included with this chapter that will take a MIDI file and generate a report of exactly what notes are used in the file. This will make it easier for us to determine which notes have to be configured on the Pi and accordingly, the bottles can be tuned for them.

This script should be used with the following command, where MIDI_FILE is the filename of the MIDI file:

python midi_note_summary.py MIDI_FILE.mid

Its output is shown in the following screenshot:

Note that this script will work straight away on the Pi without additional configuration, as all the required libraries are installed when the web application is deployed. However, to use the script on a different PC, you will...