help newby

Rick Taube taube@uiuc.edu
Thu, 20 Feb 1997 10:32:18 -0600


>how to implement in this process:
>
>(algorithm tst midi-note (length 48 rhythm 1
>duration 1 amplitude .5)
>  (setf note (item (steps 2 from 48)))
>)
>
>the next algorithm:
>if note > max then note=note-12='new offset'
>so all notes are lower then max (say 72)

what do you mean by "the next algoritm"? the next version?? a different
algorithm that should run concurrently?? your questions need to be more
specific if you want a specific solution. but in general, if you want 2
algorithms to use the same variables then use let:

(let ((maximum 74)
      (offset 40))
  (algorithm one ... )
  (algorithm two ... ))

this way either or both algos can refer to and set the same maximum and offset.