drawLine
  1. pattern
  2. chars

Intended for a debugging, drawLine renders the pattern as a string, where each character represents the same time span. Should only be used with single characters as values, otherwise the character slots will be messed up. Character legend:

  • "|" cycle separator
  • "-" hold previous value
  • "." silence
const line = drawLine("0 [1 2 3]", 10); // |0--123|0--123
console.log(line);
silence;
parametertype
pattern
the pattern to use
chars
  • number
max number of characters (approximately)