[CM] midi-controller-values

Johannes Quint johannes.quint at web.de
Thu Apr 24 02:43:50 PDT 2008


rick,

the following problem occurs when i try to get the value of a midi- 
controller-value:
when i have:

define function get-val (m)
   begin with v
  if mm:ctrl?(m) then print mm:val(m)
end

send "mp:inhook", get-val

i get in the console:

 >>> Error: unbound variable
     Aborting MIDI inhook.

the same with mm:time works:

define function get-time (m)
   begin with v
  if mm:ctrl?(m) then print mm:time(m)
end

send "mp:inhook", get-time

thanks for help, johannes

_________________________

Johannes Quint
Rilkestr.55
D-53225 Bonn
0228 468256
johannes.quint at web.de
http://www.johannes-quint.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/pipermail/cmdist/attachments/20080424/d4011788/attachment.html 


More information about the Cmdist mailing list