Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
mozaic_tips_and_tricks [2020/07/23 02:31] – [Include Snippets] Added optional var _ki | mozaic_tips_and_tricks [2020/07/30 19:01] – [Mozaic: Scripting Tips & Tricks] Added link to ‚Dynamic Letters for Labeling‚ section _ki | ||
---|---|---|---|
Line 11: | Line 11: | ||
* [[#Some Best Practice Tips]] | * [[#Some Best Practice Tips]] | ||
* [[# | * [[# | ||
+ | * [[#Dynamic Letters for Labeling]] | ||
* [[#Use the SHIFT Button to toggle to HELP View]] | * [[#Use the SHIFT Button to toggle to HELP View]] | ||
* [[#Use a Knob to toggle 16 Pads View to HELP View]] | * [[#Use a Knob to toggle 16 Pads View to HELP View]] | ||
Line 161: | Line 162: | ||
\\ | \\ | ||
+ | ===== Dynamic Letters for Labeling ===== | ||
+ | < | ||
+ | The NoteName function of Moazic can be used to dynamically output the letters A-G inside the label string definitions of Knobs, Pads or Logs. This allows to construct labels like ‚Bank A‘ to ‚Bank D‘, or ‚Preset A-1‘ to ‚Preset F-8‘. | ||
+ | |||
+ | < | ||
+ | @OnLoad | ||
+ | ShowLayout 2 | ||
+ | ABCDEFG | ||
+ | |||
+ | for i = 0 to 15 | ||
+ | row = 1 + (i>7) | ||
+ | id = i%8 | ||
+ | if (id < 7) | ||
+ | LabelPad i, {Pad },(NoteName ABCDEFG[id], | ||
+ | endif | ||
+ | endfor | ||
+ | @End | ||
+ | </ | ||
+ | |||
===== Use the SHIFT Button to toggle to HELP View ===== | ===== Use the SHIFT Button to toggle to HELP View ===== | ||
< | < |