UNPKG

chromatone-theory

Version:

Music theory needed to create chromatone empowered apps

19 lines (17 loc) 591 B
import { getCircleCoord } from './calculations.js' import { pitchFreq, pitchColor, freqColor, freqPitch, pitchNoteOctave, } from './index.js' const testNote = -3 console.log('testNote:', testNote) console.log('pitchNoteOctave:', pitchNoteOctave(testNote)) console.log('pitchFreq:', pitchFreq(testNote)) console.log('pitchColor:', pitchColor(testNote)) console.log('freqPitch:', freqPitch(pitchFreq(testNote))) console.log('freqColor:', freqColor(pitchFreq(testNote))) console.log('Coord:', getCircleCoord(3, 12, 450, 1000)) console.log('Coord:', getCircleCoord(3, 16, 450, 1000))