Skip to content

Instantly share code, notes, and snippets.

@X-Raym
Last active September 26, 2016 21:33
Show Gist options
  • Select an option

  • Save X-Raym/2d9fc48d906fe18d9632bc7406cf8855 to your computer and use it in GitHub Desktop.

Select an option

Save X-Raym/2d9fc48d906fe18d9632bc7406cf8855 to your computer and use it in GitHub Desktop.
arts = {'Accent','Staccato','Tenuto','Staccatissimo','Marcato','Fermata'}
index = 10
for i, art in ipairs( arts ) do
output = 'slider' .. index .. ':0<0,2,1{None,CC,Note}>' .. art .. ' Output'
print (output)
index = index + 1
output = 'slider' .. index .. ':0<0,127,1>' .. art .. ' Value Output'
print (output)
index = index + 2
print('\r')
end
dyn = {'Crescendo','Diminuendo','pppp','ppp','pp','p','mp','m','mf','f','ff','fff','ffff','Diminuendo'}
idx = 8
for i, z in ipairs(dyn) do
idx = idx + 3
print( 'strcmp( dyn, "' .. z ..'" ) ? (')
print( ' sendData( ' .. idx .. ' ), note, chan );' )
print( '): ')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment