Commit 8bb77eaf authored by Carlo Laurenzi's avatar Carlo Laurenzi
Browse files

Major Changes and additions to SPAT LIB - updated new versions from 2016 to 2019

parent 9b13e6fe
This diff is collapsed.
This diff is collapsed.
......@@ -362,8 +362,9 @@ if (@is_undef($source))
@macro_def Space_i($snum, $scfg, $sdur, $sitp)
{
; If $sdur is 0.0, use SPACE_JUMP method instead (conceptually cleaner)
if ($sdur == 0.0) {
; print "Space_jumping"
if ($sdur == 0.0)
{
;print "Space_jumping" ($snum-1) " in " $source
_ := $source[($snum-1)].space_jump ($scfg)
}
else {
......@@ -429,9 +430,15 @@ if (@is_undef($source))
@proc_def ::RandSpace_i($snum, $configs, $grainrange_min, $grainrange_max, $stay_percent, $dur, $itp)
{
@local $fconfig
if ($configs[0].is_tab())
{ $fconfig := [$e[1] | $e in $configs] }
else
{ $fconfig := $configs }
@local $titi
$titi := $source[($snum-1)].xRandomSpace_i($configs, $grainrange_min, $grainrange_max, $stay_percent, $itp)
; print $titi
$titi := $source[($snum-1)].xRandomSpace_i($fconfig, $grainrange_min, $grainrange_max, $stay_percent, $itp)
;print $titi
$dur abort $titi
;print abort $titi RandSpace_i
}
......@@ -574,6 +581,7 @@ $T001 := [[0, "a" ], [4, "b"], [7, "c"], [10, "d"]]
; itp : interpolation structure
@proc_def ::Traj_looper($src, $Traj, $dur, $itp, $period)
; @abort := { print "abort ::trajLooper" }
{
if ($dur > $period)
{
......@@ -602,14 +610,15 @@ $T001 := [[0, "a" ], [4, "b"], [7, "c"], [10, "d"]]
loop $interdate ;@tempo := $SCORE_TEMPO
@exclusive,
@abort := {
;print "Fading out Traj_looper"
; print "Fading out Traj_looper"
;@FadeOut($src, 0.1)
}
{
;print "traj_loop_inside from " $NOW " with duration " ($interdate[$j % @size($interdate)]) "-- Space_i"
@Space_i($src, ($Traj[$j % @size($Traj), 1]), ($interdate[$j % @size($interdate)]), $itp)
$j := $j + 1
}}
}}
500s print cucu
}
@proc_def ::Traj_looper_t($src, $Traj, $dur, $itp, $period, $tempolocal) ; takes a tempo argument
......
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment