{"id":17762081,"url":"https://github.com/b0ney/mmp-remap","last_synced_at":"2026-03-01T17:34:31.707Z","repository":{"id":210451536,"uuid":"714063541","full_name":"B0ney/mmp-remap","owner":"B0ney","description":"Python script to remap resources in lmms project files (WIP)","archived":false,"fork":false,"pushed_at":"2024-05-13T12:44:52.000Z","size":65,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T17:30:02.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/B0ney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-03T20:48:28.000Z","updated_at":"2024-05-13T08:52:14.000Z","dependencies_parsed_at":"2024-04-23T11:12:26.963Z","dependency_job_id":"dd5c0448-0f16-4edd-b517-75b2d339efcc","html_url":"https://github.com/B0ney/mmp-remap","commit_stats":null,"previous_names":["b0ney/mmp-remap"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/B0ney/mmp-remap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B0ney%2Fmmp-remap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B0ney%2Fmmp-remap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B0ney%2Fmmp-remap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B0ney%2Fmmp-remap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/B0ney","download_url":"https://codeload.github.com/B0ney/mmp-remap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B0ney%2Fmmp-remap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29976279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-26T19:51:43.286Z","updated_at":"2026-03-01T17:34:31.648Z","avatar_url":"https://github.com/B0ney.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"CLI tool to re-map paths in LMMS projects.\n\n\n**Note**: You cannot edit resources of individual instruments.\n\n# Requirements\n* Python\n\n# Recommended\n* LMMS installed and configured.\n\n\n# Resources that can be re-mapped:\n* Audio - ``wav``, ``ogg``, ``mp3``, ``flac``, ``aiff``, ``ds``, ``spx``, ``voc``, ``aif``, ``au``\n    - AudioFileProcessor\n    - Sample Clip\n    - SlicerT\n\n* Soundfonts - ``.sf2``, ``.sf3``\n    - SF2  Player\n\n* VSTs - ``.dll``, ``.exe``, ``.so``\n    - Vestige\n\n# How to Use\nFirst list out the resources:\n\n```shell\npython mmpa.py ./project.mmpz list\n```\n\nUse the information provided from that output to determine what resource to remap.\n\nThere are 2 ways resources can be re-mapped:\n\u003c!-- * With an Index --\u003e\n* With string matching\n* With fancy regular expressions\n\n### Re-map with an Index\nThe simplest method if you don't want to re-map that many resources.\n\nFirst we list out the instruments:\n```shell\npython ./mmpa.py ./test.mmpz list\n```\n\n```\nINFO: Listing all resources and its references\n\n[1] drums/snare01.ogg\n        1 - REFERENCE\n\n[2] drums/bassdrum_acoustic01.ogg\n        1 - REFERENCE\n\n[3] drums/hihat_foot_pedal01.ogg\n        1 - REFERENCE\n\n[4] drums/kick_hard01.ogg\n        1 - REFERENCE\n```\n\n```shell\npython mmpa.py ./test.mmpz idx 1 \"drums/hihat_foot_pedal01.ogg\" -o \"test2.mmpz\"\n```\n\n### Match based re-mapping\nMight be all you need when re-mapping multiple resources.\n\n\u003c!-- ```shell\nmmpa.py ./test.mmpz --match\n\n\n*List instruments*\n\n\n\nwhat to match?: test.dll \n\nWhat to replace with?: hi.dll\n\n``` --\u003e\n\n```shell\npython mmpa.py ./test.mmpz match \"C:\\Users\\Bob\\Documents\\LMMS\\samples\\\" \"usersample:\" -o \"test2.mmpz\"\n```\n\n### Regex based re-mapping\nVery advanced\n\n```shell\nTODO\n```\n\n## CLI args\n\n| Short | Long | Description |\n|-|-|-|\n|-c| --config | Override LMMS' default configuration path. |\n\u003c!-- |-a| --auto | If a resource can be found with ``lmmsrc.xml``, its path will be replaced with an alias. \u003cbr\u003e E.g. ``usersample``| --\u003e\n\n## Subcommands\nWhen you need to do something quick and dirty.\n\n| Long | Description |\n|-|-|\n| match | Re-map project resources with simple string matching. |\n| re | Re-map project resources with regular expresessions. |\n| -o/--out | Specify the output file (when using the commands above). \u003cbr\u003e (adding ``.mmpz`` will compress the project)|\n|list| List all of the resources and its associated instruments.|\n\n\n\n# Compatibility\nShould work across nearly all LMMS versions\n\nTested with python 3.8","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0ney%2Fmmp-remap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb0ney%2Fmmp-remap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0ney%2Fmmp-remap/lists"}