theHarmonicAlgorithm-3.2.0: Real-time harmonic progression generation for TidalCycles live performance
Safe HaskellNone
LanguageGHC2021

Harmonic.Interface.Tidal.Orchestra

Description

Voice line system (SATB + octave variants) and instrument functions with built-in MIDI range clipping and octave handling. Each instrument is a thin arrange wrapper — clip and octave shift are internal; the composer sees only voice assignment and kinetics range.

Range belongs to the instrument and lives here; channel belongs to the module the orchestra plays on, so every instrument takes a Rig first. The boot file declares one rig and binds the plain names to it (flute = O.flute rig …), which is why a performance file never names a channel: violin1 T (0,1) k vl flow Soprano # pizz sounds on whatever module the session declared. The Roland JV-1010 map lives in Harmonic.Interface.Tidal.Devices.JV1010 as jv1010.

Synopsis

Voice lines

data Voice Source #

An SATB voice, at one of five octave transpositions and one of three divisi tiers.

Divisi tiers: the base 20 voices (tier 0), then the same 20 primed (tier 1, read the ' fields), then double-primed (tier 2, the '' fields). Declared in three identical-order blocks of 20 so voiceBase / voiceTier derive by enum arithmetic (mod / div 20). Octave rides the constructor, so e.g. Bass8vb' reads the bass' field at octave −1.

Instances

Instances details
Bounded Voice Source # 
Instance details

Defined in Harmonic.Interface.Tidal.Orchestra

Enum Voice Source # 
Instance details

Defined in Harmonic.Interface.Tidal.Orchestra

Show Voice Source # 
Instance details

Defined in Harmonic.Interface.Tidal.Orchestra

Methods

showsPrec :: Int -> Voice -> ShowS #

show :: Voice -> String #

showList :: [Voice] -> ShowS #

Eq Voice Source # 
Instance details

Defined in Harmonic.Interface.Tidal.Orchestra

Methods

(==) :: Voice -> Voice -> Bool #

(/=) :: Voice -> Voice -> Bool #

Ord Voice Source # 
Instance details

Defined in Harmonic.Interface.Tidal.Orchestra

Methods

compare :: Voice -> Voice -> Ordering #

(<) :: Voice -> Voice -> Bool #

(<=) :: Voice -> Voice -> Bool #

(>) :: Voice -> Voice -> Bool #

(>=) :: Voice -> Voice -> Bool #

max :: Voice -> Voice -> Voice #

min :: Voice -> Voice -> Voice #

data VoiceLines Source #

The scale-degree pattern assigned to each voice.

Each SATB voice has three divisi tiers: base, ', ''. All are ordinary scale-degree patterns (same syntax and semantics); the primed fields only exist to hold extra divisi desks. Defaults stack one/two degrees above the base so an undeclared divisi 3 voices a chord; declared primes are whatever the composer writes.

Constructors

VoiceLines 

Fields

voiceLines :: VoiceLines Source #

Default voice lines: root in the bass, root 8va in the soprano, inner voices on the 2nd and 3rd degrees. Override the fields you want:

vl = voiceLines { soprano = "3 4 3 2", bass = "0" }

vlGet :: Voice -> VoiceLines -> Pattern Int Source #

Read the scale-degree pattern a given Voice should play, resolving both its SATB letter and its divisi tier.

voiceOct :: Voice -> Int Source #

Octave transposition carried by a Voice constructor: 0 loco, 1 for 8va, 2 for 15va, -1 for 8vb, -2 for 15vb.

Rig

data Rig Source #

One module's orchestral map: the MIDI channel each instrument answers on. The instrument functions read their channel from here, so a single declaration in the boot file selects the whole orchestra and the composer's surface stays channel-free. Ranges are not the rig's: an instrument's range is its own, whatever module plays it.

Constructors

Rig 

Fields

noArt :: ControlPattern Source #

Identity under #: contributes no fields, so the pattern keeps its own channel. The articulation tag for a technique the rig does not route.

Pitched instruments

Every pitched instrument shares the Instrument shape and carries its own MIDI range, reading only its channel from the Rig. Ranges are given in Tidal note space (MIDI − 60); the physical range follows in parentheses.

InstrumentRange
flute oboe clarinet bassoon horn trombone basstrom harp timpani violin1/2 viola cello contrabassC3-D6 Bb3-A6 D2-Bb6 Bb1-Eb5 B1-F5 Bb1-F5 A0-G3 B1-F#7 D2-C4 G3-A7 C3-E6 C2-C6 C1-C4

flute :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

oboe :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

clarinet :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

bassoon :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

horn :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

trombone :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

basstrom :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

harp :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

timpani :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

violin1 :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

violin2 :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

viola :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

cello :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

contrabass :: Rig -> Instrument Source #

Every pitched instrument takes the Rig it sounds on, then a Layer argument — T to voice the triad layer (default harmonic behaviour), S for the strata layer, M for the diatonic-mode layer, or a combination selector (TS/TM/SM pairs, TSM the full union, PT the shared pivot tones — on a polytonal genE context these are the 4-note structures, the pentad and the pivot-tone line; on a gen/genJ context S is the bar's chordscale pentatonic, M its mode, and PT the chord tones the pentatonic keeps). The boot file binds the rig, so in a session:

d1 $ flute T (0,1) k voiceLines flow Soprano d1 $ flute TS (0,1) k voiceLines flow Soprano -- genE pair

The numeric bounds are the range limits of the orchestral sampler patches and are authoritative; the note-name comments sit 2-4 semitones above the coded floor for bassoon, horn, trombone and harp. A practical review at the instrument sets both — never the numbers to the names.

Score mode

The same instruments reading written degrees against a layer of the progression in the IK: flute' M 1 "p" k "[0 2 4]/4". See Harmonic.Interface.Tidal.Score.

flute' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

oboe' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

clarinet' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

bassoon' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

horn' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

trombone' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

basstrom' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

harp' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

timpani' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

violin1' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

violin2' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

viola' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

cello' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

contrabass' :: Rig -> Layer -> Pattern Int -> Pattern String -> IK -> Pattern Int -> ControlPattern Source #

The score-mode form of each instrument: a layer, an octave (a pattern: 1 the melodic register, "[1,2]" two octaves), a dynamic mark, the IK and a degree pattern, sharing the plain form's range and channel; the articulation tags apply as usual:

, cello' M 0 "p" k "[-4 . 23 ~ . -6 . 03 ~]/4" # pizz

Unpitched percussion

bassdrum :: Rig -> Pattern Bool -> ControlPattern Source #

Bass drum and tam-tam, unpitched: a boolean pattern rather than a voice. The tam-tam carries a long sustain.

d1 $ bassdrum "t ~ ~ t"

tamtam :: Rig -> Pattern Bool -> ControlPattern Source #

Bass drum and tam-tam, unpitched: a boolean pattern rather than a voice. The tam-tam carries a long sustain.

d1 $ bassdrum "t ~ ~ t"

String articulations

pizz :: Rig -> ControlPattern Source #

String articulations, applied as a postfix tag:

, violin1 T (0,1) k vl flow Soprano # pizz

On a module that keeps one channel per technique the tag re-routes the line; where a technique has no destination the tag is noArt and the line sounds as written.

spicc :: Rig -> ControlPattern Source #

String articulations, applied as a postfix tag:

, violin1 T (0,1) k vl flow Soprano # pizz

On a module that keeps one channel per technique the tag re-routes the line; where a technique has no destination the tag is noArt and the line sounds as written.

marc :: Rig -> ControlPattern Source #

String articulations, applied as a postfix tag:

, violin1 T (0,1) k vl flow Soprano # pizz

On a module that keeps one channel per technique the tag re-routes the line; where a technique has no destination the tag is noArt and the line sounds as written.

legg :: Rig -> ControlPattern Source #

String articulations, applied as a postfix tag:

, violin1 T (0,1) k vl flow Soprano # pizz

On a module that keeps one channel per technique the tag re-routes the line; where a technique has no destination the tag is noArt and the line sounds as written.

arco :: Rig -> ControlPattern Source #

String articulations, applied as a postfix tag:

, violin1 T (0,1) k vl flow Soprano # pizz

On a module that keeps one channel per technique the tag re-routes the line; where a technique has no destination the tag is noArt and the line sounds as written.

Divisi

type Instrument = Layer -> (Double, Double) -> IK -> VoiceLines -> VoiceFunction -> Voice -> ControlPattern Source #

The shared shape of every orchestral instrument function.

divisi :: Int -> Instrument -> Instrument Source #

Optional prefix wrapper: divide an instrument into n desks, each reading the next divisi tier of its voice (base, ' , ''), scaled by equal-power 1/sqrt n so the combined loudness matches the undivided line.

Used in the space form; drop divisi n and the line is a normal single voice:

, divisi 3 violin1 T (0,1) k vl grid Soprano — 3 desks: Soprano/Soprano'/Soprano'' , violin1 T (0,1) k vl grid Soprano — plain

Octave rides the Voice argument, so divisi 2 contrabass T (0.9,1) k vl grid Bass8vb voices Bass8vb and Bass8vb' (tier + octave together).

divisi2 :: ControlPattern Source #

Equal-power volume scalers for hand-built desks that differ in articulation or entry (not uniform divisi). Postfix like the articulation tags — set amp; the block's outer |* vel d then multiplies, giving d/sqrt n.

, violin1 T (0,1) k vl flow Soprano # divisi2 , violin1 T (0.9,1) k vl grid Soprano' # divisi2

divisi3 :: ControlPattern Source #

Equal-power volume scalers for hand-built desks that differ in articulation or entry (not uniform divisi). Postfix like the articulation tags — set amp; the block's outer |* vel d then multiplies, giving d/sqrt n.

, violin1 T (0,1) k vl flow Soprano # divisi2 , violin1 T (0.9,1) k vl grid Soprano' # divisi2

Internal (for testing only)

clip :: (Int, Int) -> ControlPattern -> ControlPattern Source #

Drop any event whose note falls outside a MIDI range. Applied outermost by Instrument, so it filters after the octave shift.

voiceBase :: Voice -> Voice Source #

Strip the divisi prime, giving the tier-0 (base) voice. Relies on the three identical-order Voice blocks of 20.

voiceTier :: Voice -> Int Source #

Divisi tier of a voice: 0 (base), 1 ('), 2 ('').