Template:Q-odd-limit intervals

Revision as of 12:20, 15 May 2024 by FloraC (talk | contribs) (Name change followup)

This template generates a table with the approximations of intervals for a given edo and odd limit.

Documentation

This template generates a table with the approximations of intervals for a given edo and odd limit.

Usage

Use one unnamed argument for the edo number.

Use a second unnamed argument for the odd limit. The default is 15, since low-complexity just intonation typically involves just the first 16 harmonics of the harmonic series. Currently, this template stores prime numbers up to 61 and supports odd limits up to 65.

Pass header=none to get rid of the description.

To list only direct approximations, pass apx=direct. To list only val-based approximations, pass apx=val, and the header will be suffixed with (approximated with val). Otherwise, both approximations will be provided.

If apx is set to direct, the header will be suffixed with (approximated directly). If apx is set to val, the header will be suffixed with (approximated with val). Pass tag=none to remove this.

A note can be added below the header by passing note= followed by the text to be displayed.

The title is "[Limit]-odd-limit intervals by patent val mapping", but you can enter a custom title by title = [your title].

Examples

You type
{{Q-odd-limit intervals|19}}
You get

Lua error in Module:Q-odd-limit_intervals at line 235: attempt to index field 'header' (a nil value).

See also