Giter Site home page Giter Site logo

music-graphs's Introduction

Music Graphs

👋 Hey there! Welcome to Music Graphs 🎵📊

This is where the magic happens for the videos I post on TikTok.

Check it out if you haven't already!

🤩 Follow me! Like my videos! Make me famous!

Example Videos

bach_3_1700340455.mp4
wii-music_1700340479.mp4
jeopardy_think_1700525915.mp4

Install

Alright, let's get you set up. This baby runs on Python, so let's prep your environment.

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

You'll also need ffmpeg.

brew install ffmpeg

Generate a Video

Ready to roll? Start with this example:

python music_graphs.py --midi examples/wii-music.mid

Add --dark to use a dark theme.

python music_graphs.py --midi examples/wii-music.mid --dark

This command churns out a video. But hold up, it's kinda vanilla, right? Let's jazz it up!

Run it with a Theme file:

python music_graphs.py \
  --midi examples/wii-music.mid \
  --theme examples/wii-theme.yaml

Boom! Looks way cooler, doesn't it?

For all the nitty-gritty on customizing your video, peek at default_theme_dark.yaml. There's a bunch you can tweak!

See the help command for full options:

Usage: music_graphs.py [OPTIONS]

Options:
  --midi PATH             Path to a MIDI file.  [required]
  --theme PATH            Path to a YAML theme file.
  --dark                  True if dark theme should be the used.
  --output_filename PATH  Output filename (path).
  --soundfont_file PATH   Path to a Soundfont file
  --help                  Show this message and exit

What's a "Sound Font" file?

For more details, check out the wiki, but the gist is: while a MIDI file outlines the notes of a piece, a SoundFont file fills in the sound - it's what makes the notes come to life with actual timbre and tone. You can find better, more realistic sound fonts online.

For example - Look for "SGM-V2.01.sf2" on https://www.doomworld.com/forum/post/1827928.


Note Ordering:

In the theme file:

# For Chromatic
nodes_sorted:  true
# For Circle Of Fifths
nodes_sorted:  [6, 1, 8, 3, 10, 5, 12, 7, 2, 9, 4, 11]

🙏Thanks for stopping by!

music-graphs's People

Contributors

admtal avatar

Stargazers

Gerardo avatar Otify avatar Trtle.T avatar R3V1Z3 avatar Luca avatar Jeff avatar loneyTYS avatar Yotam avatar Yvan avatar Guilhem J avatar  avatar dai avatar  avatar Valentin Ackva avatar Lulzx avatar Vincent Cusson avatar  avatar fwcd avatar Milkii Brewster avatar Paulo Chiliguano avatar  avatar Luiz avatar  avatar  avatar eunho avatar johnny avatar  avatar fxomt avatar Jacob Eggers avatar Jordan Levy avatar Mike Wu avatar  avatar Ron Green avatar Karsten Johansson avatar Zak avatar Justin Byrne avatar nimrosh avatar Rami Abraham avatar wolfi3 avatar Sven Sackers avatar  avatar Giacomo Tüfekci avatar  avatar Clayton Kehoe avatar

Watchers

 avatar  avatar Yotam avatar Trtle.T avatar

Forkers

luiz-monad

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.