I connected Arduino to Max/MSP and I wrote a patch that played samples (made in another software) either in sequence or randomly whenever ...