Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: Monzo function
name
code content
// https://en.xen.wiki/w/Monzo //Monzo notation of JI ratios is often used in combination with Vals for temperament theory. I wrote this not for temperament, but rather to use monzos as a possible alternative to otonality and utonality, espescially when sonifying streams that include negative numbers. (//function that takes a collection representing a monzo as an argument, and outputs the ratio it encodes ~zo = { arg exponentCollection; var ratio = 1; exponentCollection.do({arg item, i; ratio = ratio * (i.nthPrime).pow(item);}); ratio; }; ) //5-limit ~zo.([-1, 1]); // 3/2 ~zo.([-2, 0, 1]); // 5/4 ~zo.([-3, 2]); // 9/8 ~zo.([-4, 4, -1]); // 81/80 ~zo.([-4, 4, -1]); // 81/80 //7-limit ~zo.([-2, 0, 0, 1]); // 7/4 ~zo.([-1, -1, 0, 1]); // 7/6 ~zo.([0, 0, -1, 1]); // 7/5 //fractional monzos ~zo.([-1/2, 3.3, 4, -5]); //sure //it might be fun to do monzo glissandos in different places?
code description
function takes in collection as argument, and returns the ratio from the resultant monzo
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change