Skip to contents

Take the specified instruments and create wave file with sounds where the onsets are

Usage

synthesise_onsets(
  data = NULL,
  instruments = NULL,
  sr = 22050,
  dur = 0.03,
  type = "noise",
  freq = 2500
)

Arguments

data

data frame to be processed (required)

instruments

Instruments names to be included (required)

sr

sampling rate (default 22050)

dur

duration of sounds (default 30 ms)

type

type of sounds (default noise, try click or synth from seewave)

freq

freq of sounds (if synth is given as input)

Value

wave file