This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os.log | |
import Foundation | |
import PlaygroundSupport | |
let TREE = "#" | |
let SLOPES = [(1,1), | |
(3,1), | |
(5,1), | |
(7,1), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Convert midi message into number | |
C-2 -> 0 | |
G8 - 127 | |
Supports Korg/Roland/synths with alternative starting octaves | |
* Example: In korg/roland synths, the low C is C-1(#0) and high G is G9(#127) | |
''' |
OlderNewer