User:Ganaram inukshuk/Sandbox/Modmosses: Difference between revisions
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
This page is a testing area | This page is a testing area for the following function from Module:TAMNAMS:<pre> | ||
function p.mode_udp(input_mode, input_mos, mos_abbrev) | function p.mode_udp(input_mode, input_mos, mos_abbrev) | ||
</pre>The function works as follows: given an arbitrary input_mode for an input_mos, find the closest true-mos mode and list the altered scale degrees (alterations) needed to produce that mode. The closest true-mos mode is the mode that requires the fewest alterations to produce the input_mode. If more than one true-mos modes satisfy this condition, then the brightest of those modes is chosen to break the tie. | </pre>The function works as follows: given an arbitrary input_mode for an input_mos, find the closest true-mos mode and list the altered scale degrees (alterations) needed to produce that mode. The closest true-mos mode is the mode that requires the fewest alterations to produce the input_mode. If more than one true-mos modes satisfy this condition, then the brightest of those modes is chosen to break the tie. |