Metro command

View: New views
5 Messages — Rating Filter:   Alert me  

Metro command

by phiroc :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

is there an equivalent to the metro command in PureData, in CM3?

I have noticed the in-tempo(beats, tempo) function in the documentation.

Is this equivalent? Could someone provide an example of its use?

Many thanks.

Philippe




_______________________________________________
Cmdist mailing list
Cmdist@...
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: Metro command

by Heinrich Taube-2 :: Rate this Message:

| View Threaded | Show Only this Message

halim beere added metronomes about 2 months ago and the entire  
scheduler is now beat/metronome based.

for information about metronomes see the section "Metronomes" in  
cm.html:
        Help>Reference>Common Music ,  then click on Metronomes in the index

he also wrote excellent examples:

        Help>Examples>Sal>Metronome

also lisp versions by  Aykut:

        Help>Examples>Lisp>Metronome



On Jan 15, 2012, at 7:35 AM, Philippe de Rochambeau wrote:

> Hello,
>
> is there an equivalent to the metro command in PureData, in CM3?
>
> I have noticed the in-tempo(beats, tempo) function in the  
> documentation.
>
> Is this equivalent? Could someone provide an example of its use?
>
> Many thanks.
>
> Philippe
>
>
>
> _______________________________________________
> Cmdist mailing list
> Cmdist@...
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

_______________________________________________
Cmdist mailing list
Cmdist@...
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: Metro command

by Heinrich Taube-2 :: Rate this Message:

| View Threaded | Show Only this Message

in-tempo scales a unit in beats to a particular tempo value and return  
the value in seconds

(in-tempo .5 60)
-> 0.5

(in-tempo .5 90)
-> 0.33333333333333

the rhythm() function converts a symbolic rhythmic value to a time in  
seconds

(rhythm 'e 60)
-> 0.5

(rhythm 'e 90)
-> 0.33333333333333

(rhythm 'w+s )
-> 4.25


see cm.html


_______________________________________________
Cmdist mailing list
Cmdist@...
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: Metro command

by Heinrich Taube-2 :: Rate this Message:

| View Threaded | Show Only this Message

just to beat a dead horse...  in pure data, metro sends a bang out at  
some time interval to do something, ie

        [metro 1000]
        |
        [+ 3 4]
        |
        [print ]

or whatever. In Lisp "doing something" is evaluation,
(+ 3 4)
and you can create functions that do arbitrary evaluation for you

(define  (mybang x)
   (format #t "bang at ~S!~%" x))

(mybang 100)


to  evaluate something at periodic intervals in Grace you put a  
function that does what you in cm's scheduler using 'sprout'.  
scheduled  functions are passed the current time and should return how  
long to wait until they are evaluated again (in seconds).

  so to print "bang" at 1 second intervals you could do

(define  (mybang x)
   (format #t "bang at ~S!~%" x)
   1)

(sprout  mybang)

;;  at some point you will want to stop it

(stop)





_______________________________________________
Cmdist mailing list
Cmdist@...
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Parent Message unknown Re: Metro command

by Heinrich Taube-2 :: Rate this Message:

| View Threaded | Show Only this Message

On Jan 15, 2012, at 3:07 PM, Philippe de Rochambeau wrote:

> Hello,
> Are you talking about Grace 3.7.2 or a later version which is not  
> currently available?
> I don't see any metronome examples in Grace 3.7.2 and the CM3  
> documentation (http://commonmusic.sourceforge.net/cm/res/doc/ 
> cm.html) does not mention them either.



The beta for the upcoming release is available from our local server  
(ill release to sourceforge within the week if problems dont crop up)
use the links listed below. see its changelog for what's new (lots...)


ive made a final candidate for the 3.8.0 release, hopefully to be made  
in the next week.  the last thing ive added is a new audio file player  
-- its now possible to have multiple players open (and playing) at the  
same time and each player has an srate control for its audio playback
ive also updated cm to use the very latest of:
        sndlib (s7 1.102, 12-Jan-11) w/ latest clm instruments
        Fomus 0.1.19
        Juce 1.54.27

osx:

http://camil.music.uiuc.edu/software/grace/Grace-3.8.0-beta1-osx.zip

win:

http://camil.music.uiuc.edu/software/grace/Grace-3.8.0-beta1-win32.zip

ubuntu:

http://camil.music.uiuc.edu/software/grace/Grace-3.8.0-beta1-ubuntu.zip

_______________________________________________
Cmdist mailing list
Cmdist@...
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist