Examples / music-chord
music-chord.json
targets v0.34.0 3 entities 4 schemas
A pattern step and a free-time note that each sound C major: pitch 60 plus intervals [4, 7]. The next step is G minor ([3, 7] from 67). The last step is C alone. rig.audio.analysis asks for live chroma, key, and chord. Those values are not in the file.
Speaks
rig.audio.analysis · rig.meta.named · rig.music.note · rig.music.pattern
Document
Validates under npm run check —
raw file ·
open in RigPlayer —
drop it in, press play, remix it, share the link.
{
"rig": "0.34.0",
"document": {
"title": "Chord on a step and a note"
},
"entities": [
{
"id": "pattern",
"components": {
"rig.meta.named": {
"name": "Triads",
"stableId": "pattern"
},
"rig.music.pattern": {
"rootNote": 60,
"scale": "major",
"steps": [
{
"active": true,
"pitch": 60,
"intervals": [
4,
7
]
},
{
"active": true,
"pitch": 67,
"intervals": [
3,
7
]
},
{
"active": false
},
{
"active": true,
"pitch": 60
}
]
}
}
},
{
"id": "roll",
"components": {
"rig.meta.named": {
"name": "C major",
"stableId": "roll"
},
"rig.music.note": {
"pitch": 60,
"start": 0,
"duration": 1,
"intervals": [
4,
7
]
}
}
},
{
"id": "listen",
"components": {
"rig.audio.analysis": {
"source": "input",
"bandCount": 16,
"features": [
"chroma",
"key",
"chord"
]
}
}
}
]
}