Giter VIP home page Giter VIP logo

lmms-midi's Introduction

lmms-midi

A simple Python script to convert uncompressed (.mmp) LMMS songs to MIDI files, complete with instruments.

Why you should choose lmms-midi over other programs

  • It's actually maintained
  • You have more control over non-SF2 player instruments
  • Instrument types are converted (including drum kits)

Installation and usage

First, make sure you have the latest version of Python. You can head over to https://python.org/downloads to get it.
Then you just need to install all the program's requirements (which is just MIDIUtil):

pip install -r requirements.txt

Now you can run lmms-midi! Download it from either the Releases tab or, if I haven't released any versions yet, from the green "Code" drop-down. Here's some example usage for main.py:

python3 main.py YOURFILE.mmp

What works (to my knowledge)

  • SF2 players
    • Note velocity
    • Track panning
    • Track volume
  • SF2 players in beat/bassline tracks
  • SF2 drum kits (be sure to set the bank to 128)
  • Pitch/volume/pan automation tracks

What doesn't work (yet)

Help reduce this list to zero by contributing to lmms-midi! New issues and PRs are very welcome and encouraged!

  • Track pitch
  • Note panning
  • Master volume automation tracks
  • Automation tracks in beat/bassline tracks

What can't work

  • Track volume > 100%

    • Mostly due to how, with MIDIUtil, volumes for tracks are between 0 and 128. A 100% volume for a track in LMMS translates to 128, and you can't go over 128, so you can't have tracks with a volume greater than 100%. Instead, to make tracks louder, try increasing note velocities.
  • Any instrument track that isn't an SF2 player (including audio samples)

    • Kind-of self-explanatory: you can't play custom synths with MIDI. Be warned though that SF2 files may have extra instruments that might not be standard throughout, so keep an eye out for your SF2 player's bank/patch.
    • You can, however, subsitute these with MIDI instruments if you use the --wizard flag on main.py.

Notes

  • Here's a useful link for some MIDI specifications: https://www.music.mcgill.ca/~ich/classes/mumt306/StandardMIDIfileformat.html
  • If you have multiple drum tracks, they'll converge into one because you can only have one MIDI channel for drums. It'll sound fine, but this means the resulting drum track will take on the properties (ex. volume/panning) of the lowest drum track you have (where beat/bassline tracks count as lower than regular tracks). Unfortunately this also means that LMMS, when importing your .mid files, will also import the drums as one track.

lmms-midi's People

Contributors

pastthepixels avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.