diff --git a/build_vst_plugin.ps1 b/build_vst_plugin.ps1 new file mode 100644 index 0000000..9977f3d --- /dev/null +++ b/build_vst_plugin.ps1 @@ -0,0 +1,14 @@ + if ($args -contains "native") { + + Write-Host "Build VST with ASM synth" + go build -buildmode=c-shared -tags="plugin","native" -o sointu-vsti.dll .\cmd\sointu-vsti\ + + } elseif ($args -contains "go") { + + Write-Host "Build VST with GO synth" + go build -buildmode=c-shared -tags="plugin" -o sointu-vsti.dll .\cmd\sointu-vsti\ + + } else { + Write-Host "specify either ""native"" or ""go"" argument." + } + diff --git a/build_vst_plugin_native.ps1 b/build_vst_plugin_native.ps1 deleted file mode 100644 index 0b7118f..0000000 --- a/build_vst_plugin_native.ps1 +++ /dev/null @@ -1 +0,0 @@ -go build -buildmode=c-shared -tags="plugin","native" -o sointu-vsti.dll .\cmd\sointu-vsti\ \ No newline at end of file diff --git a/write_envelexp_wav.ps1 b/write_envelexp_wav.ps1 index e69de29..c7363e1 100644 --- a/write_envelexp_wav.ps1 +++ b/write_envelexp_wav.ps1 @@ -0,0 +1,19 @@ +cd build +ninja sointu +cd .. + +if ($LASTEXITCODE -eq 0) { + if ($args -contains "native") { + + Write-Host "Render with ASM synth" + go run -tags=native .\cmd\sointu-play\main.go -w .\examples\envelopexp_dev.yml + + } elseif ($args -contains "go") { + + Write-Host "Render with GO synth" + go run .\cmd\sointu-play\main.go -w .\examples\envelopexp_dev.yml + + } else { + Write-Host "specify either ""native"" or ""go"" argument." + } +}