text_to_tr808_state: Convert a text representation into a 'tr808_state' object...

View source: R/tweet.R

text_to_tr808_stateR Documentation

Convert a text representation into a tr808_state object with a single pattern

Description

The returned object can be loaded into the drum machine using tr808(state = ...)

Usage

text_to_tr808_state(txt, bpm = 96)

Arguments

txt

Single string must contain 11 strings of length 16 characters consisting of only _ and x. All other characters will be ignored.

bpm

bpm. default: 96

Value

tr808_state object

Examples

text_to_tr808_state(
'#RStats #tr808r
 BD xx____xx__x_____
 SD ____x_______x___
 LT ________________
 MT xx______________
 HT ______xx__x__x__
 RS ________________
 CP xx_xx_xx_______x
 CB xx__x_xx_x_x_xx_
 CY ________________
 OH ________________
 CH x_xxx_xxx_xxx_xx'
)

coolbutuseless/tr808r documentation built on May 14, 2022, 12:09 a.m.