Ok, for enyone interested. the key to this is to put the exact values of the velocity in the file names, like this:
Flute_legato_C4_0_50
Flute_legato_C4_51_127