This file contains hidden or 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
| const secretMachine = Machine({ | |
| id: 'secret', | |
| initial: 'wait', | |
| context: { | |
| secret: '42' | |
| }, | |
| states: { | |
| wait: { | |
| after: { | |
| 1000: 'reveal' |
This file contains hidden or 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
| navigator.requestMIDIAccess().then( | |
| (midiAccess) => { | |
| for(var input of midiAccess.inputs.values()){ | |
| input.onmidimessage = (msg) => { | |
| // weed out the timing messages | |
| if (msg.data.length > 0 && msg.data[0] !== 248){ | |
| console.log(msg) | |
| } | |
| } | |
| // real quick, send a midi message |
This file contains hidden or 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
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| * @flow | |
| */ | |
| import React, { Component } from 'react'; | |
| import { | |
| AppRegistry, | |
| StyleSheet, |