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
/** | |
* my enum implementation | |
* @param values Object of key/value or Array of just keys | |
* @param locked boolean, resulting Object will not be modifiable | |
* @returns {Readonly<{}>} use like a regular enum look up | |
*/ | |
function createEnum(values = {} | [], locked = false) { | |
const dictionary = {}; | |
let entry, i = 0 | |
for ( entry in values ) { |
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
"Convenient for Class building. Can set default values using | |
ifAbsent: | |
" | |
| x | | |
x := #( #A !Attack #D !Decay #S !Sustain #R !Release ). | |
x expandToFastIdentityDictionary at: #A ifAbsent: [0.01] |
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
/** | |
* Contextual pop up menu in a 4x4 grid for selecting midi channel | |
* by CAV | |
**/ | |
import * as React from 'react'; | |
import Menu from '@material-ui/core/Menu'; | |
import Grid from '@material-ui/core/Grid'; | |
import Button from '@material-ui/core/Button'; | |
import InputLabel from '@material-ui/core/InputLabel'; |
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
(inputs at: 1) start: 0 s | |
"Parameters that follow will be passed as ?GreenVariables" | |
voiceNumber: ?VoiceNumber |