-
-
Save dndrks/95325223927a53c1d5d08b2af4afb43e to your computer and use it in GitHub Desktop.
(3b) loading the provided drum files into softcut as a kit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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