{"id":13494737,"url":"https://github.com/mungewell/mpd-utils","last_synced_at":"2025-03-28T14:31:57.903Z","repository":{"id":137281906,"uuid":"137307317","full_name":"mungewell/mpd-utils","owner":"mungewell","description":"Scripts for configuring the Akai MPD218 Midi Pad Controller","archived":false,"fork":false,"pushed_at":"2023-10-20T02:39:07.000Z","size":13903,"stargazers_count":84,"open_issues_count":2,"forks_count":9,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-10-31T09:37:11.493Z","etag":null,"topics":["akai","akaipro","drumpad","midi-controller","mpc","mpd218","mpk-mini"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mungewell.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}},"created_at":"2018-06-14T04:47:53.000Z","updated_at":"2024-10-09T17:51:00.000Z","dependencies_parsed_at":"2024-01-16T09:53:17.386Z","dependency_job_id":null,"html_url":"https://github.com/mungewell/mpd-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mungewell%2Fmpd-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mungewell%2Fmpd-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mungewell%2Fmpd-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mungewell%2Fmpd-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mungewell","download_url":"https://codeload.github.com/mungewell/mpd-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246046104,"owners_count":20714906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["akai","akaipro","drumpad","midi-controller","mpc","mpd218","mpk-mini"],"created_at":"2024-07-31T19:01:27.655Z","updated_at":"2025-03-28T14:31:52.892Z","avatar_url":"https://github.com/mungewell.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# mpd-utils\n\nScripts for configuring the Akai MPD218 Midi Pad Controller\n\nThe MPD218 is a small/low-cost MIDI pad controller, with touch sensitive\npads and dials. It can be used (with a PC/Laptop) as a drum machine or\na controller for a Digital Audio Workshop.\n\nThe configuration file is a propriatory format and specific to the MPD218.\n\n'mpd218.py' is a command line application which can decode/encode the\nconfiguration files. It may be possible to adjust/tailor the script\nfor other Akai devices.\n\nRequires 'construct' (v2.9):\nhttps://github.com/construct/construct\n\nUsing Construct allows the file format to be defined in one place, allowing\ndecoding/encoding from the same defination. The defination is precise and\nfairly human readable.\n\n```\n$ python3 mpd218.py -h\nUsage: mpd218.py [options] FILENAME\n\nOptions:\n  -h, --help            show this help message and exit\n  -o OUTFILE, --output=OUTFILE\n                        write data to OUTFILE\n  -v, --verbose         \n  -d, --dump            dump configuration to text\n  -p PRESET, --preset=PRESET\n                        change the profile number to PRESET\n  -t TEMPO, --tempo=TEMPO\n                        change the tempo to TEMPO\n  -n NAME, --name=NAME  change the profile name to NAME\n  -X, --division        Interactively change the Division\n  -S, --swing           Interactively change the Swing\n  -D DIAL, --dial=DIAL  Interactively configure a Dial\n  -P PAD, --pad=PAD     Interactively configure a Pad\n  -M SCALE, --scale=SCALE\n                        Interactively configure multiple Pads as a scale\n```\n\n## Optional features (require other Python 'libraries')\n\nOptionally the settings for Pads/Dials can be interactively editted.\n\nRequires:\nhttps://github.com/jeffrimko/Qprompt\n\nExample:\n```\n$ python3 mpd218.py -P 1 example.mpd218 \n-- MENU: Pad 1 (Bank A-1): --\n  (0) NOTE\n  (1) PROG\n  (2) BANK\n[?] Type [0]: \n[?] Channel [10]: \n[?] Note [36]: \n-- MENU --\n  (0) MOMENTARY\n  (1) TOGGLE\n[?] Trigger [0]: \n-- MENU --\n  (0) OFF\n  (1) CHANNEL\n  (2) POLY\n[?] Aftertouch [1]: \n```\n\nOptionally multiple Pads can be programmed as a scale.\n\nRequires:\nhttps://github.com/charlottepierce/music_essentials\n\nExample:\n```\n$ python3 mpd218.py -v -M 1 -o scale.mpd218 example.mpd218\nReading example.mpd218...\n-- MENU: Pad 1 (Bank A-1): --\n  (0) major\n  (1) maj\n  (2) minor\n  (3) min\n  (4) natural minor\n  (5) nat min\n  (6) melodic minor\n  (7) dorian\n  (8) locrian\n  (9) lydian\n  (10) mixolydian\n  (11) phrygian\n  (12) major pentatonic\n  (13) minor pentatonic\n  (14) chromatic\n[?] Scale: 0\n[?] Note [36]: \n[?] Count [0]: \n[?] Config all as per Pad 1? [n]: y\nSetting Pad 1 (Bank A-1) to 36 (C2)\nSetting Pad 2 (Bank A-2) to 38 (D2)\nSetting Pad 3 (Bank A-3) to 40 (E2)\nSetting Pad 4 (Bank A-4) to 41 (F2)\nSetting Pad 5 (Bank A-5) to 43 (G2)\nSetting Pad 6 (Bank A-6) to 45 (A2)\nSetting Pad 7 (Bank A-7) to 47 (B2)\nSetting Pad 8 (Bank A-8) to 48 (C3)\nwriting scale.mpd218...\n```\n\n## Uploading to the device\n\nThe configuration file is actually a SysEx 'code plug' and can be\nuploaded (on Linux) with the ALSA tools. The configuration will\nbe loaded into it's specified preset ('-p PRESET' as configured above).\n\nIf the preset is current one, changes to configurations are imediately\nactive on the device. A little oddly current dial values persist between\npreset changes (even if they are now being directed somewhere else).\n```\n$ amidi -l\nDir Device    Name\nIO  hw:1,0,0  MPD218 MIDI 1\n\n$ amidi -p hw:1,0,0 -s example.mpd218\n```\n\n## Downloading from the device\n\nThis is a little more complicated, you need to send a sysex command\nand store the response (note: this should be exactly 549 bytes). Changing\nthe last '01' (0x01..0x10) will download each of the 16 presets.\n\n```\n$ amidi -p hw:1,0,0 -S 'F0 47 00 34 12 00 01 01 F7' -r recall_1.mpd218\n^C\n549 bytes read\n$ hexdump -Cv recall_1.mpd218\n00000000  f0 47 00 34 10 04 1d 01  65 78 61 6d 70 6c 65 31  |.G.4....example1|\n00000010  00 3c 04 32 00 09 24 01  01 00 00 00 00 09 25 01  |.\u003c.2..$.......%.|\n00000020  01 00 00 00 00 09 26 01  01 00 00 00 00 09 27 01  |......\u0026.......'.|\n00000030  01 00 00 00 00 09 28 01  01 00 00 00 00 09 29 01  |......(.......).|\n00000040  01 00 00 00 00 09 2a 01  01 00 00 00 00 09 2b 01  |......*.......+.|\n00000050  01 00 00 00 00 09 2c 01  01 00 00 00 00 09 2d 01  |......,.......-.|\n00000060  01 00 00 00 00 09 2e 01  01 00 00 00 00 09 2f 01  |............../.|\n00000070  01 00 00 00 00 09 30 01  01 00 00 00 00 09 31 01  |......0.......1.|\n00000080  01 00 00 00 00 09 32 01  01 00 00 00 00 09 33 01  |......2.......3.|\n00000090  01 00 00 00 00 09 34 01  01 00 00 00 00 09 35 01  |......4.......5.|\n000000a0  01 00 00 00 00 09 36 01  01 00 00 00 00 09 37 01  |......6.......7.|\n000000b0  01 00 00 00 00 09 38 01  01 00 00 00 00 09 39 01  |......8.......9.|\n000000c0  01 00 00 00 00 09 3a 01  01 00 00 00 00 09 3b 01  |......:.......;.|\n000000d0  01 00 00 00 00 09 3c 01  01 00 00 00 00 09 3d 01  |......\u003c.......=.|\n000000e0  01 00 00 00 00 09 3e 01  01 00 00 00 00 09 3f 01  |......\u003e.......?.|\n000000f0  01 00 00 00 00 09 40 01  01 00 00 00 00 09 41 01  |......@.......A.|\n00000100  01 00 00 00 00 09 42 01  01 00 00 00 00 09 43 01  |......B.......C.|\n00000110  01 00 00 00 00 09 44 01  01 00 00 00 00 09 45 01  |......D.......E.|\n00000120  01 00 00 00 00 09 46 01  01 00 00 00 00 09 47 01  |......F.......G.|\n00000130  01 00 00 00 00 09 48 01  01 00 00 00 00 09 49 01  |......H.......I.|\n00000140  01 00 00 00 00 09 4a 01  01 00 00 00 00 09 4b 01  |......J.......K.|\n00000150  01 00 00 00 00 09 4c 01  01 00 00 00 00 09 4d 01  |......L.......M.|\n00000160  01 00 00 00 00 09 4e 01  01 00 00 00 00 09 4f 01  |......N.......O.|\n00000170  01 00 00 00 00 09 50 01  01 00 00 00 00 09 51 01  |......P.......Q.|\n00000180  01 00 00 00 00 09 52 01  01 00 00 00 00 09 53 01  |......R.......S.|\n00000190  01 00 00 00 00 01 03 00  7f 00 00 01 00 01 09 00  |................|\n000001a0  7f 00 00 02 00 01 0c 00  7f 00 00 03 00 01 0d 00  |................|\n000001b0  7f 00 00 04 00 01 0e 00  7f 00 00 05 00 01 0f 00  |................|\n000001c0  7f 00 00 06 00 01 10 00  7f 00 00 07 00 01 11 00  |................|\n000001d0  7f 00 00 08 00 01 12 00  7f 00 00 09 00 01 13 00  |................|\n000001e0  7f 00 00 0a 00 01 14 00  7f 00 00 0b 00 01 15 00  |................|\n000001f0  7f 00 00 0c 00 01 16 00  7f 00 00 0d 00 01 17 00  |................|\n00000200  7f 00 00 0e 00 01 18 00  7f 00 00 0f 00 01 19 00  |................|\n00000210  7f 00 00 10 00 01 1a 00  7f 00 00 11 00 01 1b 00  |................|\n00000220  7f 00 00 12 f7                                    |.....|\n00000225\n```\n\n## Other Devices\n\nMPK Mini (Mk1 and Mk2) now supported by 'mpk_mini.py' script. Presets\nare number 1..4, setting 0 will result in config be uploaded to RAM \nand not stored as a preset.\n\nTested on MK2, Information for MK1 from:\nhttps://github.com/gljubojevic/akai-mpk-mini-editor\n\nIt looks like several other Akai devices follow similar schemes, in\nparticular the MPD226, MPK-Mini (see above)  and MPK2. \n\nI got my hands on a MPD266, the preset structure is almost correct. You can\nread presets from the device with (00 - current, 01-14 presets).\n```\n# amidi -p hw:1,0,3 -t 1 -S 'F0 47 00 35 12 00 01 00 F7' -r test.syx\n```\n\nRaise a bug if you'de like to see a similar script for your device...\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmungewell%2Fmpd-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmungewell%2Fmpd-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmungewell%2Fmpd-utils/lists"}