strings: Separate notes into vector of strings

View source: R/music_fn.R

stringsR Documentation

Separate notes into vector of strings

Description

Convenience function to separate notes into vector of strings

Usage

strings(x, sep = " ")

Arguments

x

String: A single character object which consists of multiple notes separated by sep e.g. "C4 Eb4 G4 D5"

sep

String: the character that separates notes in x. Default = " "

Details

Makes it easy to copy-paste notes into other functions e.g. playChord(strings("C4 Eb4 G4 D5"))

Author(s)

E.D. Gennatas

Examples

strings("C4 Eb4 Gb4 Bb4")

music documentation built on July 11, 2022, 1:06 a.m.