Hi!
I'd like to introduce you to Jill, a very simple jack client to get you started with signal processing very quickly.
It works like this:
nimble install jill
# mydsp.nim
withJack (in1, in2), (out1, out2) =
for i in 0..in1.len:
# just passing through
out1[i] - in1[i]
out2[i] - in2[i]
More information: https://github.com/capocasa/jill
It is compatible with the fur library, and future planned DSP libraries such as oscillators- and any library that can work on float samples. It uses openArrays internally so it's safe and zero-copy. Nim power!
I hope it is useful to you!
Kudos to the great jacket low level jack library this is based on!
Fixed! Sorry, rushed announce...
No, no arrow operator. Just assigning samples from an openArray[float32] to a `var openArray[float32]. Could also use memCopy or anything that can work with chunks of floats.