OverviewClamps PackagesCM DictionaryClamps DictionaryFomus

sv*

Macro

(sv* object slot amount)

Scales 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 scaled value.

Examples

;; The sv* macro.
(define m (new midi :time 0 :duration 2 :keynum 60))

(sv* m :duration 2)
 4
(sv+ m :keynum 1/2)
 30

See also