Skip to main content

Generate Boomwhacker play-along videos from MIDI files

Project description

Whacker Hero

Create play-along videos for Boomwhackers.

example animation of falling notes

Installation

pip install "whackerhero[gui]"

[gui] is optional. It installs gooey which may take a while on Linux. You have to do a pip-install in order to use the gui, it cannot be launched directly from python or the shell.

Other dependencies are mido for midi reading, numpy for graphics, and moviepy for video rendering.

Usage

screenshot of config window

If you've installed the gui, it's pretty straightforward. The most work goes into writing a music arrangement suitable for playing along to (see the example below). There are many midi files on the internet, but they can be big and messy. You should trim it down to only one or two octaves.

The midi file will only be used for visuals. If you want it for audio too, you have to convert it manually.

There is also a command line variant:

whackercmd -a music.mp3 -i background.jpg midifile.mid output.mp4

You can even create gif images for some reason.

whackercmd -s 400x300 --fps 15 midifile.mid output.gif

Due to the single-core design of moviepy, rendering takes forever. Use the test option to generate a 10 sec long video before you do your final rendering.

Adding play-along to a music video

  1. Download the music video and extract the music.
  2. Import the music into your DAW of choice. Don't add any silence at the beginning.
  3. Write notes in sync with the music. What you hear is what you'll see. If you make all notes the same short length, things will look less cluttered in the final video.
  4. Export to a midi file.
  5. Run whackerhero
  6. Select the midi file and the music video.
  7. Check the test box and press start.
  8. If everything looks good, uncheck test and run again.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whackerhero-0.1.1.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

whackerhero-0.1.1-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file whackerhero-0.1.1.tar.gz.

File metadata

  • Download URL: whackerhero-0.1.1.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for whackerhero-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7fe9d37e9e40a694bf5d440d5e4e2f297be70c18e6df53aa7985fdac32b1c992
MD5 9d8dd1c687630f724c0d5c830bfe514d
BLAKE2b-256 7aaa7eb4529ee6268d389c15cccb7fbfc1bf650988f17f11362f9659f1ae9e84

See more details on using hashes here.

File details

Details for the file whackerhero-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: whackerhero-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for whackerhero-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2bdb35864fc9a09fffcf2c3d51d8f2bcedffdca6471033f87a250d6c0d4277d4
MD5 6cffefb53e96182278a735dfe6b0dedc
BLAKE2b-256 8e1209d77153c25e101c72345e6af5a14839b5f26463430c92552bbf67a5ddf0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page