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
// A Chord react (or call it preact) component that plays a combination of 3 oscillators | |
// And generates various chords | |
// <Chord chordname="C Major" frequencies="196.00, 261.63, 329.63" type="sine" /> | |
import { h, Component } from 'preact'; | |
import style from './style'; | |
const audioContext = new (window.AudioContext || window.webkitAudioContext); | |
export default class Chord extends Component { |