Timbre Shifting script borrows notes froms neighbouring keygroups and retune them to alter timbre
--------------------------------------------------------------------------------
--! @example TimbreShifting.lua
--! Timbre Shifting script
--! borrows notes froms neighbouring keygroups and retune them to alter timbre
--------------------------------------------------------------------------------
shiftKnob =
Knob(
"shift", 0, -5, 5,
true)
local shift = shiftKnob.value
local note = e.note + shift
local
id =
playNote(note, e.velocity, -1)
end
-- eat event release is automatic in
playNote
end