ποΈSettings
Provide your user with settings to customise your plugin.


Manifest schema

plugin.json snippetRetrieving settings in code

Reacting to buttons and using statuses


Last updated
Was this helpful?
Was this helpful?
{
"settings": {
"foo": {
"label": "A text field",
"type": "text",
"fallback": "FOO"
},
"bar": {
"label": "A password field",
"type": "password"
},
"baz": {
"label": "Press this button",
"type": "button"
},
"qux": {
"label": "We are currently connected",
"type": "status"
},
"quux": {
"label": "Activate secret sauce",
"type": "toggle"
},
"quuz": {
"label": "Enter your favourite number",
"type": "integer",
"min": 1,
"max": 100
},
"corge": {
"label": "Set the curve",
"type": "slider",
"min": 1,
"max": 10
}
}
}import * as midiMixer from "midi-mixer-plugin";
$MM.getSettings().then((settings) => {
console.log("Current settings:", settings);
});$MM.onSettingsButtonPress("baz", () => {
console.log("The baz button was pressed!");
});$MM.onSettingsButtonPress("baz", () => {
$MM.setSettingsStatus("qux", "9001");
});