Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
mozaic_tips_and_tricks [2020/02/04 19:19] – Changed overview links to local links _ki | mozaic_tips_and_tricks [2020/02/25 10:01] – Added tip for calculating standard chords. wim | ||
---|---|---|---|
Line 12: | Line 12: | ||
* [[#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]] | ||
+ | * [[# | ||
===== Two dimensional Arrays ===== | ===== Two dimensional Arrays ===== | ||
Line 213: | Line 214: | ||
</ | </ | ||
{{tag> | {{tag> | ||
+ | |||
+ | ===== Calculate Standard Chords from a Root Note ==== | ||
+ | |||
+ | This is a compact way to build standard chords from just a root note. It turns out that for standard western scales such as Major, Minor, Dorian, Phrygian, etc, normal chord notes can be found by starting at the root and counting up in steps of three semitones then quantizing up to the next scale tone. Repeat this for the number of notes you want in the chord (triad (3), seventh (4), ninth (5), eleventh (6), 13th (7). | ||
+ | |||
+ | Here’s a code snippet that efficiently creates a chord of “notes” degree from an incoming MIDI Note. Code to do something with that array would obviously have to be added. | ||
+ | |||
+ | < | ||
+ | @OnMIDINote | ||
+ | //set “notes” to the number of notes wanted in the chord before this event triggers! | ||
+ | chordNotes[0] = ScaleQuantize MIDINote | ||
+ | for i = 1 to (notes - 1) | ||
+ | chordNotes[i] = ScaleQuantize chordNotes[i-1] + 3 | ||
+ | endfor | ||
+ | @End | ||
+ | </ |