You can map a button to a chord with this program.
copy/ paste it into sonic-pi IDE (download from https://sonic-pi.net/ )
artiphon_address= "/midi/instrument1/*/*/note_on"
artiphon_synth= :dsaw
remap_keys=[40,41,42,43,44]
remap_chords=[chord(:c4,:major), \
chord(:d4,:major), \
chord(:e4,:major), \
chord(:f4,:major), \
chord(:g4,:major)]
# if you want to remap keys to chords
# turn remap to true
remap=true
define :artiphon do |synth_name, event_address|
use_real_time
note, velocity = sync event_address
# remap the key
if remap
i=0
remap_keys.length.times do
note=remap_chords[i] if note==remap_keys[i]
i += 1
end
end
synth synth_name, \
note: note, \
release: 1.5,\
amp: velocity/127.0
end
with_fx :reverb do
live_loop :midi_play do
artiphon artiphon_synth,artiphon_address
end
end