hi Philippe,
here an example for pan

(define (player)
  (process
        for i from 0 to 127 do
        (mp:ctrl :num 10 :val i :chan 0)  ;between 0 Left and 127 Right
         (mp:midi :key 80 :dur .05 :amp .5 :chan 0)         
         (wait .1)
))
(sprout (player) )
;;;or 
(sprout (player) "pan.mid“)

;;; and another one for volume fade
(define (player-volume)
  (process
        for i from 0 to 1 by .1 do
         (mp:midi :key 80 :dur .05 :amp i :chan 0)         
         (wait .1)
))
(sprout (player-volume) )
;;;or 
(sprout (player-volume) "volume.mid")


viele Grüße / all the best
Ludger Brümmer

-- 
Prof. Ludger Brümmer
Leitung | Head of Department
Hertz-Labor | Hertz-Lab

Professor für Komposition für digitale Medien
Musikhochschule Trossingen, mh-trossingen.de

///////  / |<  ||| | ZKM | Zentrum für Kunst und Medien Karlsruhe
///////  / |<  ||| | ZKM | Center for Art and Media Karlsruhe
///////  / |<  ||| | ZKM | Centre d'Art et des Médias Karlsruhe

Lorenzstr. 19, D-76135 Karlsruhe
Tel +49-(0)721-8100-1601, Fax +49-(0)721-8100-1699
E-Mail: [email protected]
www.zkm.de



 <https://zkm.de/critical-zones/>

Aktuelle Ausstellungen <http://www.zkm.de/ausstellungen> – current exhibitions 
<http://www.zkm.de/en/exhibitions>

> Am 17.05.2020 um 11:39 schrieb [email protected]:
> 
> Hi everyone, 
> 
> Noone has answered so far.
>  
> Can anyone help me, please?
>  
> Here are my questions again:
> 
> I don't understand what I have to type to use the Midi Controlers Numbers in 
> Grace:
> 
> mp:ctrl? (mp:ctrl :num 10 :val 120 :chan 0)? what values are needed in the 
> parameters and what are their meanings ?
> mp:press? (ditto)
> mp:prog? (is the only use the change of instruments or can we utilize the 
> command for other possibilities?)
> 
> And : how to pan from left to right ? how to up and down the volume ? etc.
> 
> Thank you,
> 
> Looking forward to your answers.
> 
> Best regards,
> Philippe
> 
> 
> _______________________________________________
> Cmdist mailing list
> [email protected]
> https://cm-mail.stanford.edu/mailman/listinfo/cmdist

_______________________________________________
Cmdist mailing list
[email protected]
https://cm-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to