Compare commits

..

2 Commits

Author SHA1 Message Date
Christopher Arndt 46e4fda581 Add stub readme and license file
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
2024-04-20 02:59:22 +02:00
Christopher Arndt cf10456f18 Add nimble tasks and example 'amp' plugin
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
2024-04-20 02:59:22 +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 gain = cast[ptr Amp](instance) let amp = cast[ptr Amp](instance)
for pos in 0 ..< nSamples: for pos in 0 ..< nSamples:
gain.output[pos] = gain.input[pos] * db2coeff(gain.gain[]) amp.output[pos] = amp.input[pos] * db2coeff(amp.gain[])
proc deactivate(instance: Lv2Handle) {.cdecl.} = proc deactivate(instance: Lv2Handle) {.cdecl.} =