I cover the basic theory for this approach in the download section on my website
Also, for a discussion of how this is used in practice, see
viewtopic.php?f=55&t=202364&p=1590660#p1590660
(Update (Error correction): MIXOLYDIAN was changed to LYDIAN for the Sub-Dominant in the Major key.
I set three tracks Titled "Phrygian","Harmonic Minor", and "Major", which have no inputs or outputs, but control Push configuration clips on each Tracks, using Clyphx.
The "Phrygian" track switches between E Phrygian Mode(s) and the relative Minors and substitutes.
I usually play guitar with the capo on the 4th fret, so change scale root to C# or G# for A Phrygian ("por Abajo") and E Phrygian ("por Arriba"), respectively.
(Diatonic IV -> I -> V7 -> I for Major, Minor)
The "Harmonic Minor" track voices chords for the related Minor Scale, including Secondary Dominants
The "Major" track voices chords for the related Major Scale, including secondary dominants
(You will probably want to change the track configurations for your own needs)
=================================================
Track "Phrygian"
(Flamenco Group - Yellow *Phrygian)
[Min Gypsy] PUSH SCL TYPE MINOR GYPSY;"Harmonic Minor"/STOP;"Major"/STOP;PUSH MSG Min Gypsy All chords except I,V;
[Phrygian] PUSH SCL TYPE PHRYGIAN;"Harmonic Minor"/STOP;"Major"/STOP;PUSH MSG Phrygian All Chords except III;
[Bhairav (IV7)] PUSH SCL TYPE BHAIRAV;"Harmonic Minor"/STOP;"Major"/STOP;PUSH MSG IV7 Bhairav ;
(Related Minors - Light Blue)
[Am-] PUSH SCL TYPE MINOR; ;"Phrygian"/STOP;"Major"/STOP;PUSH MSG Am Natural (Tonic); (Natural Minor)
[Am+] PUSH SCL TYPE MELODIC MINOR;"Phrygian"/STOP;"Major"/STOP; Am Melodic (Tonic); (Melodic Minor)
(To change key - Green)
[Key A] PUSH SCL ROOT C#;;PUSH MSG A* Phrygian)
[Key E] PUSH SCL ROOT G#;PUSH MSG E* Phrygian;
====================================================
Track "Harmonic Minor"
(Related Harmonic Minor - Light Green)
[Dm->Am] PUSH SCL TYPE DORIAN;PUSH SCL ROOT D;"Phrygian"/STOP;"Major"/STOP;PUSH MSG Dm (Sub Dominant); (Sub-Dominant Dm)
[Am ] PUSH SCL TYPE HARMONIC MINOR; PUSH SCL ROOT A;"Phrygian"/STOP;"Major"/STOP;PUSH MSG Am (Tonic); (Tonic Am)
[E7->Am] PUSH SCL TYPE MINOR GYPSY;PUSH SCL ROOT E;"Phrygian"/STOP;"Major"/STOP;PUSH MSG E7 (Dominant); (Dominant E)
[A7->Dm] PUSH SCL TYPE MAJOR;PUSH SCL ROOT A;"Phrygian"/STOP;"Major"/STOP;PUSH MSG A7 -> Dm; (Secondary Dominant)
==============================================================
Track "Major"
(Related Major)
[F ->C] PUSH SCL TYPE LYDIAN;PUSH SCL ROOT F;"Phrygian"/STOP;"Harmonic Minor"/STOP;PUSH MSG F (Sub Dominant); (Sub-Dominant - F)
[C ] PUSH SCL TYPE MAJOR;PUSH SCL ROOT C;"Phrygian"/STOP;"Harmonic Minor"/STOP;PUSH MSG C (Tonic); (Tonic - C)
[G7->C] PUSH SCL TYPE MINOR GYPSY;PUSH SCL ROOT G;"Phrygian"/STOP;"Harmonic Minor"/STOP;PUSH MSG G7->C (Dominant); (Dominant G7)
[C7->F] PUSH SCL TYPE MINOR GYPSY;PUSH SCL ROOT C;"A Phrygian/STOP;"Harmonic Minor"/STOP; PUSH MSG C7->F;
[D7->G] PUSH SCL TYPE MINOR GYPSY;PUSH SCL ROOT D;"A Phrygian/STOP;"Harmonic Minor"/STOP; PUSH MSG D7->G; (Secondary Dominant)
(Related Minors - Light Blue)
[Am-] PUSH SCL TYPE MINOR; PUSH SCL ROOT A;"Phrygian"/STOP;"Major"/STOP;PUSH MSG Am Natural (Tonic); (Natural Minor)
[Am+] PUSH SCL TYPE MELODIC MINOR; PUSH SCL ROOT A;"Phrygian"/STOP;"Major"/STOP; Am Melodic (Tonic); (Melodic Minor)
======================================================================