Skip to content

Instantly share code, notes, and snippets.

@dndrks
Created Aug 21, 2022
Embed
What would you like to do?
(3b) loading the provided drum files into softcut as a kit
-- nc03 snippet: loading the provided drum files into softcut as a kit
sc_fn = include 'lib/sc_helpers'
sc_prm = include 'lib/sc_params' -- param-based controls over softcut
function init()
-- always keep this in the init, just in case the files haven't been migrated:
sc_fn.move_samples_into_audio()
sc_prm.init() -- build the PARAMETERS UI entries for all 6 softcut voices
-- kits: 'default-1', 'default-2', 'fltr-amod-eq', 'fm-lite', 'heavy', 'mods-1', 'mods-2', 'verb-long', 'verb-short'
sc_fn.load_kit('mods-1')
-- just a random jumble:
clock.run(
function()
while true do
clock.sync(1/4)
if math.random() > 0.5 then
sc_fn.play_slice(math.random(6),1)
end
end
end
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment