The rebec was mostly used for dance music . The rebec also continued to be used in folk music , especially in eastern Europe and Spain . Andalusi nubah , a genre of music from North Africa , often includes the rebec .