Really sorry if I lead you astray last time, but was somehow convinced these where the right size... 😮
Anyway, seems like the only way to make sure, would be to very meticulously measure the pcb's you actually have (for ALL the little parameters*), and go from there.
(*: for an example, check out the drawing in the pdf datasheets in links below, there are waay more measuring points than I imagined !)
I do not know the PCB thickness of your midi cards or sound cards, but for a Roland MPU-401AT, the hole diameter looks to be very close to 3mm, perhaps a 3.2mm headed pillar would work ? And the main length/'space' of the original pillar = 9mm (excluding the 'heads' on both ends). And main column pillar thickness = ca 3.6mm.
Looks like mouser.com has some rather close ones, though also have to pay attention to the fastening mechanism, as top and bottom are actually different from each other on these original pillars. Looking quite like the 8879-8887 models from mouser below. As opposed to those 9000-models with 'hooks' on both ends.
Here are some findings, the hole size seems to be workable (3,2mm with a +/- 0.25mm 'flex') but main pillar(spacer) thickness is almost 1 mm more than the original one (4.57mm vs 3,6mm), and length is 9,57mm (vs 9mm) - so check your own boards for what would fit or not:
https://eu.mouser.com/ProductDetail/Keystone- … 7DRKySOeDCL4%3D
Check out the datasheet for the different sizes and detailed picture etc:
https://eu.mouser.com/datasheet/2/215/879-8887-744893.pdf
Close enough perhaps ?
And make note of that picture, top and bottom are not the same. As they also have other models, which icons all look quite identical on the main page big list, but where the individual series datasheet picture shows something else...
https://eu.mouser.com/Electromechanical/Hardw … 1z0z2t8Z1yzd178
Just play around with the filters there, and make sure to look at each datasheet, to better understand what locking mechanism actually is used on each model.
Not sure if the are sold in boxes only, but if not you could of course just purchase a couple of each model/size etc you find promising, and then post your findings here ? 😄
.
PS: ...here is a different seller/model etc, though you have to buy minimum 40x of each model, at £4.07 per box, so...:
https://uk.farnell.com/essentra-components-fo … ost=DLMSPM-6-01
http://www.farnell.com/datasheets/2040051.pdf
https://uk.farnell.com/c/fasteners-mechanical … lock-in-support