GithubHelp home page GithubHelp logo

mmp-remap's Introduction

CLI tool to re-map paths in LMMS projects.

Note: You cannot edit resources of individual instruments.

Requirements

  • Python

Recommended

  • LMMS installed and configured.

Resources that can be re-mapped:

  • Audio - wav, ogg, mp3, flac, aiff, ds, spx, voc, aif, au

    • AudioFileProcessor
    • Sample Clip
    • SlicerT
  • Soundfonts - .sf2, .sf3

    • SF2 Player
  • VSTs - .dll, .exe, .so

    • Vestige

How to Use

First list out the resources:

python mmpa.py ./project.mmpz list

Use the information provided from that output to determine what resource to remap.

There are 2 ways resources can be re-mapped:

  • With string matching
  • With fancy regular expressions

Re-map with an Index

The simplest method if you don't want to re-map that many resources.

First we list out the instruments:

python ./mmpa.py ./test.mmpz list
INFO: Listing all resources and its references

[1] drums/snare01.ogg
        1 - REFERENCE

[2] drums/bassdrum_acoustic01.ogg
        1 - REFERENCE

[3] drums/hihat_foot_pedal01.ogg
        1 - REFERENCE

[4] drums/kick_hard01.ogg
        1 - REFERENCE
python mmpa.py ./test.mmpz idx 1 "drums/hihat_foot_pedal01.ogg" -o "test2.mmpz"

Match based re-mapping

Might be all you need when re-mapping multiple resources.

python mmpa.py ./test.mmpz match "C:\Users\Bob\Documents\LMMS\samples\" "usersample:" -o "test2.mmpz"

Regex based re-mapping

Very advanced

TODO

CLI args

Short Long Description
-c --config Override LMMS' default configuration path.

Subcommands

When you need to do something quick and dirty.

Long Description
match Re-map project resources with simple string matching.
re Re-map project resources with regular expresessions.
-o/--out Specify the output file (when using the commands above).
(adding .mmpz will compress the project)
list List all of the resources and its associated instruments.

Compatibility

Should work across nearly all LMMS versions

Tested with python 3.8

mmp-remap's People

Contributors

b0ney avatar

Stargazers

 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.