Looper's Delight Archive Top (Search)
Date Index
Thread Index
Author Index
Looper's Delight Home
Mailing List Info

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Date Index][Thread Index][Author Index]

Re: another mobius question



just tried out the script below - it looks extremely cool, but i'm afraid it doesn't completely work

t does the first part (you hear the first granule over and over), but you have to manually undo and rerun to get the next slice. if you just rerun, nothing changes

you also don't get the message saying which slice is currenlty being shuffled

it's too complicated for me to troubleshoot, 'm afraid, so i don't know where it's going wrong, sorry

sim


This script will divide the loop into "slices" equal
to the current subcycle length, then create a new layer
containing repetitions of just the current subcycle.  Each
time you run it will reshuffle the original layer and create
a new layer containing the next subcycle.  When you reach the
end it wraps back to the first subcycle.

Jeff

------------------------------
----------------------------------------
!autoload
!name Subcycle Sequence

# Variable containing the current 'slice' in the sequence
Variable global currentSlice -1

# The number of slices will be the number of subcycles times cycles
# so the resulting slice will be equal to one subcycle
Variable slices subCycleCount * cycleCount

if currentSlice == -1
  # first time here, make a shuffle pattern with
  # the current subcycle
  set currentSlice subCycleNumber + (subCycleCount * cycleNumber)

else
  # we've already done the shuffle, undo back to the original layer
  Undo

  # calculate the next slice
  set currentSlice currentSlice + 1
  if currentSlice >= slices
     # wrap around to the beginning
     set currentSlice 0
  endif
endif

Message Shuffling $currentSlice slice out of $slices

# slice it up and start playing the selected slice