au:get-param

(au:get-param au id scope group)


Description:

returns parameter id-scope-group from the given

  audiounit


Arguments:

        element -- the parameter's element index - (mixers have a

  different element for each input bus for example).

          scope -- the parameter's scope (global=0 input=1 output=2 group=3)

             id -- the parameter's id - an integer index


Returns: the parameters value - always a real number


Related: au:set-param au:print-params au:midi-out 


Examples:

(define inst1 (au:make-node "aumu" "dls " "appl"))

(define inst2 (au:make-node "aumu" "dls " "appl"))

(define reverb (au:make-node "aufx" "mrev" "appl"))

(define mixer (au:make-node "aumx" "smxr" "appl"))

(au:connect-node inst1 0 reverb 0)

(au:connect-node reverb 0 mixer 0)

(au:connect-node inst2 0 mixer 1)

(au:connect-node mixer 0 *au:output-node* 0)

(au:update-graph)

; print mixer parameters

(au:print-params mixer *au:global-scope*)

; gain of mixer bus 1 - connected to inst1

(print (au:get-param mixer 0 *au:input-scope* 0))

; gain of mixer bus 2 - connected to inst2

(print (au:get-param mixer 0 *au:input-scope* 1))



Back to index