Introduce some new commands and reduce their names to mostly single letter

This commit is contained in:
2020-04-17 20:48:10 +02:00
parent 3b8177de5a
commit cde7998c1b
5 changed files with 24 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ import org.pf4j.Extension
class SynthModule : HybridModuleProvider("smnp.audio.synth") {
override fun functions() = listOf(WaveFunction(), SynthFunction())
override fun files() = listOf("envelope.mus")
override fun files() = listOf("envelope.mus", "command.mus")
override fun onModuleLoad(environment: Environment) {
Synthesizer.init()

View File

@@ -0,0 +1,15 @@
function o(overtones: list<float>) {
return { overtones -> overtones };
}
function e(envelope: map<string><>) {
return { envelope -> envelope };
}
function t(tuning: float) {
return { tuning -> tuning };
}
function bpm(bpm: int) {
return { bpm -> bpm };
}