Compare commits

..

2 Commits

Author SHA1 Message Date
Christopher Arndt 5d41cf4c53 Add stub readme and license file
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
2024-04-20 02:54:56 +02:00
Christopher Arndt 2f00720d2b Add nimble tasks and example 'amp' plugin
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
2024-04-20 02:50:10 +02:00
1 changed files with 38 additions and 38 deletions

View File

@ -45,9 +45,9 @@ proc activate(instance: Lv2Handle) {.cdecl.} =
proc run(instance: Lv2Handle; nSamples: cuint) {.cdecl.} = proc run(instance: Lv2Handle; nSamples: cuint) {.cdecl.} =
let amp = cast[ptr Amp](instance) let gain = cast[ptr Amp](instance)
for pos in 0 ..< nSamples: for pos in 0 ..< nSamples:
amp.output[pos] = amp.input[pos] * db2coeff(amp.gain[]) gain.output[pos] = gain.input[pos] * db2coeff(gain.gain[])
proc deactivate(instance: Lv2Handle) {.cdecl.} = proc deactivate(instance: Lv2Handle) {.cdecl.} =