parse_synth_definition

Function parse_synth_definition 

Source
pub fn parse_synth_definition(input: &str) -> Result<Value>
Expand description

Parse synth definition: synth waveform { params } OR synth plugin. { params } Returns a Map with type=“synth”, waveform/plugin info, and parameters

Supported syntaxes:

  • synth “sine” { attack: 0.1 }
  • synth plugin.acid.synth { waveform: “sine” }
  • synth { waveform: “sine”, attack: 0.1 } // waveform in params