[CM] new syntax for (list (new midi)
Johannes Quint
johannes.quint at web.de
Thu Mar 3 09:02:38 PST 2016
maybe this way:
(define (thump knum at)
;;make two percussive events below knum)
(list (mp:midi :time at
:key (- knum 18)
:dur .05 :amp .5)
(mp:midi :time at
:key (- knum 23)
:dur .05 :amp .4)))
best
Am 03.03.2016 um 17:57 schrieb Rob Howiler:
> Hi
> I am trying to make something work, but I am using old syntax I am sure. Below is what I am trying to do. Can anyone help me with the proper syntax?
> Thanks
> Rob
>
> (define (thump knum at)
> ;;make two percussive events below knum)
> (list (new midi :time at
> :key (- knum 18)
> :dur .05 :amp .5)
> (new midi :time at
> :key (- knum 23)
> :dur .05 :amp .4)))
>
> I’m getting an “unbound variable” error message for “new"
>
>
> ------------------------------------------------------
> Dr. Rob Howiler
> Academic Computing Services Coordinator
> Assistant Professor of Music
> rhowiler at presby.edu
> (864) 833-8324
> ------------------------------------------------------
>
>
> --
>
> ------------------------------
> <http://www.presby.edu>
>
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
Johannes Quint
www.johannes-quint.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20160303/511527b5/attachment.html>
More information about the Cmdist
mailing list