Algorithms for electrophonic musical instruments or musical processing