R/tempo.r

Defines functions tempo

Documented in tempo

#'Set a tempo
#'
#'\code{tempo} is a wrapper for Sys.time() that sets a tempo in bpm.
#'
#'
#'@param bpm A number specifying the tempo in beats per minute. Default is 120. 
#'  
#'  
#'@return NULL
#'  
#' @examples
#' # Set tempo at 60 beats per minute
#' tempo(60)
#' 
#'@export

tempo <- function(bpm=120){
  Sys.sleep(60 / bpm)
}

Try the drumr package in your browser

Any scripts or data that you put into this service are public.

drumr documentation built on Oct. 3, 2019, 9:03 a.m.