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



i still can't get this to work :O(

it just shuffles slice zero, no matter how many times i run it

if i change currentslice to zero instead of -1, then it just repeats slice 1 and never advances

when it reaches the cycle boundary it goes a bit bonkers as well - it sees to halve the slice length - weird

sim

On Fri, Jan 7, 2011 at 9:36 PM, Jeff Larson <jeff@zonemobius.com> wrote:
Try this one.  The bug was that the math assumes that that subcycles
are numbered from zero but the Shuffle function wants them numbered from 1.
I just tested this one and it seems to work.  From this basis we could do other things
like binding it to several MIDI notes and having the note number select which slice
to play.

Oh and Per, I'm not getting any clicks when I do this so this may have been fixed
in 1.43.  One thing to check though, open the Global Parameters window and check
the value for "Fade Frames", make sure it is 128.


Jeff

--------------------------------------------------------------------------------
!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

# internally subcycles/slices are numbered from 0
# but the Shuffle command wants them numbered from 1
Variable shuffleSlice currentSlice + 1

Message Shuffling $shuffleSlice slice out of $slices
Shuffle slices shuffleSlice