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



OH OK.. I just fixed it by  set currentSlice 1

dunno what it did but it worked! ha

BTW, I have 1.42... should I switch?

Mark

On Fri, Jan 7, 2011 at 10: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





--
mark francombe
www.markfrancombe.com
www.ordoabkhao.com
twitter @markfrancombe
http://vimeo.com/user825094
http://www.looop.no