midi: midi class constructor

Description Methods

Description

midi class constructor

midi class constructor

Methods

Public methods


Method new()

Usage
midi$new(file)

Method print()

Usage
midi$print(..., n = NULL)

Method encode()

Usage
midi$encode(to)

Method cut()

Usage
midi$cut(start = 0, end = Inf, unit = c("sec", "tick"))

Method plot()

Usage
midi$plot()

Method select()

Usage
midi$select(...)

Method rename()

Usage
midi$rename(...)

Method set_tempo()

Usage
midi$set_tempo(
  tempo,
  metric = c("bpm", "relative", "micro_seconds_per_quarter_note")
)

Method shift_hstep()

Usage
midi$shift_hstep(n, at = -1)

Method shift_degree()

Usage
midi$shift_degree(n, scale, at = -1, stay_home = FALSE)

Method negative_harmony()

Usage
midi$negative_harmony(pivot = 60, at = -1, stay_home = FALSE)

Method play()

Usage
midi$play(left_track = NULL, right_track = left_track)

Method clone()

The objects of this class are cloneable with this method.

Usage
midi$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


moodymudskipper/midi documentation built on July 16, 2020, 1:54 a.m.