Plugin Examples
Working examples for UI actions, score edits, and a full translation plugin.
Example: add a menu action and insert a note
import roneat_api.ui
import roneat_api.score
def start_my_plugin():
roneat_api.ui.show_toast("Plugin started successfully!", "success")
roneat_api.ui.add_menu_item("TEST_TOOLS", "Insert Magic Note", do_magic)
def do_magic():
roneat_api.score.insert_at_cursor("\nB1 0.00 1.00")
def cleanup_my_plugin():
passExample: build a language translation plugin
import roneat_api.ui
import core.i18n
def on_app_start():
core.i18n.translations["fr"] = {
"Score Editor": "Éditeur de Partition",
"Audio AI": "IA Audio",
"Settings": "Paramètres",
"Plugins": "Extensions",
"Save Project": "Sauvegarder",
"Load Project": "Charger",
"Ready": "Prêt",
"Plugin Manager": "Gestionnaire de Plugins"
}
roneat_api.ui.set_language("fr")
def on_unload():
passExample: play a test tone
Example: change the accent color
Why this works
Example ideas
Related guides
Last updated
Was this helpful?
