Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| note-root-octave [2024/03/07 22:31] – steve.wang | note-root-octave [2024/03/18 18:50] (current) – steve.wang | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ** Overview: ** This tutorial teaches you how to use three different things, rootMaps, chordMaps, noteMaps, in Konduktiva to get the same effect in 3 different ways. | ** Overview: ** This tutorial teaches you how to use three different things, rootMaps, chordMaps, noteMaps, in Konduktiva to get the same effect in 3 different ways. | ||
| - | **Things To Note:** This tutorial assumes you have already installed Konduktiva successfully using the [[https:// | ||
| - | ===== rootMaps ===== | + | **Things To Note:** This tutorial assumes you have already installed Konduktiva successfully using the [[https:// |
| + | <code javascript> | ||
| + | const K = require(' | ||
| + | let e = K.setUpMusicalEnvironment(K.defaultConfigurationObject, | ||
| + | </ | ||
| + | rootMaps, chordMaps and, noteMaps work are combined to get the final midi note sent. I will use an example to explain it. | ||
| + | <code javascript> | ||
| + | let root = ' | ||
| + | let octave = 8 | ||
| + | let note = 6 | ||
| + | |||
| + | let finalNote = K.Note.midi(root + octave) + note | ||
| + | console.log(finalNote) //144 | ||
| + | </ | ||
| + | |||
| + | It is basically just an equation. So, for instance we want the result 12 there are a few different ways can go about this. | ||
| + | |||
| + | <code javascript> | ||
| + | //Using root and octave: | ||
| + | K.Note.midi(' | ||
| + | |||
| + | //Using note: | ||
| + | K.Note.midi(' | ||
| + | </ | ||