@@ -100,8 +100,8 @@ FileWork =======================================================================
100100> IntMap. empty
101101> IntMap. empty
102102> IntMap. empty
103- >
104103> makeLenses ''Pairing
104+ >
105105> data FileWork =
106106> FileWork {
107107> fwDirectives :: Directives
@@ -174,13 +174,13 @@ Task preSample caches file's Sample Headers
174174Task smell creates sample-level Partner map, based on preSampleCache
175175Task instrument creates the zrec collection (IntMap) based on file's Instrument data
176176Task capture creates pzdb, based on file's Zone data, and generates zone owners collection (also IntMap)
177- Task clean
178- deletes empty zrecs based on Owners map
177+ Task clean deletes empty zrecs based on Owners map
179178Task adopt (adds dispos only, based on Owners map)
180179Task smash creates smashups based on Owners map and PreZone data
181180Task reorg invalidates Owners Map by what it does
182181 deletes Instruments, in effect
183182 modifies thereby orphaned PreZones to belong to absorbing member Instrument
183+ repairs owners map afterward
184184Task match (modifies fuzzy data only)
185185Task pair
186186 develops Pairing
@@ -262,12 +262,12 @@ Boot executive function ========================================================
262262> = fiIn{ fiFw = (snd . head ) fiTaskIfs fiFw
263263> , fiTaskIfs = tail fiTaskIfs}
264264> vFiles' = vFiles `VB.snoc` sffile{zPreZones = sy. sPreZones}
265- > survey' =
265+ > sy' =
266266> sy{sPerInstruments = Map. union cacheIn sy. sPerInstruments
267267> , sMatches = combineMatches matchesIn sy. sMatches
268268> , sDispositions = combinerd rdIn sy. sDispositions}
269269> in
270- > (vFiles', survey ')
270+ > (vFiles', sy ')
271271
272272support sample and instance ===========================================================================================
273273
@@ -547,6 +547,7 @@ capture task ===================================================================
547547>
548548> ok =
549549> 0 <= stA && stA <= enA && 0 <= stL && stL <= enL
550+ > && enA - stA > 200
550551> && enA - stA < 2 ^ (22 :: Word )
551552> && (digest. zdSampleMode == Just A. NoLoop || enL - stL < 2 ^ (22 :: Word ))
552553
@@ -579,7 +580,9 @@ produce and process capture results ============================================
579580> hasRom pz = stype pz >= 0x8000
580581> romClue pz = showHex (stype pz) []
581582> rangeClue pz = show (pz. pzDigest. zdKeyRange, pz. pzDigest. zdVelRange)
582- >
583+
584+ consume zone ==========================================================================================================
585+
583586> buildZone :: SFZone → Maybe PreZone → Word → SFZone
584587> buildZone fromZone mpz bix
585588> | traceIf trace_BZ False = undefined
@@ -695,8 +698,8 @@ pair task ======================================================================
695698> , psTasks :: [(String , PairsSurvey → IntMap Int )]}
696699>
697700> pairTaskIf _ _ fWork =
698- > ( (fwPairing . fwZonePairings .~ survey . psPaired)
699- > . (fwDispositions .~ survey . psDispos)) fWork
701+ > ( (fwPairing . fwZonePairings .~ sy . psPaired)
702+ > . (fwDispositions .~ sy . psDispos)) fWork
700703> where
701704> fName__ = " pairTaskIf"
702705>
@@ -711,8 +714,8 @@ pairing approach ===============================================================
711714
712715 And remember: peg 'em and pin ' em! I.E. collate (peg) candidates to push (pin) matchers to pairs list.
713716
714- > survey :: PairsSurvey
715- > survey = head $ dropWhile unfinished $ iterate' nextGen sinit
717+ > sy :: PairsSurvey
718+ > sy = head $ dropWhile unfinished $ iterate' nextGen sinit
716719> where
717720> sinit =
718721> PairsSurvey
@@ -742,8 +745,7 @@ pairing approach ===============================================================
742745> (tail sy. psTasks)
743746
744747Pairing algorithm phases ==============================================================================================
745- Each of these three functions operates on unpaired set. They are invoked, in following sequence,
746- during iterate'.
748+ Each of these three functions operates on unpaired set. They are invoked, in equence, during iterate'.
747749
748750> nominal sy =
749751> IntMap. foldlWithKey (conducePartners False sy. psUnpaired) IntMap. empty _fwSamplePairings
@@ -861,7 +863,9 @@ pairing convenience functions ==================================================
861863> where pz = accessPreZone " makeActions" fWork. _fwPreZones bix
862864> in
863865> IntSet. foldl' make IntMap. empty
864- >
866+
867+ husband owners ========================================================================================================
868+
865869> makeOwners :: IntMap PreZone {- [BagIndex → pz] -}
866870> → IntMap IntSet {- [InstIndex → [BagIndex]] -}
867871> makeOwners = IntMap. foldl' build IntMap. empty
0 commit comments