Examples / synth-voice
synth-voice.json
targets v1.4.0 6 entities 6 schemas
A saw at MIDI 36 into a 24 dB/octave low-pass, then a level stage written closed (gain 0). An exponential envelope opens that level and adds up to 2400 Hz to the 400 Hz cutoff. The running sample stays out of the file. The faceplate is a separate document - docs/music.md.
Speaks
rig.meta.named · rig.mod.binding · rig.synth.amplifier · rig.synth.envelope · rig.synth.filter · rig.synth.oscillator
Document
Validates under npm run check —
raw file ·
open in RigPlayer —
drop it in, press play, remix it, share the link.
{
"rig": "1.4.0",
"document": {
"title": "Subtractive voice"
},
"entities": [
{
"id": "oscillator",
"components": {
"rig.meta.named": {
"name": "Oscillator",
"stableId": "oscillator"
},
"rig.synth.oscillator": {
"waveform": "saw",
"pitch": 36
}
}
},
{
"id": "filter",
"components": {
"rig.meta.named": {
"name": "Filter",
"stableId": "filter"
},
"rig.synth.filter": {
"mode": "low-pass",
"cutoffHertz": 400,
"resonance": 0.35,
"decibelsPerOctave": 24,
"input": "oscillator"
}
}
},
{
"id": "amplifier",
"components": {
"rig.meta.named": {
"name": "Amplifier",
"stableId": "amplifier"
},
"rig.synth.amplifier": {
"gain": 0,
"input": "filter"
}
}
},
{
"id": "envelope",
"components": {
"rig.meta.named": {
"name": "Envelope",
"stableId": "envelope"
},
"rig.synth.envelope": {
"attackSeconds": 0.01,
"decaySeconds": 0.25,
"sustain": 0.6,
"releaseSeconds": 0.4,
"curve": "exponential"
}
}
},
{
"id": "env-gain",
"components": {
"rig.mod.binding": {
"source": "envelope",
"target": "amplifier",
"propertyKey": "gain",
"depth": 1,
"additive": false
}
}
},
{
"id": "env-cutoff",
"components": {
"rig.mod.binding": {
"source": "envelope",
"target": "filter",
"propertyKey": "cutoffHertz",
"depth": 2400,
"additive": true
}
}
}
]
}