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

Harmonic.Interface.Tidal.Devices.P6

Description

The P-6 answers on three independent receive channels at once, so it is three performable layers rather than one instrument:

Auto CH = 16  auto   the focused pad, played chromatically and polyphonically
S.CH    = 15  smpl   the global 48 pads, each at its own fixed pitch
G.CH    = 14  gnlr   the granular engine, notes and CC
Program = 16         preset select, fixed on the device; the auto layer shares it

All three are reassigned from the device defaults (15 / 11 / 4), so the unit must be configured to match. They sound simultaneously, sharing only the P-6's voice pool.

CC numbers are quoted from the official Roland P-6 MIDI chart. The chart carries ONE control-change set, received on either the granular or the auto channel, so every control below is shared between the granular and auto layers. Each defaults to the granular channel; postfix a channel to retarget it, since # takes values from the right — this is the same control, moved onto the auto layer:

, p6cutoff (lfo saw 0.2 0.9) # ch 16
Synopsis

Source

p6prog :: Pattern Double -> ControlPattern Source #

Select a preset, 0-63, on the program channel.

p6src :: Pattern Double -> ControlPattern Source #

The granular source by pad number, 1-48 — the same numbering as p6pad. Patterning this is what makes the granular layer sequenceable rather than hand-selected on the unit.

TODO confirm the slot count on the device. The pad grid is 48 (MIDI notes 48-95), but Roland documents the Sample parameter as "A-1 to h-8", which reads as 64 slots; if so the divisor here becomes 64.

Playhead

p6headpos :: Pattern Double -> ControlPattern Source #

Where in the sample the grains are drawn from — a fraction of the sample, 0 to 1. Roland gives this as "0.000 to sample end", so the absolute range depends on the loaded sample and a fraction is the only stable unit.

p6headspeed :: Pattern Double -> ControlPattern Source #

How fast the playhead travels, as a speed multiplier: -4.00 to +4.00. 1 is normal speed, 0 freezes the playhead, negative values run backwards.

p6scrub :: Pattern Double -> Pattern Double -> ControlPattern Source #

Position (0 to 1) and speed (-4.00 to +4.00) as one gesture: scan, stall and reverse through the sample. Each side stays independently patternable.

, p6scrub (lfo saw 0.1 0.9) 1

Grain cloud

p6grains :: Pattern Double -> ControlPattern Source #

Grain density, 0.5 to 8.0.

p6grainsize :: Pattern Double -> ControlPattern Source #

Grain duration as a fraction of the sample, 0 to 1 — Roland gives it as "0.000 to sample duration", so it is sample-relative like p6headpos.

p6spread :: Pattern Double -> ControlPattern Source #

How wide the grains scatter, 0-100%.

p6grainshape :: Pattern Double -> ControlPattern Source #

The volume envelope each grain wears, 0-100.

p6cloud :: Pattern Double -> ControlPattern Source #

One axis from sparse and grainy to dense and washed. Grain count and spread rise with v while grain size falls, so the grains get shorter as they get more numerous — the inversion is the whole point of the macro. The three controls stay available separately.

Chaos

p6grainjitter :: Pattern Double -> ControlPattern Source #

The instability controls, all 0-100%: when each grain fires, how loud it is, and how often one plays backwards.

p6leveljitter :: Pattern Double -> ControlPattern Source #

The instability controls, all 0-100%: when each grain fires, how loud it is, and how often one plays backwards.

p6grainrev :: Pattern Double -> ControlPattern Source #

The instability controls, all 0-100%: when each grain fires, how loud it is, and how often one plays backwards.

p6chaos :: Pattern Double -> ControlPattern Source #

Mechanical to unstable on one axis: timing jitter, level jitter and reverse probability together.

Pitch

p6coarse :: Pattern Double -> ControlPattern Source #

Coarse tuning in semitones, -24 to +24.

p6fine :: Pattern Double -> ControlPattern Source #

Fine tuning in cents, -100 to +100.

p6detune :: Pattern Double -> ControlPattern Source #

Random pitch variation across grains, 0-100%.

p6grainkf :: Pattern Double -> ControlPattern Source #

Whether grain time follows the played pitch (formant-preserving) or rides it, 0 to 1.

Filter

p6filtertype :: Pattern Double -> ControlPattern Source #

Filter type, 1-indexed: 1 OFF, 2 LPF, 3 BPF, 4 HPF, 5 PKG.

p6cutoff :: Pattern Double -> ControlPattern Source #

Cutoff, resonance, envelope depth, key follow and velocity sensitivity, all 0 to 1 — the device scale is 0-255 with no stated taper.

p6res :: Pattern Double -> ControlPattern Source #

Cutoff, resonance, envelope depth, key follow and velocity sensitivity, all 0 to 1 — the device scale is 0-255 with no stated taper.

p6filterenv :: Pattern Double -> ControlPattern Source #

Cutoff, resonance, envelope depth, key follow and velocity sensitivity, all 0 to 1 — the device scale is 0-255 with no stated taper.

p6filterkf :: Pattern Double -> ControlPattern Source #

Cutoff, resonance, envelope depth, key follow and velocity sensitivity, all 0 to 1 — the device scale is 0-255 with no stated taper.

p6filtervel :: Pattern Double -> ControlPattern Source #

Cutoff, resonance, envelope depth, key follow and velocity sensitivity, all 0 to 1 — the device scale is 0-255 with no stated taper.

Envelope

p6attack :: Pattern Double -> ControlPattern Source #

The four stages of the time envelope.

p6decay :: Pattern Double -> ControlPattern Source #

The four stages of the time envelope.

p6sustain :: Pattern Double -> ControlPattern Source #

The four stages of the time envelope.

p6release :: Pattern Double -> ControlPattern Source #

The four stages of the time envelope.

p6env :: Pattern Double -> Pattern Double -> Pattern Double -> Pattern Double -> ControlPattern Source #

All four stages in one call.

p6envmode :: Pattern Double -> ControlPattern Source #

Envelope mode, 1-indexed: 1 ADSR, 2 ADR, 3 ADA.C.

p6envkf :: Pattern Double -> ControlPattern Source #

Envelope time key-follow, 0 to 1.

p6ampsw :: Pattern Double -> ControlPattern Source #

Amp switch, 1-indexed: 1 Off, 2 On.

p6startmode :: Pattern Double -> ControlPattern Source #

Start mode, 1-indexed: 1 Cold, 2 Hot.

Output and effects

p6level :: Pattern Double -> ControlPattern Source #

Level, the two effect sends and the lo-fi stage, all 0 to 1. p6level is what p6pump drives, so it stays a plain gain fraction.

p6pan :: Pattern Double -> ControlPattern Source #

Pan position: -64 hard left, 0 centre, +63 hard right. Only active while p6autopan is OFF.

p6autopan :: Pattern Double -> ControlPattern Source #

Auto-pan, 1-indexed: 1 OFF, 2 ALT, 3 SWING, 4 RND.

p6bus :: Pattern Double -> ControlPattern Source #

Output routing, 1-indexed: 1 Bus A, 2 Bus B, 3 EFCT.

p6senddel :: Pattern Double -> ControlPattern Source #

Level, the two effect sends and the lo-fi stage, all 0 to 1. p6level is what p6pump drives, so it stays a plain gain fraction.

p6sendrev :: Pattern Double -> ControlPattern Source #

Level, the two effect sends and the lo-fi stage, all 0 to 1. p6level is what p6pump drives, so it stays a plain gain fraction.

p6lofi :: Pattern Double -> ControlPattern Source #

Level, the two effect sends and the lo-fi stage, all 0 to 1. p6level is what p6pump drives, so it stays a plain gain fraction.

p6lofisw :: Pattern Double -> ControlPattern Source #

Lo-fi switch, 1-indexed: 1 Off, 2 On.

p6revtime :: Pattern Double -> ControlPattern Source #

The onboard reverb and delay.

p6revlvl :: Pattern Double -> ControlPattern Source #

The onboard reverb and delay.

p6deltime :: Pattern Double -> ControlPattern Source #

The onboard reverb and delay.

p6dellvl :: Pattern Double -> ControlPattern Source #

The onboard reverb and delay.

Pads

p6note :: Int -> Int -> Int Source #

The MIDI note for bank b, pad n: notes 48-95 map bank A pad 1 through bank H pad 6, eight banks of six. Both indices are 1-based.

p6trig :: Int -> Int -> Pattern Bool -> ControlPattern Source #

Trigger bank b, pad n on a boolean rhythm.

p6pad :: Int -> Pattern Bool -> ControlPattern Source #

Trigger pad n counting straight through all 48, ignoring banks, so p6pad 1 and p6trig 1 1 are the same pad.

Device-native variants

Primed variants taking the exact number the P-6 itself displays, for setting a patch to a value read off the unit. The unprimed forms stay 0-1 and are what modulation wants.

Only controls whose unprimed form is a 0-1 abstraction have a primed variant. Anything already in device units -- p6coarse in semitones, p6spread in percent, p6pan, p6src, and every selector -- has no prime, because it is already the number on the display. p6headpos and p6grainsize have none either: Roland gives them in seconds "0.000 to sample end", so the absolute value depends on the sample.

p6cutoff' :: Pattern Double -> ControlPattern Source #

Filter and envelope controls on the P-6's own 0-255 scale.

p6res' :: Pattern Double -> ControlPattern Source #

Filter and envelope controls on the P-6's own 0-255 scale.

p6filterenv' :: Pattern Double -> ControlPattern Source #

Filter and envelope controls on the P-6's own 0-255 scale.

p6filterkf' :: Pattern Double -> ControlPattern Source #

Filter and envelope controls on the P-6's own 0-255 scale.

p6filtervel' :: Pattern Double -> ControlPattern Source #

Filter and envelope controls on the P-6's own 0-255 scale.

p6attack' :: Pattern Double -> ControlPattern Source #

Filter and envelope controls on the P-6's own 0-255 scale.

p6decay' :: Pattern Double -> ControlPattern Source #

Filter and envelope controls on the P-6's own 0-255 scale.

p6sustain' :: Pattern Double -> ControlPattern Source #

Filter and envelope controls on the P-6's own 0-255 scale.

p6release' :: Pattern Double -> ControlPattern Source #

Filter and envelope controls on the P-6's own 0-255 scale.

p6envkf' :: Pattern Double -> ControlPattern Source #

Filter and envelope controls on the P-6's own 0-255 scale.

p6grainkf' :: Pattern Double -> ControlPattern Source #

Filter and envelope controls on the P-6's own 0-255 scale.

p6level' :: Pattern Double -> ControlPattern Source #

Level on the P-6's 0-127 scale, where 100 is 0 dB and 127 is +12 dB.

p6senddel' :: Pattern Double -> ControlPattern Source #

Sends and the lo-fi stage, 0-255.

The two sends are documented at 0-255; the lo-fi intensity has no published range and is assumed to share it.

p6sendrev' :: Pattern Double -> ControlPattern Source #

Sends and the lo-fi stage, 0-255.

The two sends are documented at 0-255; the lo-fi intensity has no published range and is assumed to share it.

p6lofi' :: Pattern Double -> ControlPattern Source #

Sends and the lo-fi stage, 0-255.

The two sends are documented at 0-255; the lo-fi intensity has no published range and is assumed to share it.

p6revtime' :: Pattern Double -> ControlPattern Source #

Reverb and delay on their own scales: levels and reverb time are 0-255, delay time is 1-740 ms.

p6revlvl' :: Pattern Double -> ControlPattern Source #

Reverb and delay on their own scales: levels and reverb time are 0-255, delay time is 1-740 ms.

p6deltime' :: Pattern Double -> ControlPattern Source #

Reverb and delay on their own scales: levels and reverb time are 0-255, delay time is 1-740 ms.

p6dellvl' :: Pattern Double -> ControlPattern Source #

Reverb and delay on their own scales: levels and reverb time are 0-255, delay time is 1-740 ms.

Raw access

p6raw :: Pattern Double -> Pattern Double -> ControlPattern Source #

Any control change by number, taking a raw 0-1 value — the escape hatch for when a calibration above turns out wrong on the device.

, p6raw 74 0.5 # o

Sidechain

p6pump :: Pattern Bool -> Pattern Double -> Double -> ControlPattern Source #

Duck the P-6 against a ghost sidechain: pump driving Level (CC 7).

Roland's chart names CC 7 GRANULAR [Level], so on the granular channel this is the granular engine's own gain and ducks reliably. Postfixed onto the auto channel it most likely moves that same parameter rather than an independent auto level, and the sampler channel is not listed as receiving control change at all — confirm on the device before relying on either.

Sits in the stack as its own element, never applied to the notes:

, p6pump "1 0 0 0" 0.8 1.5 # o