2.1.0 • Published 2 years ago
playa v2.1.0
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 playaUsage
ES6 Modules
import { Chord, Key, Rhythm } from 'playa';
// or everything
import * as Playa from 'playa';Common JS (Node)
const { Chord, Key, Rhythm } = require('playa');
// or everything
const Playa = require('playa');Example
import { Scale, createMotif } from 'playa';
const scale = new Scale('A', Scale.Major);
createMotif(scale.notes, ['4n', '2n', '8nt']);
/* =>
[
{ time: 0, dur: 480, next: 480, midi: 73, note: 'C#4', isRest: false },
{ time: 480, dur: 960, next: 1440, midi: 80, note: 'G#4', isRest: false },
{ time: 1440, dur: 160, next: 1600, midi: 74, note: 'D4', isRest: false }
]
*/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
2.1.0
2 years ago
2.0.0
3 years ago
2.0.0-next.2
4 years ago
2.0.0-next.1
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
2.0.0-next.0
5 years ago
1.0.0
5 years ago
0.0.29
5 years ago
0.0.28
6 years ago
0.0.26
6 years ago
0.0.27
6 years ago
0.0.25
6 years ago
0.0.23
6 years ago
0.0.24
6 years ago
0.0.20
6 years ago
0.0.21
6 years ago
0.0.22
6 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.16
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.12
6 years ago
0.0.13
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.5
6 years ago
0.0.6
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.4
6 years ago
0.0.1
6 years ago