PLAYA (pronounced ËpleÉŞÉ) is a framework for musical composition. It allows creating custom music algorithms, musical phrases, percussion rhythms, harmonic sequences and more.
Install
npm install --save playa
Usage
ES6 Modules
import { Chord, Key, Rhythm } from 'playa';
import * as Playa from 'playa';
Common JS (Node)
const { Chord, Key, Rhythm } = require('playa');
const Playa = require('playa');
Example
import { Scale, createMotif } from 'playa';
const scale = new Scale('A', Scale.Major);
createMotif(scale.notes, ['4n', '2n', '8nt']);
Guides
Interactive guide here which uses Tone.js for the sound.
An example of using PLAYA with P5 and Tone.js - PLAYA meets P5
Documentation
Can be found here.
Templates
License
Open Software License 3.0