Monday, August 7, 2017

Making random music using the random command of a programming language


For example on the ZX spectrum BASIC language one would use the random command.


Then the BEEP command using the random variable to control the frequency of BEEP.


Also use a constant slightly greater  than 1 to create stretched frequency tuning so that the high notes sound correct in pitch (the sensation) of our brain.



No comments:

Post a Comment