Icon representing a recipe

Recipe: Breathing Bands

created by lupussapien

Profile


Name
Breathing Bands
ID
102368
Shared with
Public
Parent
None
Children
None
Created on
May 25, 2017 at 22:16 PM UTC
Updated on
May 25, 2017 at 22:16 PM UTC
Description

Breathing Bands

Best for


Code


bandstrength=5 factor=0.75 stepsize=0.8 for the_band = 1,band.GetCount() do print(the_band); band.SetStrength(the_band,bandstrength) band.SetGoalLength(the_band,band.GetLength(the_band)) end recentbest.Save() repeat recent_best = recentbest.GetScore()+0.1 for the_band = 1,band.GetCount() do print("Setting band:",the_band) start_length = band.GetLength(the_band) for band_length = start_length,start_length*factor,-stepsize do band.SetGoalLength(the_band,band_length) --structure.MutateSidechainsAll(1) structure.WiggleAll(4,true,true) structure.ShakeSidechainsAll(1) end for band_length = start_length*factor,start_length,stepsize do band.SetGoalLength(the_band,band_length) --structure.MutateSidechainsAll(1) structure.WiggleAll(4,true,true) structure.ShakeSidechainsAll(1) end recentbest.Restore() structure.MutateSidechainsAll(1) structure.WiggleAll(4,true,true) structure.ShakeSidechainsAll(1) start_length = band.GetLength(the_band) for band_length = start_length,start_length/factor,stepsize do band.SetGoalLength(the_band,band_length) --structure.MutateSidechainsAll(1) structure.WiggleAll(4,true,true) structure.ShakeSidechainsAll(1) end for band_length = start_length/factor,start_length,-stepsize do band.SetGoalLength(the_band,band_length) --structure.MutateSidechainsAll(1) structure.WiggleAll(4,true,true) structure.ShakeSidechainsAll(1) end recentbest.Restore() --structure.MutateSidechainsAll(1) structure.WiggleAll(4,true,true) structure.ShakeSidechainsAll(4) end until recentbest.GetScore() < recent_best

Comments