Thanks to mkrf and rtmidi I could write a simple bang test program in just one afternoon :

require 'bang'
Bang.bang
# ---> nice piano sound from Logic Pro !