Midi Bluetooth input into SonicPi on Raspberry Pi

Hi Looking at connection an external device via midi bluetooth to trigger samples in Sonic Pi on a Raspberry Pi is this possible ?

Thanks
Darren