delete events while maintaining other start-times?

Tobias Kunze t@ulysses.Stanford.EDU
Sun, 1 Dec 1996 19:43:40 -0800


 | To put it another way, I want the rhythm of the object
 | being deleted to be added to the rhythm of the object just
 | before the deleted object, so that after a RUN or MIX, the
 | following start-times won't be changed. This is what you
 | want when deleting "bad notes" , for example.

This is a bit against the way CM deals with time, which is relational
as opposed to absolute.

Depending on your current syntax, you could

  1) CHANGE the event to a rest object, throwing away everything except
     the rhythm information
  2) fake a mute event (for instance by setting the amplitude in Midi
     to 0), loosing the slot's information
  3) use HIDE and MAP as shown below (ugly, ugly)

Maybe Rick could think about a better solution?


 : Stella [Bar]: list
 : Bar:
 :      1. #<MIDI-NOTE | 60| 0.500| 0.500| 0.500| 0|>
 :      2. #<MIDI-NOTE | 61| 0.500| 0.500| 0.500| 0|>
 :      3. #<MIDI-NOTE | 62| 0.500| 0.500| 0.500| 0|>
 :      4. #<MIDI-NOTE | 63| 0.500| 0.500| 0.500| 0|>
 :      5. #<MIDI-NOTE | 64| 0.500| 0.500| 0.500| 0|>
 : Stella [Bar]: tlist bar 0
 : Bar
 :     0.00    1. #<MIDI-NOTE | 60| 0.500| 0.500| 0.500| 0|>
 :     0.50    2. #<MIDI-NOTE | 61| 0.500| 0.500| 0.500| 0|>
 :     1.00    3. #<MIDI-NOTE | 62| 0.500| 0.500| 0.500| 0|>
 :     1.50    4. #<MIDI-NOTE | 63| 0.500| 0.500| 0.500| 0|>
 :     2.00    5. #<MIDI-NOTE | 64| 0.500| 0.500| 0.500| 0|>
 : Stella [Bar]: hide 3
 : Stella [Bar]: map [2:3::2] set rhythm[1] (+ $rhythm[1] $rhythm[2])
 : Stella [Bar]: tlist bar 0
 : Bar
 :     0.00    1. #<MIDI-NOTE | 60| 0.500| 0.500| 0.500| 0|>
 :     0.50    2. #<MIDI-NOTE | 61| 1.000| 1.000| 0.500| 0|>
 :     1.50    3. #<MIDI-NOTE | 63| 0.500| 0.500| 0.500| 0|>
 :     2.00    4. #<MIDI-NOTE | 64| 0.500| 0.500| 0.500| 0|>
 : Stella [Bar]: lsit
 : "LSIT" is not a command.
 : Stella [Bar]: list
 : Bar:
 :      1. #<MIDI-NOTE | 60| 0.500| 0.500| 0.500| 0|>
 :      2. #<MIDI-NOTE | 61| 1.000| 1.000| 0.500| 0|>
 :      3. #<MIDI-NOTE | 62| 0.500| 0.500| 0.500| 0|> (Hidden)
 :      4. #<MIDI-NOTE | 63| 0.500| 0.500| 0.500| 0|>
 :      5. #<MIDI-NOTE | 64| 0.500| 0.500| 0.500| 0|>
 : Stella [Bar]: