Skip to content
Permalink
Browse files

WIP: Add Decimator Engine

This expects otis or some other norns library w/ the decimator engine to have been installed.

Not currently working.
  • Loading branch information
rbxbx committed Mar 9, 2020
1 parent bfb5c43 commit f41ba7cf08061db6780e38e27f42a6c33092cd47
Showing with 11 additions and 0 deletions.
  1. +3 −0 beets.lua
  2. +8 −0 lib/libbeets.lua
@@ -6,6 +6,9 @@
--
-- K2 : Quantized mute toggle
-- K3 : Instant mute while held

engine.name = "Decimator"

local BeatClock = require 'beatclock'
local Beets = include('lib/libbeets')

@@ -358,6 +358,14 @@ function Beets:add_params()
end
}

params:add_separator()
-- sample rate
params:add_control("sample_rate", "sample rate", controlspec.new(0, 48000, "lin", 10, 48000, ''))
params:set_action("sample_rate", function(x) engine.srate(x) end)
-- bit depth
params:add_control("bit_depth", "bit depth", controlspec.new(4, 31, "lin", 0, 31, ''))
params:set_action("bit_depth", function(x) engine.sdepth(x) end)

params:add_separator()

params:add{

0 comments on commit f41ba7c

Please sign in to comment.