How to use INSERT clause in MAP?

Larry Troxler lt@westnet.com
Thu, 11 Dec 1997 21:07:33 -0500 (EST)


As you can see from the following log, I'm not at all sure how to use the
"insert" clause of the CM "map" command. "changes.txt" reffers me to
section 9.1 of the tutorial. Which would be fine, except that there is no
section labeled 9.1!

The description for the MAP command in the dictionary shows "{object}" as
the argument to the "insert" clause. Does this mean an expression that
returns an object? 

Well without further adieu, here's the problem I'm having. I can't get
"insert" to work at all, and "insert-at" sort of seems to work after
emitting an error message:

[begin Linux/ACL transcript]

Stella [Vamp3]: list 1:4
Vamp3:
     1. #<MIDI-NOTE | D3|   1/4|   1/4| 0.488| 0|> 
     2. #<MIDI-NOTE | F3|   1/4|   1/4| 0.165| 0|> 
     3. #<MIDI-NOTE | G3|     0|   3/4| 0.591| 0|> 
     4. #<MIDI-NOTE | F4|     0|   3/4| 0.488| 0|> 

Stella [Vamp3]: map 2:3 insert (object rest)
Error: attempt to take the length of a non-sequence:
       #<Interpreted Function (unnamed) @ #x8f816ca>

Restart actions (select using :continue):
 0: Return to Top-Level.
 1: Exit Top-Level.
[1] CM(25): :Tl

Stella [Vamp3]: list 1:4
Vamp3:
     1. #<MIDI-NOTE | D3|   1/4|   1/4| 0.488| 0|> 
     2. #<MIDI-NOTE | F3|   1/4|   1/4| 0.165| 0|> 
     3. #<MIDI-NOTE | G3|     0|   3/4| 0.591| 0|> 
     4. #<MIDI-NOTE | F4|     0|   3/4| 0.488| 0|> 

Stella [Vamp3]: map 2:3 insert-at @ (object rest)
New objects 
Error: No methods applicable for generic function
       #<STANDARD-GENERIC-FUNCTION SLOT-EXISTS-P> with args ((1 3)
CONTAINER)
       of classes (CONS SYMBOL)
  [condition type: PROGRAM-ERROR]

Restart actions (select using :continue):
 0: Try calling it again
 1: Return to Top-Level.
 2: Exit Top-Level.
[1c] CM(26): :tl

Stella [Vamp3]: list 1:8
Vamp3:
     1. #<MIDI-NOTE | D3|   1/4|   1/4| 0.488| 0|> 
     2. #<REST unset#x8f832aa> 
     3. #<MIDI-NOTE | F3|   1/4|   1/4| 0.165| 0|> 
     4. #<REST unset#x8f83322> 
     5. #<MIDI-NOTE | G3|     0|   3/4| 0.591| 0|> 
     6. #<MIDI-NOTE | F4|     0|   3/4| 0.488| 0|> 
     7. #<MIDI-NOTE |BF4|   3/4|   3/4| 0.559| 0|> 
     8. #<MIDI-NOTE | A3|     0|   3/4| 0.457| 0|> 

Stella [Vamp3]: 

[end transcript]

Any ideas? What is the correct syntax? Or is it a bug?

--  Larry Troxler  --  lt@westnet.com  --  Patterson, NY USA  --