drawLine - pattern
- 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; | parameter | type |
|---|---|
| pattern | |
| the pattern to use | |
| chars |
|
| max number of characters (approximately) | |