{"id":20823069,"url":"https://github.com/madskjeldgaard/launchpadmini-sc","last_synced_at":"2026-03-14T15:33:00.248Z","repository":{"id":200667770,"uuid":"705325729","full_name":"madskjeldgaard/launchpadmini-sc","owner":"madskjeldgaard","description":"SuperCollider interface for the Launchpad Mini controller","archived":false,"fork":false,"pushed_at":"2025-02-09T20:12:34.000Z","size":1254,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-12T06:42:10.808Z","etag":null,"topics":["launchpad","launchpad-mini","novation-launchpad","supercollider"],"latest_commit_sha":null,"homepage":"","language":"SuperCollider","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madskjeldgaard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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},"funding":{"custom":["https://ko-fi.com/madskjeldgaard"]}},"created_at":"2023-10-15T17:49:15.000Z","updated_at":"2025-02-09T20:12:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"608144d6-29e3-4d73-814c-eb5a5c769ea0","html_url":"https://github.com/madskjeldgaard/launchpadmini-sc","commit_stats":null,"previous_names":["madskjeldgaard/launchpadmini-sc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/madskjeldgaard/launchpadmini-sc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madskjeldgaard%2Flaunchpadmini-sc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madskjeldgaard%2Flaunchpadmini-sc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madskjeldgaard%2Flaunchpadmini-sc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madskjeldgaard%2Flaunchpadmini-sc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madskjeldgaard","download_url":"https://codeload.github.com/madskjeldgaard/launchpadmini-sc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madskjeldgaard%2Flaunchpadmini-sc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27787598,"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","status":"online","status_checked_at":"2025-12-17T02:00:08.291Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["launchpad","launchpad-mini","novation-launchpad","supercollider"],"created_at":"2024-11-17T22:17:15.213Z","updated_at":"2025-12-17T22:57:16.079Z","avatar_url":"https://github.com/madskjeldgaard.png","language":"SuperCollider","funding_links":["https://ko-fi.com/madskjeldgaard"],"categories":[],"sub_categories":[],"readme":"# LaunchpadMini-SC\n\n![launchpad mini mk1 in action](launchpadmini.png) \n\nA simple interface for the Launchpad Mini controller to be used in SuperCollider. It allows setting pad colors and easily registering callbacks.\n\nNOTE: It's only tested with the MK1 version, but it should work with the MK2 version as well. Please let me know if it doesn't.\n\n## Features\n\n- Easily connect the device\n- Set colors of all pads\n- Register callbacks for all pads\n- GUI for simulating the hardware in case you don't have a controller connected.\n\n## Installation\n\n### Quark\n\nLaunchpadMini-SC is available as a Quark. To install it, run the following in SuperCollider:\n\n```supercollider\nQuarks.install(\"https://github.com/madskjeldgaard/launchpadmini-sc\");\n```\n\n## Examples\n\n### Callback for button on the grid\n\n```supercollider\nl = l ? LaunchpadMiniMk1.new();\n\nl.setFunc(x: 3, y: 5, func: {|...args|\n    var launchpad = args[0];\n    var onOrOff = args[1];\n    var x = args[2];\n    var y = args[3];\n    var velocity = args[4];\n\n    // Set the color of this pad\n    if(onOrOff == \\on, {\n        launchpad.setColor(x: x, y: y, color: 127);\n    }, {\n        launchpad.setColor(x: x, y: y, color: 0);\n    });\n\n    \"You just pressed a button on the grid. Here are all the arguments you get in a callback:\".postln;\n    args.postln;\n});\n```\n\n### Callback for button on top row (the numbered buttons)\n\n```supercollider\nl = l ? LaunchpadMiniMk1.new();\n\nl.setFunc(x: 3, func: {|...args|\n    \"You just pressed a button on the top row. Here are all the arguments you get in a callback:\".postln;\n    args.postln;\n});\n```\n\n### Callback for button on right column (the lettered buttons)\n\n```supercollider\nl = l ? LaunchpadMiniMk1.new();\n\nl.setFunc(y: 2, func: {|...args|\n    \"You just pressed a button on the right column. Here are all the arguments you get in a callback:\".postln;\n    args.postln;\n});\n```\n\n### Setting colors of pads\n\nColors are 0-127. The launchpad has a slightly weird way of dealing with this – in the course of the range, each color is made brighter, and then turned off, so some of these values will actually turn off the color.\n\n```supercollider\nl = l ? LaunchpadMiniMk1.new();\n\n// Set the color of a pad\nl.setColor(x: 3, y: 5, color: 127);\n\n// There's also a special function for setting the colors around a pad\nl.setColorAroundPad(x: 3, y: 5, color: 39, distance: 2);\n\n// Set the color of a pad in the top row\nl.setColorTop(x: 3, color: 55);\n\n// Set the color of a pad in the right column\nl.setColorSide(y: 2, color: 100);\n\n// Set all colors\nl.setAllColors(color: 11);\n```\n\n### Messing with colors on the Launchpad Mini in a routine\n\n```supercollider\nl = LaunchpadMiniMk1.new()\n\n// Randomize colors\n(\nr{\n    loop{\n        // Randomize color of all 8x8 grid buttons\n        8.do{|x|\n            8.do{|y|\n                l.setColor(x,y,rrand(0,127));\n                (rrand(0.001,0.01)).wait;\n            }\n        }\n\n\n    }\n}.play;\n)\n\n```\n\n### GUI\n\n```supercollider\nl = LaunchpadMiniMk1.new();\n\nl.gui;\n\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadskjeldgaard%2Flaunchpadmini-sc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadskjeldgaard%2Flaunchpadmini-sc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadskjeldgaard%2Flaunchpadmini-sc/lists"}