Git Product home page Git Product logo

sonichero's Introduction

SonicHero

A quick little hack allowing the control of Sonic Pi using a GuitarHero Wireless Guitar (Bluetooth LE version).

Hardware

You will need a Pi3 or Pi Zero W, or another type of Pi with a Bluetooth LE USB dongle.

You can find the GuitarHero Live Guitar available for about 10 UK Pounds online (e.g. Amazon, while stocks last) and retail outlets (e.g. Maplins, while they last!).

Install

sudo pip3 install bluezero python-osc
git clone https://github.com/WayneKeenan/SonicHero.git

Setup

Find and connect to the controller.

In a shell on the Pi launch the bluetoothctl shell:

bluetoothctl
scan on
scan off

You should see you GuitarHero controller appear as 'Ble guitar', e.g.:

[NEW] Device F3:13:81:8B:37:00 Ble Guitar

The F3:13:81:8B:37:00 is the DEVICE_ADDRESS, it will be used in the next few sections, replace as necessary.

While still in the bluetoothctl shell type:

trust DEVICE_ADDRESS
connect DEVICE_ADDRESS
exit

You may have to repeat the above if you find you can't connect in the future.

Running

On the Pi desktop launch SonicPi and paste in the contents of the sonicpi_example.rb script and press Run in the GUI.

In a terminal on the Pi run:

cd SonicHero
python3 bleguitar_agent.py DEVICE_ADDRESS

sonichero's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.