- [Macro]
(sv+object slot amount)
Increments the value of slot in object by amount, where slot is either the unquoted symbol or keyword name of a slot in object. Returns the incremented value.
Examples:
Example 1. The sv+ macro.
(define m (new midi :time 0 :duration 2 :keynum 60)) (sv+ m :duration (between .2 .5)) ⇒ 2.4461563 (sv+ m :keynum -12) ⇒ 48
See also:
fold-objects[Function]map-objects[Function]subobjects[Function]sv[Macro]sv*[Macro]