mozaic_tips_and_tricks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 _kimozaic_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]]
 +  * [[#Calculate Standard Chords from a Root Note]]
  
 ===== Two dimensional Arrays ===== ===== Two dimensional Arrays =====
Line 213: Line 214:
 </code> </code>
 {{tag>Mozaic midi_scripting}} {{tag>Mozaic midi_scripting}}
 +
 +===== 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.
 +
 +<code>
 +@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
 +</code>
  • mozaic_tips_and_tricks.txt
  • Last modified: 2024/04/23 19:07
  • by _ki