arg? — optional arg; arg* — zero or more args; arg+ — one or more args; argenv — looked up in the environ; arg = val — arg with default; :: type — argument type; [*-arg arg] — default from environ values name-arg followed by arg

word to include a tag containing the word, -word to exclude. Prefix with m: for modules, kind:(note|control|pitch|val) for call kinds, or type:(val|generator|transformer) for call types.
You can also search by %control, arg default (name-arg), and call kind (note, control, ...).
Search for calls with the browser's text search, "call --" to search by binding, "-- call" to search by name.
Common tags are documented at Derive.Call.Tags.

x

Scales

lookup: alpha: [0-9][a-s] -- pitch
val
lookup: beta: [0-9][a-s] -- pitch
lookup: gamma: [0-9][a-I] -- pitch
This is a family of scales invented by Wendy Carlos. They don't repeat at the octave, so they support diatonic transposition only within a single octave.
Since diatonic transposition won't get you up an octave, the %t-oct control will transpose by octaves.
The %a0-nn control sets the NoteNumber of a0. If it's not set, it defaults to 0, which is c-1.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: bp: [-1-9][abcdefghi](bb|b|n|#|x)? -- pitch
val
Bohlen-Pierce is derived from 3 instead of 2, and thus has a "tritave" instead of an octave.
Scales in the "twelve" family use European style note naming. That is, note names look like octave-letter-accidentals like "4c#". They have a notion of a "layout", which is a pattern of half and whole steps, e.g. the piano layout, and a key, which is a subset of notes from the scale along with a preferred spelling for them. The rules of how enharmonic spelling works are complicated, and documented in Derive.Scale.Theory. The key is read from the key env var, and each scale has a list of keys it will accept.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: -1a# to 8h#
- default key: a-lambda
- keys: (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb|h#|h|hb|i#|i|ib)-dur-1, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb|h#|h|hb|i#|i|ib)-dur-2, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db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g|gb|h#|h|hb|i#|i|ib)-x5, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb|h#|h|hb|i#|i|ib)-x6, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb|h#|h|hb|i#|i|ib)-x7
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: harmonic: [一二三四五六七八久十]-?[0-9]+ -- pitch
val
The harmonic series. The NN frequency of 一1 is set by %unity, and defaults to 0nn. This puts 五1 at middle C, which is where 四1 would normally be, but since the first degree is the octave, putting 四1 at middle C would get too high too quickly.
Negative numbers are the nth undertone, i.e. 1 / abs n.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: hex: [-1-9][abcdef](bb|b|n|#|x)? -- pitch
val
lookup: hex-r: [-1-9]-[1-6](bb|b|n|#|x)? -- pitch
This is a family of 6 note just scales, based on Erv Wilson's hexanies. The keys look like a-159b-1. The a means that in absolute naming, unity is on a (in relative naming, unity is always 1). 159b means the hexany is built on 1, 5, 9, 11. The trailing 1 means unity is assigned to the first ratio produced. For example, if you modulate to the 5th scale degree, you would change the key to a-159b-6 and set %just-base accordingly.

Just scales are tuned by ratios from a base frequency, taken from the %just-base control, as hz. Typically the "key" will select the set of ratios used, dependent on the scale.
Just scales recognize accidentals as an offset by a fixed ratio, but are inherently diatonic, so chromatic transposition is the same as diatonic transposition.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- (a|b|c|d|e|f)-1357-1: 1, 1+1/6, 1+1/4, 1+11/24, 1+2/3, 1+3/4
- (a|b|c|d|e|f)-1357-2: 1, 1+1/20, 1+1/5, 1+2/5, 1+1/2, 1+3/4
- (a|b|c|d|e|f)-1357-3: 1, 1+1/14, 1+1/4, 1+3/7,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1/2, 1+5/8, 1+17/22
- (a|b|c|d|e|f)-13bd-3: 1, 1+7/26, 1+3/8, 1+1/2, 1+9/13, 1+11/13
- (a|b|c|d|e|f)-13bd-4: 1, 1+1/12, 1+2/11, 1+1/3, 1+5/11, 1+19/33
- (a|b|c|d|e|f)-13bd-5: 1, 1+5/39, 1+3/13, 1+1/3, 1+9/13, 1+5/6
- (a|b|c|d|e|f)-13bd-6: 1, 1+1/11, 1+3/13, 1+49/143, 1+5/11, 1+11/13
- (a|b|c|d|e|f)-1579-1: 1, 1+1/8, 1+2/5, 1+23/40, 1+3/4, 1+4/5
- (a|b|c|d|e|f)-1579-2: 1, 1+1/8, 1+1/4, 1+2/7, 1+3/7, 1+17/28
- (a|b|c|d|e|f)-1579-3: 1, 1+1/9, 1+1/4, 1+5/9, 1+3/4, 1+17/18
- (a|b|c|d|e|f)-1579-4: 1, 1+1/35, 1+1/7, 1+2/7, 1+3/5, 1+4/5
- (a|b|c|d|e|f)-1579-5: 1, 1+11/45, 1+2/5, 1+5/9, 1+3/5, 1+7/9
- (a|b|c|d|e|f)-1579-6: 1, 1+1/9, 1+1/7, 1+17/63, 1+3/7, 1+7/9
- (a|b|c|d|e|f)-157b-1: 1, 1+1/10, 1+3/8, 1+2/5, 1+3/4, 1+37/40
- (a|b|c|d|e|f)-157b-2: 1, 1+1/4, 1+3/8, 1+3/7, 1+4/7, 1+27/28
- (a|b|c|d|e|f)-157b-3: 1, 1+1/4, 1+3/11, 1+13/22, 1+3/4, 1+9/11
- (a|b|c|d|e|f)-157b-4: 1, 1+1/10, 1+1/7, 1+9/35, 1+4/7, 1+3/5
- (a|b|c|d|e|f)-157b-5: 1, 1+1/55, 1+3/11, 1+2/5, 1+5/11, 1+3/5
- (a|b|c|d|e|f)-157b-6: 1, 1+3/77, 1+1/7, 1+3/7, 1+5/11, 1+9/11
- (a|b|c|d|e|f)-157d-1: 1, 1+11/80, 1+3/10, 1+2/5, 1+5/8, 1+3/4
- (a|b|c|d|e|f)-157d-2: 1, 1+9/56, 1+1/4, 1+3/7, 1+5/8, 1+6/7
- (a|b|c|d|e|f)-157d-3: 1, 1+1/13, 1+1/4, 1+9/26, 1+7/13, 1+3/4
- (a|b|c|d|e|f)-157d-4: 1, 1+1/7, 1+3/10, 1+17/35, 1+3/5, 1+6/7
- (a|b|c|d|e|f)-157d-5: 1, 1+1/13, 1+3/13, 1+2/5, 1+3/5, 1+47/65
- (a|b|c|d|e|f)-157d-6: 1, 1+1/7, 1+3/13, 1+3/7, 1+7/13, 1+69/91
- (a|b|c|d|e|f)-159b-1: 1, 1+1/10, 1+1/8, 1+19/80, 1+3/8, 1+4/5
- (a|b|c|d|e|f)-159b-2: 1, 1+1/9, 1+2/9, 1+1/4, 1+3/8, 1+19/36
- (a|b|c|d|e|f)-159b-3: 1, 1+1/44, 1+1/8, 1+1/4, 1+7/11, 1+9/11
- (a|b|c|d|e|f)-159b-4: 1, 1+1/10, 1+2/9, 1+3/5, 1+7/9, 1+43/45
- (a|b|c|d|e|f)-159b-5: 1, 1+17/55, 1+5/11, 1+3/5, 1+7/11, 1+4/5
- (a|b|c|d|e|f)-159b-6: 1, 1+1/9, 1+5/11, 1+61/99, 1+7/9, 1+9/11
- (a|b|c|d|e|f)-159d-1: 1, 1+1/8, 1+3/10, 1+37/80, 1+5/8, 1+4/5
- (a|b|c|d|e|f)-159d-2: 1, 1+1/9, 1+1/4, 1+4/9, 1+5/8, 1+29/36
- (a|b|c|d|e|f)-159d-3: 1, 1+1/8, 1+1/4, 1+5/13, 1+7/13, 1+19/26
- (a|b|c|d|e|f)-159d-4: 1, 1+7/45, 1+3/10, 1+4/9, 1+3/5, 1+7/9
- (a|b|c|d|e|f)-159d-5: 1, 1+7/65, 1+3/13, 1+5/13, 1+3/5, 1+4/5
- (a|b|c|d|e|f)-159d-6: 1, 1+1/9, 1+3/13, 1+43/117, 1+7/13, 1+7/9
- (a|b|c|d|e|f)-15bd-1: 1, 1+1/10, 1+3/10, 1+3/8, 1+5/8, 1+63/80
- (a|b|c|d|e|f)-15bd-2: 1, 1+2/11, 1+1/4, 1+21/44, 1+5/8, 1+9/11
- (a|b|c|d|e|f)-15bd-3: 1, 1+3/52, 1+1/4, 1+3/8, 1+7/13, 1+9/13
- (a|b|c|d|e|f)-15bd-4: 1, 1+2/11, 1+3/10, 1+5/11, 1+3/5, 1+49/55
- (a|b|c|d|e|f)-15bd-5: 1, 1+1/10, 1+3/13, 1+23/65, 1+3/5, 1+9/13
- (a|b|c|d|e|f)-15bd-6: 1, 1+17/143, 1+3/13, 1+5/11, 1+7/13, 1+9/11
- (a|b|c|d|e|f)-179b-1: 1, 1+1/8, 1+2/7, 1+3/8, 1+4/7, 1+43/56
- (a|b|c|d|e|f)-179b-2: 1, 1+5/72, 1+2/9, 1+3/8, 1+5/9, 1+3/4
- (a|b|c|d|e|f)-179b-3: 1, 1+1/8, 1+3/11, 1+19/44, 1+7/11, 1+3/4
- (a|b|c|d|e|f)-179b-4: 1, 1+1/7, 1+2/9, 1+25/63, 1+4/7, 1+7/9
- (a|b|c|d|e|f)-179b-5: 1, 1+1/7, 1+2/7, 1+5/11, 1+7/11, 1+67/77
- (a|b|c|d|e|f)-179b-6: 1, 1+13/99, 1+3/11, 1+5/11, 1+5/9, 1+7/9
- (a|b|c|d|e|f)-179d-1: 1, 1+5/112, 1+1/8, 1+2/7, 1+5/8, 1+6/7
- (a|b|c|d|e|f)-179d-2: 1, 1+19/72, 1+4/9, 1+5/9, 1+5/8, 1+3/4
- (a|b|c|d|e|f)-179d-3: 1, 1+1/13, 1+1/8, 1+11/52, 1+5/13, 1+3/4
- (a|b|c|d|e|f)-179d-4: 1, 1+1/7, 1+4/9, 1+41/63, 1+7/9, 1+6/7
- (a|b|c|d|e|f)-179d-5: 1, 1+1/7, 1+3/13, 1+2/7, 1+5/13, 1+53/91
- (a|b|c|d|e|f)-179d-6: 1, 1+1/13, 1+3/13, 1+5/9, 1+7/9, 1+107/117
- (a|b|c|d|e|f)-17bd-1: 1, 1+31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19/21
- (a|b|c|d|e|f)-357b-1: 1, 1+1/10, 1+1/6, 1+17/60, 1+2/5, 1+5/6
- (a|b|c|d|e|f)-357b-2: 1, 1+13/42, 1+3/7, 1+4/7, 1+2/3, 1+5/6
- (a|b|c|d|e|f)-357b-3: 1, 1+2/33, 1+1/6, 1+3/11, 1+2/3, 1+9/11
- (a|b|c|d|e|f)-357b-4: 1, 1+1/10, 1+1/5, 1+4/7, 1+5/7, 1+31/35
- (a|b|c|d|e|f)-357b-5: 1, 1+1/11, 1+1/5, 1+3/11, 1+2/5, 1+29/55
- (a|b|c|d|e|f)-357b-6: 1, 1+1/11, 1+3/7, 1+43/77, 1+5/7, 1+9/11
- (a|b|c|d|e|f)-357d-1: 1, 1+1/12, 1+1/6, 1+3/10, 1+2/5, 1+31/60
- (a|b|c|d|e|f)-357d-2: 1, 1+1/12, 1+3/7, 1+23/42, 1+2/3, 1+6/7
- (a|b|c|d|e|f)-357d-3: 1, 1+1/13, 1+1/6, 1+7/13, 1+2/3, 1+31/39
- (a|b|c|d|e|f)-357d-4: 1, 1+4/35, 1+1/5, 1+3/10, 1+5/7, 1+6/7
- (a|b|c|d|e|f)-357d-5: 1, 1+1/13, 1+1/5, 1+19/65, 1+2/5, 1+11/13
- (a|b|c|d|e|f)-357d-6: 1, 1+29/91, 1+3/7, 1+7/13, 1+5/7, 1+11/13
- (a|b|c|d|e|f)-359b-1: 1, 1+1/10, 1+1/2, 1+13/20, 1+4/5, 1+5/6
- (a|b|c|d|e|f)-359b-2: 1, 1+1/54, 1+1/9, 1+2/9, 1+2/3, 1+5/6
- (a|b|c|d|e|f)-359b-3: 1, 1+4/11, 1+1/2, 1+7/11, 1+2/3, 1+9/11
- (a|b|c|d|e|f)-359b-4: 1, 1+1/10, 1+1/5, 1+2/9, 1+1/3, 1+7/15
- (a|b|c|d|e|f)-359b-5: 1, 1+1/11, 1+1/5, 1+7/11, 1+4/5, 1+53/55
- (a|b|c|d|e|f)-359b-6: 1, 1+1/11, 1+1/9, 1+7/33, 1+1/3, 1+9/11
- (a|b|c|d|e|f)-359d-1: 1, 1+1/12, 1+3/10, 1+1/2, 1+4/5, 1+19/20
- (a|b|c|d|e|f)-359d-2: 1, 1+1/12, 1+1/9, 1+11/54, 1+4/9, 1+2/3
- (a|b|c|d|e|f)-359d-3: 1, 1+2/13, 1+5/13, 1+1/2, 1+7/13, 1+2/3
- (a|b|c|d|e|f)-359d-4: 1, 1+1/5, 1+3/10, 1+1/3, 1+4/9, 1+11/15
- (a|b|c|d|e|f)-359d-5: 1, 1+1/5, 1+5/13, 1+43/65, 1+4/5, 1+11/13
- (a|b|c|d|e|f)-359d-6: 1, 1+1/39, 1+1/9, 1+1/3, 1+7/13, 1+11/13
- (a|b|c|d|e|f)-35bd-1: 1, 1+1/12, 1+1/10, 1+23/120, 1+3/10, 1+5/6
- (a|b|c|d|e|f)-35bd-2: 1, 1+1/12, 1+2/11, 1+2/3, 1+9/11, 1+32/33
- (a|b|c|d|e|f)-35bd-3: 1, 1+16/39, 1+7/13, 1+2/3, 1+9/13, 1+5/6
- (a|b|c|d|e|f)-35bd-4: 1, 1+1/11, 1+2/11, 1+1/5, 1+3/10, 1+23/55
- (a|b|c|d|e|f)-35bd-5: 1, 1+1/65, 1+1/10, 1+1/5, 1+9/13, 1+11/13
- (a|b|c|d|e|f)-35bd-6: 1, 1+1/11, 1+7/13, 1+97/143, 1+9/11, 1+11/13
- (a|b|c|d|e|f)-379b-1: 1, 1+5/28, 1+2/7, 1+1/2, 1+4/7, 1+5/6
- (a|b|c|d|e|f)-379b-2: 1, 1+1/6, 1+2/9, 1+23/54, 1+5/9, 1+5/6
- (a|b|c|d|e|f)-379b-3: 1, 1+1/6, 1+3/11, 1+1/2, 1+7/11, 1+10/11
- (a|b|c|d|e|f)-379b-4: 1, 1+1/21, 1+2/9, 1+1/3, 1+4/7, 1+5/7
- (a|b|c|d|e|f)-379b-5: 1, 1+1/11, 1+2/7, 1+31/77, 1+7/11, 1+5/7
- (a|b|c|d|e|f)-379b-6: 1, 1+1/11, 1+3/11, 1+1/3, 1+5/9, 1+23/33
- (a|b|c|d|e|f)-379d-1: 1, 1+1/12, 1+2/7, 1+11/28, 1+1/2, 1+6/7
- (a|b|c|d|e|f)-379d-2: 1, 1+1/12, 1+1/6, 1+4/9, 1+5/9, 1+37/54
- (a|b|c|d|e|f)-379d-3: 1, 1+1/13, 1+1/6, 1+5/13, 1+1/2, 1+8/13
- (a|b|c|d|e|f)-379d-4: 1, 1+5/21, 1+1/3, 1+4/9, 1+5/7, 1+6/7
- (a|b|c|d|e|f)-379d-5: 1, 1+17/91, 1+2/7, 1+5/13, 1+5/7, 1+11/13
- (a|b|c|d|e|f)-379d-6: 1, 1+1/13, 1+1/3, 1+17/39, 1+5/9, 1+11/13
- (a|b|c|d|e|f)-37bd-1: 1, 1+1/12, 1+4/7, 1+59/84, 1+5/6, 1+6/7
- (a|b|c|d|e|f)-37bd-2: 1, 1+1/12, 1+1/6, 1+2/11, 1+3/11, 1+25/66
- (a|b|c|d|e|f)-37bd-3: 1, 1+1/13, 1+1/6, 1+9/13, 1+5/6, 1+38/39
- (a|b|c|d|e|f)-37bd-4: 1, 1+1/77, 1+1/11, 1+2/11, 1+5/7, 1+6/7
- (a|b|c|d|e|f)-37bd-5: 1, 1+41/91, 1+4/7, 1+9/13, 1+5/7, 1+11/13
- (a|b|c|d|e|f)-37bd-6: 1, 1+1/13, 1+1/11, 1+25/143, 1+3/11, 1+11/13
- (a|b|c|d|e|f)-39bd-1: 1, 1+1/12, 1+2/9, 1+35/108, 1+4/9, 1+5/6
- (a|b|c|d|e|f)-39bd-2: 1, 1+1/12, 1+2/11, 1+1/2, 1+7/11, 1+17/22
- (a|b|c|d|e|f)-39bd-3: 1, 1+7/26, 1+5/13, 1+1/2, 1+9/13, 1+5/6
- (a|b|c|d|e|f)-39bd-4: 1, 1+1/11, 1+2/11, 1+1/3, 1+4/9, 1+19/33
- (a|b|c|d|e|f)-39bd-5: 1, 1+5/39, 1+2/9, 1+1/3, 1+9/13, 1+11/13
- (a|b|c|d|e|f)-39bd-6: 1, 1+1/11, 1+5/13, 1+73/143, 1+7/11, 1+11/13
- (a|b|c|d|e|f)-579b-1: 1, 1+1/10, 1+2/7, 1+29/70, 1+4/7, 1+4/5
- (a|b|c|d|e|f)-579b-2: 1, 1+1/10, 1+2/9, 1+2/5, 1+5/9, 1+32/45
- (a|b|c|d|e|f)-579b-3: 1, 1+8/55, 1+3/11, 1+2/5, 1+7/11, 1+4/5
- (a|b|c|d|e|f)-579b-4: 1, 1+1/9, 1+2/9, 1+3/7, 1+4/7, 1+47/63
- (a|b|c|d|e|f)-579b-5: 1, 1+13/77, 1+2/7, 1+3/7, 1+7/11, 1+9/11
- (a|b|c|d|e|f)-579b-6: 1, 1+1/9, 1+3/11, 1+41/99, 1+5/9, 1+9/11
- (a|b|c|d|e|f)-579d-1: 1, 1+2/7, 1+3/10, 1+47/70, 1+4/5, 1+6/7
- (a|b|c|d|e|f)-579d-2: 1, 1+1/90, 1+3/10, 1+2/5, 1+4/9, 1+5/9
- (a|b|c|d|e|f)-579d-3: 1, 1+1/13, 1+5/13, 1+2/5, 1+4/5, 1+61/65
- (a|b|c|d|e|f)-579d-4: 1, 1+2/63, 1+1/9, 1+3/7, 1+4/9, 1+6/7
- (a|b|c|d|e|f)-579d-5: 1, 1+2/7, 1+5/13, 1+3/7, 1+7/13, 1+89/91
- (a|b|c|d|e|f)-579d-6: 1, 1+1/13, 1+1/9, 1+23/117, 1+7/13, 1+5/9
- (a|b|c|d|e|f)-57bd-1: 1, 1+3/140, 1+1/10, 1+3/10, 1+4/7, 1+6/7
- (a|b|c|d|e|f)-57bd-2: 1, 1+2/11, 1+3/11, 1+3/10, 1+2/5, 1+36/55
- (a|b|c|d|e|f)-57bd-3: 1, 1+1/13, 1+1/10, 1+12/65, 1+2/5, 1+9/13
- (a|b|c|d|e|f)-57bd-4: 1, 1+2/11, 1+3/7, 1+53/77, 1+9/11, 1+6/7
- (a|b|c|d|e|f)-57bd-5: 1, 1+19/91, 1+3/7, 1+7/13, 1+4/7, 1+9/13
- (a|b|c|d|e|f)-57bd-6: 1, 1+1/13, 1+3/11, 1+7/13, 1+9/11, 1+137/143
- (a|b|c|d|e|f)-59bd-1: 1, 1+1/10, 1+2/9, 1+3/10, 1+4/9, 1+53/90
- (a|b|c|d|e|f)-59bd-2: 1, 1+7/110, 1+2/11, 1+3/10, 1+7/11, 1+4/5
- (a|b|c|d|e|f)-59bd-3: 1, 1+1/10, 1+5/13, 1+34/65, 1+9/13, 1+4/5
- (a|b|c|d|e|f)-59bd-4: 1, 1+1/9, 1+2/11, 1+31/99, 1+4/9, 1+9/11
- (a|b|c|d|e|f)-59bd-5: 1, 1+1/9, 1+2/9, 1+7/13, 1+9/13, 1+103/117
- (a|b|c|d|e|f)-59bd-6: 1, 1+37/143, 1+5/13, 1+7/13, 1+7/11, 1+9/11
- (a|b|c|d|e|f)-79bd-1: 1, 1+17/126, 1+2/9, 1+4/9, 1+4/7, 1+6/7
- (a|b|c|d|e|f)-79bd-2: 1, 1+2/11, 1+2/7, 1+40/77, 1+7/11, 1+6/7
- (a|b|c|d|e|f)-79bd-3: 1, 1+8/91, 1+2/7, 1+5/13, 1+4/7, 1+9/13
- (a|b|c|d|e|f)-79bd-4: 1, 1+2/11, 1+3/11, 1+4/9, 1+5/9, 1+83/99
- (a|b|c|d|e|f)-79bd-5: 1, 1+1/13, 1+2/9, 1+37/117, 1+5/9, 1+9/13
- (a|b|c|d|e|f)-79bd-6: 1, 1+1/13, 1+3/11, 1+5/13, 1+7/11, 1+109/143
Emit the pitch of a scale degree.
  • interval* :: Num or Str [] — Multiply this interval with the note's frequency. Negative numbers divide, so while 3/2 goes up a fifth, -3/2 goes down a fifth. Can be either a ratio or a symbol drawn from: M2, M2-, M3, M6, M7, P4, P5, m2, m2-, m3, m6, m7, tt, tt11, tt7+, tt7-, wolf
lookup: interpolate: same as from scale -- pitch
val
Emit a pitch between two scales. The scales are in the scale-from and scale-to environ values, and keys are from key-from and key-to. If scale-to isn't set, it defaults to scale-from. The %scale-at control ranges from 0 to 1 and controls the interpolation between the scales. For this to work, the scales must have the same degree names, since there's no way to manually specify a correspondence between scale degrees.
  • arg* :: Val [] — passed to from and to scales
lookup: just: [-1-9][cdefgab](bb|b|n|#|x)? -- pitch
val
lookup: just-r: [-1-9][srgmpdn](bb|b|n|#|x)? -- pitch
7-limit just scale.
7-note Western style scales tuned in just intonation.
Keys look like c-maj, where c is the tonic and maj selects the ratios to use. For absolute notation, the tonic determines where the scale starts, while for relative notation, the tonic determines only which MIDI key maps to the first scale degree. So for the ASCII kbd where the input is also relative, the tonic is irrelevant.
Just scales are tuned by ratios from a base frequency, taken from the %just-base control, as hz. Typically the "key" will select the set of ratios used, dependent on the scale.
Just scales recognize accidentals as an offset by a fixed ratio, but are inherently diatonic, so chromatic transposition is the same as diatonic transposition.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- (a|b|c|d|e|f|g)-dorian: 1, 1+1/8, 1+1/5, 1+1/3, 1+1/2, 1+2/3, 1+4/5
- (a|b|c|d|e|f|g)-locrian: 1, 1+1/15, 1+1/5, 1+1/3, 1+2/5, 1+3/5, 1+4/5
- (a|b|c|d|e|f|g)-lydian: 1, 1+1/8, 1+1/4, 1+2/5, 1+1/2, 1+2/3, 1+7/8
- (a|b|c|d|e|f|g)-maj: 1, 1+1/8, 1+1/4, 1+1/3, 1+1/2, 1+2/3, 1+7/8
- (a|b|c|d|e|f|g)-min: 1, 1+1/8, 1+1/5, 1+1/3, 1+1/2, 1+3/5, 1+4/5
- (a|b|c|d|e|f|g)-mixolydian: 1, 1+1/8, 1+1/4, 1+1/3, 1+1/2, 1+2/3, 1+4/5
- (a|b|c|d|e|f|g)-phrygian: 1, 1+1/15, 1+1/5, 1+1/3, 1+1/2, 1+3/5, 1+4/5
Emit the pitch of a scale degree.
  • interval* :: Num or Str [] — Multiply this interval with the note's frequency. Negative numbers divide, so while 3/2 goes up a fifth, -3/2 goes down a fifth. Can be either a ratio or a symbol drawn from: M2, M2-, M3, M6, M7, P4, P5, m2, m2-, m3, m6, m7, tt, tt11, tt7+, tt7-, wolf
lookup: legong-b: [-1-9][1-9][᭦᭡᭢᭣᭤]#?(bb|b|n|#|x)? -- pitch
val
Saih pelegongan, from my instruments.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: 3᭦ to 7᭦
- default key: selisir
- keys: baro, pengenter, pengenter-alit, selisir, slendro-gede, sunaren, tembung
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: legong-c: [-1-9][12356]|`[12356][.^]*`(bb|b|n|#|x)? -- pitch
val
Saih pelegongan, from my instruments.
Use Javanese-style cipher notation.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: 1.. to 1^^
- default key: selisir
- keys: baro, pengenter, pengenter-alit, selisir, slendro-gede, sunaren, tembung
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: legong-kantilan-b: [-1-9][᭦᭡᭢᭣᭤]#?[_^-](bb|b|n|#|x)? -- pitch
val
Saih pelegongan, from my instruments.
This is centered around the kantilan range.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: ᭡᭬ to ᭦᭫
- default key: selisir
- keys: baro, pengenter, pengenter-alit, selisir, slendro-gede, sunaren, tembung
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: legong-kantilan: [-1-9][ioeua]#?[_^-](bb|b|n|#|x)? -- pitch
val
Saih pelegongan, from my instruments.
This is centered around the kantilan range.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: o_ to i^
- default key: selisir
- keys: baro, pengenter, pengenter-alit, selisir, slendro-gede, sunaren, tembung
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: legong-pemade-b: [-1-9][᭦᭡᭢᭣᭤]#?[_^-](bb|b|n|#|x)? -- pitch
val
Saih pelegongan, from my instruments.
This is centered around the pemade range.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: ᭡᭬ to ᭦᭫
- default key: selisir
- keys: baro, pengenter, pengenter-alit, selisir, slendro-gede, sunaren, tembung
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: legong-pemade: [-1-9][ioeua]#?[_^-](bb|b|n|#|x)? -- pitch
val
Saih pelegongan, from my instruments.
This is centered around the pemade range.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: o_ to i^
- default key: selisir
- keys: baro, pengenter, pengenter-alit, selisir, slendro-gede, sunaren, tembung
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: legong: [-1-9][1-9][ioeua]#?(bb|b|n|#|x)? -- pitch
val
Saih pelegongan, from my instruments.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: 3i to 7i
- default key: selisir
- keys: baro, pengenter, pengenter-alit, selisir, slendro-gede, sunaren, tembung
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: octa12-r: [-1-9][一二三四五六七八](bb|b|n|#|x)? -- pitch
val
Octatonic scales as true 8 note scales, using notes from a-h. There are two variants: octa21 starts with a whole step, while octa12 starts with a half-step.
Scales in the "twelve" family use European style note naming. That is, note names look like octave-letter-accidentals like "4c#". They have a notion of a "layout", which is a pattern of half and whole steps, e.g. the piano layout, and a key, which is a subset of notes from the scale along with a preferred spelling for them. The rules of how enharmonic spelling works are complicated, and documented in Derive.Scale.Theory. The key is read from the key env var, and each scale has a list of keys it will accept.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: -1一 to 9六
- default key: a
- keys: a, a#, ab, b, b#, bb, c, c#, cb, d, d#, db, e, e#, eb, f, f#, fb, g, g#, gb, h, h#, hb
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: octa12: [-1-9][abcdefgh](bb|b|n|#|x)? -- pitch
val
Octatonic scales as true 8 note scales, using notes from a-h. There are two variants: octa21 starts with a whole step, while octa12 starts with a half-step.
Scales in the "twelve" family use European style note naming. That is, note names look like octave-letter-accidentals like "4c#". They have a notion of a "layout", which is a pattern of half and whole steps, e.g. the piano layout, and a key, which is a subset of notes from the scale along with a preferred spelling for them. The rules of how enharmonic spelling works are complicated, and documented in Derive.Scale.Theory. The key is read from the key env var, and each scale has a list of keys it will accept.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: -1a to 9f
- default key: a
- keys: a, a#, ab, b, b#, bb, c, c#, cb, d, d#, db, e, e#, eb, f, f#, fb, g, g#, gb, h, h#, hb
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: octa21-r: [-1-9][一二三四五六七八](bb|b|n|#|x)? -- pitch
val
Octatonic scales as true 8 note scales, using notes from a-h. There are two variants: octa21 starts with a whole step, while octa12 starts with a half-step.
Scales in the "twelve" family use European style note naming. That is, note names look like octave-letter-accidentals like "4c#". They have a notion of a "layout", which is a pattern of half and whole steps, e.g. the piano layout, and a key, which is a subset of notes from the scale along with a preferred spelling for them. The rules of how enharmonic spelling works are complicated, and documented in Derive.Scale.Theory. The key is read from the key env var, and each scale has a list of keys it will accept.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: -1一 to 9五#
- default key: a
- keys: a, a#, ab, b, b#, bb, c, c#, cb, d, d#, db, e, e#, eb, f, f#, fb, g, g#, gb, h, h#, hb
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: octa21: [-1-9][abcdefgh](bb|b|n|#|x)? -- pitch
val
Octatonic scales as true 8 note scales, using notes from a-h. There are two variants: octa21 starts with a whole step, while octa12 starts with a half-step.
Scales in the "twelve" family use European style note naming. That is, note names look like octave-letter-accidentals like "4c#". They have a notion of a "layout", which is a pattern of half and whole steps, e.g. the piano layout, and a key, which is a subset of notes from the scale along with a preferred spelling for them. The rules of how enharmonic spelling works are complicated, and documented in Derive.Scale.Theory. The key is read from the key env var, and each scale has a list of keys it will accept.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: -1a to 9e#
- default key: a
- keys: a, a#, ab, b, b#, bb, c, c#, cb, d, d#, db, e, e#, eb, f, f#, fb, g, g#, gb, h, h#, hb
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: raga: [-1-9][srgmpdn](bb|b|n|#|x)? -- pitch
val
Carnatic ragas, from the melakarta system.
The "key" is actually the raga, e.g. key=shankarabharanam. Arohana and avarohana are not represented in the scale, so janya ragams look the same as their parent. The information is present, though, so it can be interpreted by various gamakam ornaments (not yet implemented though). TODO There is also currently no way to represent pitches which differ in arohana and avarohana.
Since latin orthography is inconsistent, they might be spelled slightly differently from how you expect.
Just scales are tuned by ratios from a base frequency, taken from the %just-base control, as hz. Typically the "key" will select the set of ratios used, dependent on the scale.
Just scales recognize accidentals as an offset by a fixed ratio, but are inherently diatonic, so chromatic transposition is the same as diatonic transposition.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- kanakanki: 1, 1+1/15, 1+1/7, 1+1/3, 1+1/2, 1+3/5, 1+2/3
- ratnangi: 1, 1+1/15, 1+1/7, 1+1/3, 1+1/2, 1+3/5, 1+3/4
- ganamurti: 1, 1+1/15, 1+1/7, 1+1/3, 1+1/2, 1+3/5, 1+7/8
- vanaspati: 1, 1+1/15, 1+1/7, 1+1/3, 1+1/2, 1+2/3, 1+3/4
- manavati: 1, 1+1/15, 1+1/7, 1+1/3, 1+1/2, 1+2/3, 1+7/8
- tanarupi: 1, 1+1/15, 1+1/7, 1+1/3, 1+1/2, 1+3/4, 1+7/8
- senavati: 1, 1+1/15, 1+1/5, 1+1/3, 1+1/2, 1+3/5, 1+2/3
- hanumatodi, todi: 1, 1+1/15, 1+1/5, 1+1/3, 1+1/2, 1+3/5, 1+3/4
- dhenuka: 1, 1+1/15, 1+1/5, 1+1/3, 1+1/2, 1+3/5, 1+7/8
- natakapriya: 1, 1+1/15, 1+1/5, 1+1/3, 1+1/2, 1+2/3, 1+3/4
- kokilapriya: 1, 1+1/15, 1+1/5, 1+1/3, 1+1/2, 1+2/3, 1+7/8
- rupavati: 1, 1+1/15, 1+1/5, 1+1/3, 1+1/2, 1+3/4, 1+7/8
- gayakapriya: 1, 1+1/15, 1+1/4, 1+1/3, 1+1/2, 1+3/5, 1+2/3
- vakulabharanam: 1, 1+1/15, 1+1/4, 1+1/3, 1+1/2, 1+3/5, 1+3/4
- mayamalavagoula: 1, 1+1/15, 1+1/4, 1+1/3, 1+1/2, 1+3/5, 1+7/8
- chakravaham: 1, 1+1/15, 1+1/4, 1+1/3, 1+1/2, 1+2/3, 1+3/4
- suryakantam: 1, 1+1/15, 1+1/4, 1+1/3, 1+1/2, 1+2/3, 1+7/8
- hatakambhari: 1, 1+1/15, 1+1/4, 1+1/3, 1+1/2, 1+3/4, 1+7/8
- jhankaradhwani: 1, 1+1/7, 1+1/5, 1+1/3, 1+1/2, 1+3/5, 1+2/3
- natabhairavi, bhairavi: 1, 1+1/7, 1+1/5, 1+1/3, 1+1/2, 1+3/5, 1+3/4
- kiravani: 1, 1+1/7, 1+1/5, 1+1/3, 1+1/2, 1+3/5, 1+7/8
- kharaharapriya, abheri, dhanasri, abhogi: 1, 1+1/7, 1+1/5, 1+1/3, 1+1/2, 1+2/3, 1+3/4
- gourimanohari: 1, 1+1/7, 1+1/5, 1+1/3, 1+1/2, 1+2/3, 1+7/8
- varunapriya: 1, 1+1/7, 1+1/5, 1+1/3, 1+1/2, 1+3/4, 1+7/8
- mararanjani: 1, 1+1/7, 1+1/4, 1+1/3, 1+1/2, 1+3/5, 1+2/3
- charukesi: 1, 1+1/7, 1+1/4, 1+1/3, 1+1/2, 1+3/5, 1+3/4
- sarasangi: 1, 1+1/7, 1+1/4, 1+1/3, 1+1/2, 1+3/5, 1+7/8
- harikambhoji, kambhoji, mohanam, natakuranji: 1, 1+1/7, 1+1/4, 1+1/3, 1+1/2, 1+2/3, 1+3/4
- dheerashankarabharanam, shankarabharanam: 1, 1+1/7, 1+1/4, 1+1/3, 1+1/2, 1+2/3, 1+7/8
- naganandini: 1, 1+1/7, 1+1/4, 1+1/3, 1+1/2, 1+3/4, 1+7/8
- yagapriya: 1, 1+1/5, 1+1/4, 1+1/3, 1+1/2, 1+3/5, 1+2/3
- ragavardhini: 1, 1+1/5, 1+1/4, 1+1/3, 1+1/2, 1+3/5, 1+3/4
- gangeyabhusani: 1, 1+1/5, 1+1/4, 1+1/3, 1+1/2, 1+3/5, 1+7/8
- vagadheeswari: 1, 1+1/5, 1+1/4, 1+1/3, 1+1/2, 1+2/3, 1+3/4
- sulini: 1, 1+1/5, 1+1/4, 1+1/3, 1+1/2, 1+2/3, 1+7/8
- chalanattai: 1, 1+1/5, 1+1/4, 1+1/3, 1+1/2, 1+3/4, 1+7/8
- salagam: 1, 1+1/15, 1+1/7, 1+2/5, 1+1/2, 1+3/5, 1+2/3
- jalarnavam: 1, 1+1/15, 1+1/7, 1+2/5, 1+1/2, 1+3/5, 1+3/4
- jhalavarali: 1, 1+1/15, 1+1/7, 1+2/5, 1+1/2, 1+3/5, 1+7/8
- navaneetam: 1, 1+1/15, 1+1/7, 1+2/5, 1+1/2, 1+2/3, 1+3/4
- pavani: 1, 1+1/15, 1+1/7, 1+2/5, 1+1/2, 1+2/3, 1+7/8
- raghupriya: 1, 1+1/15, 1+1/7, 1+2/5, 1+1/2, 1+3/4, 1+7/8
- gavambodhi: 1, 1+1/15, 1+1/5, 1+2/5, 1+1/2, 1+3/5, 1+2/3
- bhavapriya: 1, 1+1/15, 1+1/5, 1+2/5, 1+1/2, 1+3/5, 1+3/4
- subhapantuvarali: 1, 1+1/15, 1+1/5, 1+2/5, 1+1/2, 1+3/5, 1+7/8
- shadvigamargini: 1, 1+1/15, 1+1/5, 1+2/5, 1+1/2, 1+2/3, 1+3/4
- suvarnangi: 1, 1+1/15, 1+1/5, 1+2/5, 1+1/2, 1+2/3, 1+7/8
- divyamani: 1, 1+1/15, 1+1/5, 1+2/5, 1+1/2, 1+3/4, 1+7/8
- dhavalambari: 1, 1+1/15, 1+1/4, 1+2/5, 1+1/2, 1+3/5, 1+2/3
- namanarayani: 1, 1+1/15, 1+1/4, 1+2/5, 1+1/2, 1+3/5, 1+3/4
- kamavardhini, goulipantu: 1, 1+1/15, 1+1/4, 1+2/5, 1+1/2, 1+3/5, 1+7/8
- ramapriya: 1, 1+1/15, 1+1/4, 1+2/5, 1+1/2, 1+2/3, 1+3/4
- gamanasrama: 1, 1+1/15, 1+1/4, 1+2/5, 1+1/2, 1+2/3, 1+7/8
- viswambhari: 1, 1+1/15, 1+1/4, 1+2/5, 1+1/2, 1+3/4, 1+7/8
- syamalangi: 1, 1+1/7, 1+1/5, 1+2/5, 1+1/2, 1+3/5, 1+2/3
- shanmukhapriya: 1, 1+1/7, 1+1/5, 1+2/5, 1+1/2, 1+3/5, 1+3/4
- simhendramadhyamam: 1, 1+1/7, 1+1/5, 1+2/5, 1+1/2, 1+3/5, 1+7/8
- hemavati: 1, 1+1/7, 1+1/5, 1+2/5, 1+1/2, 1+2/3, 1+3/4
- dharamavai: 1, 1+1/7, 1+1/5, 1+2/5, 1+1/2, 1+2/3, 1+7/8
- nitimati: 1, 1+1/7, 1+1/5, 1+2/5, 1+1/2, 1+3/4, 1+7/8
- kantamani: 1, 1+1/7, 1+1/4, 1+2/5, 1+1/2, 1+3/5, 1+2/3
- rishabhapriya: 1, 1+1/7, 1+1/4, 1+2/5, 1+1/2, 1+3/5, 1+3/4
- latangi: 1, 1+1/7, 1+1/4, 1+2/5, 1+1/2, 1+3/5, 1+7/8
- vachaspati: 1, 1+1/7, 1+1/4, 1+2/5, 1+1/2, 1+2/3, 1+3/4
- mechakalyani, kalyani: 1, 1+1/7, 1+1/4, 1+2/5, 1+1/2, 1+2/3, 1+7/8
- chitrambhari: 1, 1+1/7, 1+1/4, 1+2/5, 1+1/2, 1+3/4, 1+7/8
- sucharitra: 1, 1+1/5, 1+1/4, 1+2/5, 1+1/2, 1+3/5, 1+2/3
- jyotiswarupini: 1, 1+1/5, 1+1/4, 1+2/5, 1+1/2, 1+3/5, 1+3/4
- dhatuvardhini: 1, 1+1/5, 1+1/4, 1+2/5, 1+1/2, 1+3/5, 1+7/8
- nasikabhusani: 1, 1+1/5, 1+1/4, 1+2/5, 1+1/2, 1+2/3, 1+3/4
- kosalam: 1, 1+1/5, 1+1/4, 1+2/5, 1+1/2, 1+2/3, 1+7/8
- rasikapriya: 1, 1+1/5, 1+1/4, 1+2/5, 1+1/2, 1+3/4, 1+7/8
Emit the pitch of a scale degree.
  • interval* :: Num or Str [] — Multiply this interval with the note's frequency. Negative numbers divide, so while 3/2 goes up a fifth, -3/2 goes down a fifth. Can be either a ratio or a symbol drawn from: M2, M2-, M3, M6, M7, P4, P5, m2, m2-, m3, m6, m7, tt, tt11, tt7+, tt7-, wolf
lookup: ratio: [+-]?\d+/\d+ e.g. 2/5 or -4/3 -- ratio
val
Generate a frequency that is the ratio of the frequency of the #ratio-source signal. A negative ratio divides, a positive one multiplies.
  • hz :: Num = 0 [*-hz] — Add an absolute hz value to the output.
lookup: selisir-b: [-1-9][1-9][᭦᭡᭢᭣᭤]#?(bb|b|n|#|x)? -- pitch
val
The usual saih lima.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- demung - From McPhee's "Music in Bali", from .
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- gong-apuan - From McPhee's "Music in Bali", from Apuan.
- gong-gianyar - From McPhee's "Music in Bali", from Gianyar.
- gong-klungkung - From McPhee's "Music in Bali", from Klungkung.
- gong-peliatan - From McPhee's "Music in Bali", from Peliatan.
- gong-sayan - From McPhee's "Music in Bali", from Sayan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- pegulingan-teges - From Teges Semar Pegulingan, via Bob Brown's 1972 recording.
- pelegongan-sanur - From McPhee's "Music in Bali", from Sanur.
- pelegongan-selisir - From McPhee's "Music in Bali", from Selisir.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.
- tembung-cenik - From McPhee's "Music in Bali", from .

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: 3᭦ to 7᭦
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: selisir-c: [-1-9][12356]|`[12356][.^]*`(bb|b|n|#|x)? -- pitch
val
The usual saih lima.
Use Javanese-style cipher notation.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- demung - From McPhee's "Music in Bali", from .
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- gong-apuan - From McPhee's "Music in Bali", from Apuan.
- gong-gianyar - From McPhee's "Music in Bali", from Gianyar.
- gong-klungkung - From McPhee's "Music in Bali", from Klungkung.
- gong-peliatan - From McPhee's "Music in Bali", from Peliatan.
- gong-sayan - From McPhee's "Music in Bali", from Sayan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- pegulingan-teges - From Teges Semar Pegulingan, via Bob Brown's 1972 recording.
- pelegongan-sanur - From McPhee's "Music in Bali", from Sanur.
- pelegongan-selisir - From McPhee's "Music in Bali", from Selisir.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.
- tembung-cenik - From McPhee's "Music in Bali", from .

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: 1.. to 1^^
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: selisir-kantilan-b: [-1-9][᭦᭡᭢᭣᭤]#?[_^-](bb|b|n|#|x)? -- pitch
val
The usual saih lima.
This is centered around the kantilan range.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- demung - From McPhee's "Music in Bali", from .
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- gong-apuan - From McPhee's "Music in Bali", from Apuan.
- gong-gianyar - From McPhee's "Music in Bali", from Gianyar.
- gong-klungkung - From McPhee's "Music in Bali", from Klungkung.
- gong-peliatan - From McPhee's "Music in Bali", from Peliatan.
- gong-sayan - From McPhee's "Music in Bali", from Sayan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- pegulingan-teges - From Teges Semar Pegulingan, via Bob Brown's 1972 recording.
- pelegongan-sanur - From McPhee's "Music in Bali", from Sanur.
- pelegongan-selisir - From McPhee's "Music in Bali", from Selisir.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.
- tembung-cenik - From McPhee's "Music in Bali", from .

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: ᭡᭬ to ᭦᭫
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: selisir-kantilan: [-1-9][ioeua]#?[_^-](bb|b|n|#|x)? -- pitch
val
The usual saih lima.
This is centered around the kantilan range.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- demung - From McPhee's "Music in Bali", from .
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- gong-apuan - From McPhee's "Music in Bali", from Apuan.
- gong-gianyar - From McPhee's "Music in Bali", from Gianyar.
- gong-klungkung - From McPhee's "Music in Bali", from Klungkung.
- gong-peliatan - From McPhee's "Music in Bali", from Peliatan.
- gong-sayan - From McPhee's "Music in Bali", from Sayan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- pegulingan-teges - From Teges Semar Pegulingan, via Bob Brown's 1972 recording.
- pelegongan-sanur - From McPhee's "Music in Bali", from Sanur.
- pelegongan-selisir - From McPhee's "Music in Bali", from Selisir.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.
- tembung-cenik - From McPhee's "Music in Bali", from .

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: o_ to i^
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: selisir-pemade-b: [-1-9][᭦᭡᭢᭣᭤]#?[_^-](bb|b|n|#|x)? -- pitch
val
The usual saih lima.
This is centered around the pemade range.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- demung - From McPhee's "Music in Bali", from .
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- gong-apuan - From McPhee's "Music in Bali", from Apuan.
- gong-gianyar - From McPhee's "Music in Bali", from Gianyar.
- gong-klungkung - From McPhee's "Music in Bali", from Klungkung.
- gong-peliatan - From McPhee's "Music in Bali", from Peliatan.
- gong-sayan - From McPhee's "Music in Bali", from Sayan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- pegulingan-teges - From Teges Semar Pegulingan, via Bob Brown's 1972 recording.
- pelegongan-sanur - From McPhee's "Music in Bali", from Sanur.
- pelegongan-selisir - From McPhee's "Music in Bali", from Selisir.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.
- tembung-cenik - From McPhee's "Music in Bali", from .

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: ᭡᭬ to ᭦᭫
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: selisir-pemade: [-1-9][ioeua]#?[_^-](bb|b|n|#|x)? -- pitch
val
The usual saih lima.
This is centered around the pemade range.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- demung - From McPhee's "Music in Bali", from .
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- gong-apuan - From McPhee's "Music in Bali", from Apuan.
- gong-gianyar - From McPhee's "Music in Bali", from Gianyar.
- gong-klungkung - From McPhee's "Music in Bali", from Klungkung.
- gong-peliatan - From McPhee's "Music in Bali", from Peliatan.
- gong-sayan - From McPhee's "Music in Bali", from Sayan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- pegulingan-teges - From Teges Semar Pegulingan, via Bob Brown's 1972 recording.
- pelegongan-sanur - From McPhee's "Music in Bali", from Sanur.
- pelegongan-selisir - From McPhee's "Music in Bali", from Selisir.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.
- tembung-cenik - From McPhee's "Music in Bali", from .

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: o_ to i^
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: selisir: [-1-9][1-9][ioeua]#?(bb|b|n|#|x)? -- pitch
val
The usual saih lima.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to rambat. Laras:
- demung - From McPhee's "Music in Bali", from .
- gambang-krobokan - From McPhee's "Music in Bali", from Krobokan.
- gambuh-batuan - From McPhee's "Music in Bali", from Batuan.
- gambuh-tabanan - From McPhee's "Music in Bali", from Tabanan.
- gong-apuan - From McPhee's "Music in Bali", from Apuan.
- gong-gianyar - From McPhee's "Music in Bali", from Gianyar.
- gong-klungkung - From McPhee's "Music in Bali", from Klungkung.
- gong-peliatan - From McPhee's "Music in Bali", from Peliatan.
- gong-sayan - From McPhee's "Music in Bali", from Sayan.
- luang-seseh - From McPhee's "Music in Bali", from Seseh.
- pegulingan-klungkung - From McPhee's "Music in Bali", from Klungkung.
- pegulingan-tampak-gangsal - From McPhee's "Music in Bali", from Tampak Gangsal.
- pegulingan-teges - From Teges Semar Pegulingan, via Bob Brown's 1972 recording.
- pelegongan-sanur - From McPhee's "Music in Bali", from Sanur.
- pelegongan-selisir - From McPhee's "Music in Bali", from Selisir.
- rambat - From my gender rambat, made in Blabatuh, Gianyar, tuned in Munduk, Buleleng.
- tembung-cenik - From McPhee's "Music in Bali", from .

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: 3i to 7i
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: twelve-k: [-1-9][cdefgab](bb|b|n|#|x)? -- pitch
val
This variant treats accidentals like staff notation. If a pitch doesn't have an accidental, it will inherit from the key signature. It thus needs an explicit natural to cancel that out. Unlike staff notation, accidentals don't persist until the next barline.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: -1c to 9g
- default key: c-maj
- keys: (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-dorian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-hijaz, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-locrian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-lydian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-maj, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-min, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-mixolydian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-octa12, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-octa21, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-phrygian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-whole
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: twelve-r: [-1-9][srgmpdn](bb|b|n|#|x)? -- pitch
val
This is 12TET, but spelled relative to the current key and mode.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: -1s to 9p
- default key: c-maj
- keys: (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-dorian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-hijaz, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-locrian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-lydian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-maj, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-min, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-mixolydian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-octa12, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-octa21, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-phrygian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-whole
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: twelve: [-1-9][cdefgab](bb|b|n|#|x)? -- pitch
val
The world-famous equal tempered twelve note scale.
Scales in the "twelve" family use European style note naming. That is, note names look like octave-letter-accidentals like "4c#". They have a notion of a "layout", which is a pattern of half and whole steps, e.g. the piano layout, and a key, which is a subset of notes from the scale along with a preferred spelling for them. The rules of how enharmonic spelling works are complicated, and documented in Derive.Scale.Theory. The key is read from the key env var, and each scale has a list of keys it will accept.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: -1c to 9g
- default key: c-maj
- keys: (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-dorian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-hijaz, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-locrian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-lydian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-maj, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-min, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-mixolydian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-octa12, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-octa21, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-phrygian, (a#|a|ab|b#|b|bb|c#|c|cb|d#|d|db|e#|e|eb|f#|f|fb|g#|g|gb)-whole
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: wayang-kantilan: [-1-9][ioeua]#?[_^-](bb|b|n|#|x)? -- pitch
val
Saih gender wayang.
Kantilan scale. This can be used to give the the same score to both pemade and kantilan.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to sawan. Laras:
- gender-6-edo - From McPhee's "Music in Bali", from 6-Edo.
- gender-klandis - From McPhee's "Music in Bali", from Klandis.
- gender-kuta - From McPhee's "Music in Bali", from Kuta.
- gender-lod-peken - From McPhee's "Music in Bali", from Lod Peken.
- gender-patantaran - From McPhee's "Music in Bali", from Patantaran.
- gender-sawan - From McPhee's "Music in Bali", from Sawan.
- gender-tabanan - From McPhee's "Music in Bali", from Tabanan.
- sawan - Tuning from my gender wayang, made in Sawan, Singaraja.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: o_ to i^
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: wayang-pemade: [-1-9][ioeua]#?[_^-](bb|b|n|#|x)? -- pitch
val
Saih gender wayang.
Pemade scale. This can be used to give the the same score to both pemade and kantilan.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to sawan. Laras:
- gender-6-edo - From McPhee's "Music in Bali", from 6-Edo.
- gender-klandis - From McPhee's "Music in Bali", from Klandis.
- gender-kuta - From McPhee's "Music in Bali", from Kuta.
- gender-lod-peken - From McPhee's "Music in Bali", from Lod Peken.
- gender-patantaran - From McPhee's "Music in Bali", from Patantaran.
- gender-sawan - From McPhee's "Music in Bali", from Sawan.
- gender-tabanan - From McPhee's "Music in Bali", from Tabanan.
- sawan - Tuning from my gender wayang, made in Sawan, Singaraja.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: o_ to i^
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.
lookup: wayang: [-1-9][1-9][ioeua](bb|b|n|#|x)? -- pitch
val
Saih gender wayang.
Balinese scales come in detuned pairs. They use the tuning env var to select between pengumbang and pengisep. The env var should be set to either umbang or isep, defaulting to umbang. Normally the umbang and isep frequencies are hardcoded according to the scale, but if the %ombak control is present, they will be tuned that many hz apart.
The laras env var chooses between different tunings. It defaults to sawan. Laras:
- gender-6-edo - From McPhee's "Music in Bali", from 6-Edo.
- gender-klandis - From McPhee's "Music in Bali", from Klandis.
- gender-kuta - From McPhee's "Music in Bali", from Kuta.
- gender-lod-peken - From McPhee's "Music in Bali", from Lod Peken.
- gender-patantaran - From McPhee's "Music in Bali", from Patantaran.
- gender-sawan - From McPhee's "Music in Bali", from Sawan.
- gender-tabanan - From McPhee's "Music in Bali", from Tabanan.
- sawan - Tuning from my gender wayang, made in Sawan, Singaraja.

- transposers: {%t-chrom, %t-dia, %t-hz, %t-nn, %t-oct}
- range: 1i to 8i
Emit the pitch of a scale degree.
  • frac :: Num = 0 [*-frac] — Add this many hundredths of a scale degree to the output.