Skip to content
Snippets Groups Projects
Commit c9486af6 authored by jvoigts's avatar jvoigts
Browse files

added simple example processor

this should work as very simple filter for one channel. The global var is shared between channels atm so it behaves weirdly on multi-chaannel data
parent 35e92cbf
No related branches found
No related tags found
No related merge requests found
# set things up here
#global last=100
# this function is called once per buffer upddate and is passed
# the current buffer in data
#data[:]=sin(data/tscale)*200;
function oe_process!(data)
global last;
f=0.05;
for i in eachindex(data)
data[i]=f*data[i] + (1-f)*last;
last = data[i];
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment