imported ISMIR code