updated Haarnet_init_midi