Backyard Baseball Raspberry Pi

  

Introduction: Piano Pi - Play a Duet With Your Pi!

  1. Backyard Baseball Raspberry Pi 1
  2. Raspberry Pi Projects

League Scheduler quickly creates your round-robin league schedules for a whole season. Just enter your locations, teams, game times and start date. League Scheduler automatically creates your schedule based on the parameters you've specified. Handles multiple locations, division play and exceptions. Enter game scores and team standings are automatically calculated. Backyard Baseball 2005 - PC. ESRB Rating: Everyone Jun 22, 2004 by Humongous Entertainment. Miadore PC USB Controller Retro Game Pad Joystick Raspberry Pi Controller for Windows PC Mac Linux RetroPie NES Emulators. 4.1 out of 5 stars 48. Classic Baseball Hat, Unisex Plain Baseball Cap Adjustable Size Curved Visor Hat Dad Hat Men's.

In this tutorial you will learn a simple way to program your Pi using Sonic Pi to create a piano accompaniment.

Remember the piano scene in the move Big? You will be programming the bass part of the song they play 'Heart and Soul'.

You will need:

Monitor, keyboard and mouse.

Speakers

Piano

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Open Sonic Pi on Jessie Raspbian

Pi comes pre-installed with the NOOBS card.

Navigate to Menu >> Programming >> Sonic Pi

Step 2: Getting Familiar With Sonic Pi

If this is your first time using Sonic Pi, click the 'Help' button and walk through the first couple lessons to get familiar with the platform.

I went ahead and changed the editor to a dark screen by clicking on the 'Prefs' button. You may also adjust the volume there.

Backyard Baseball Raspberry Pi 1

At the bottom of the editor you will see 'Buffer0' - 'Buffer9'. Here you can switch between code windows to create unique sounds and music for each Buffer. Find an empty Buffer to begin this project.

Raspberry Pi Projects

Step 3: Midi Numbers

Sonic Pi uses the Midi number system where each key on the piano has a number.

Middle C is 60. To begin the song, C is played twice. If you don't want notes to be played at the same time you must separate the notes with a rest or sleep. This is the duration of time in seconds before the next note is played. *Note a zero must precede the decimal if sleep is less than a second or you will get an error.

The next 3 notes will be played as a chord twice with a sleep in between each chord:

Go ahead and press the 'Run ►' with your speakers on to hear your song so far!

Step 4: Second Verse, Same As the First!

The accompaniment on this piece repeats itself again and again. With Sonic Pi you can easily wrap the code you want repeated in a loop with the key words do and end:

Backyard


Be careful though, using the word loop creates an infinite loop and the song will repeat until you press the 'Stop ■' button. To limit the number of times the loop runs, simply type the number followed by .times:


Attachments

Be the First to Share

Recommendations

How to Build a Giant Hidden Shelf Edge Clock in Arduino
46 10K
Automated Garden System Built on Raspberry Pi for Outdoors or Indoors - MudPi in Raspberry Pi
  • Tiny Speed Challenge

  • Clocks Contest

  • PCB Design Challenge