WaveBeans / wavebeans

Audio Processing. On scale.
https://wavebeans.io
Apache License 2.0
24 stars 0 forks source link

Support parameters for running script #14

Open asubb opened 4 years ago

asubb commented 4 years ago

It would be nice if CLI tool would support parameters that can be passed into a script

The call may look something like this:

wavebeans-cli --execute "<script content here>" --parameter a=10 --parameter b="string"

The parameters are stored into a script context and provide access via functions

So the script would look like this

val freq = intParam("a")
val file = stringParam("b")

freq.sine().trim(1000).toCsv("file://$file")