[CM] new syntax for (list (new midi)

Rob Howiler rhowiler at presby.edu
Thu Mar 3 09:59:51 PST 2016


Thank you.  That did the trick.  I don’t really need the “sprout” in there just to run a function I’ve defined, I guess.
> On Mar 3, 2016, at 12:53 PM, Johannes Quint <johannes.quint at web.de> wrote:
> 
> what about this:
> 
> (define (thump knum at)
>   (mp:midi :time at 
>            :key (- knum 18)
>            :dur .05 :amp .5)
>       (mp:midi :time at 
>            :key (- knum 23)
>            :dur .05 :amp .4))
> 
> (thump 72 0.5)
> 
> 
> 
> 
> Am 03.03.2016 um 18:08 schrieb Rob Howiler:
> 
>> Closer.  The mp:midi got me away from the unbound variable problem.  I’m getting sound now, but a beep at the console listener window alerts me to this:
>> 
>>>>> Error: (#<unspecified> #<unspecified>) is not a process
>> sprout: (error "~S is not a process" proc)        ; proc: (#<unspecified> #<unspecif...
>> sprout: (((tail proc (cdr tail))) ((null? tail...
>> sprout: ((error "~S is not a process" proc))     
>> sprout: ((do ((tail args (cdr tail)) (keyw #f)... ; args: (), file: #f, start: 0
>>                                                   ; id: 0
>>                                                   ; startBeat: 0
>> (sprout (thump 60 2)) 
>> 
>> Thanks again for the help.
>> Rob
>>> On Mar 3, 2016, at 12:02 PM, Johannes Quint <johannes.quint at web.de> wrote:
>>> 
>>> 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
>>> 
>> 
>> ------------------------------------------------------
>> 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
> 

------------------------------------------------------
Dr. Rob Howiler
Academic Computing Services Coordinator
Assistant Professor of Music
rhowiler at presby.edu
(864) 833-8324
------------------------------------------------------


-- 

------------------------------
<http://www.presby.edu>



More information about the Cmdist mailing list