Skip to content

Instantly share code, notes, and snippets.

@jpcima
Created May 2, 2021 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpcima/d28f7d8ffe5d452a72838387de75a6ea to your computer and use it in GitHub Desktop.
Save jpcima/d28f7d8ffe5d452a72838387de75a6ea to your computer and use it in GitHub Desktop.
Generated sfz sequences
//----------------------------------------------------------------------------//
// Kinwie 1st example
<global>
loop_mode=one_shot
key=60
seq_length=2
//human voice count
<group> seq_position=1
{% for x in range(10) %}
<region>
lorand={{(loop.index-1)/loop.length}}
hirand={{loop.index/loop.length}}
sample=count_{{'%02d' % x}}.wav
{% endfor %}
//drums hit
<group> seq_position=2
{% for sample in ['kick.wav', 'snare.wav', 'hat.wav', 'crash.wav'] %}
<region>
lorand={{(loop.index-1)/loop.length}}
hirand={{loop.index/loop.length}}
sample={{sample}}
{% endfor %}
//----------------------------------------------------------------------------//
// Kinwie 2nd example
<global>
loop_mode=one_shot
key=60
//human voice count
{% for x in range(10) %}
{% if loop.first %}<group> seq_length={{loop.length}} hirand=0.5{% endif %}
<region> seq_position={{'%02d' % loop.index}} sample=count_{{'%02d' % loop.index}}.wav
{% endfor %}
//drums hit
{% for sample in ['kick.wav', 'snare.wav', 'hat.wav', 'crash.wav'] %}
{% if loop.first %}<group> seq_length={{loop.length}} lorand=0.5{% endif %}
<region> seq_position={{'%02d' % loop.index}} sample={{sample}}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment