Support list syntax in mininotation (#512)
fixes #504 * support list syntax in mininotation * support compound controls * remove redundant : splitting of s/n and note/n from webaudio * patternable scale names
This commit is contained in:
parent
4bfeaa47bf
commit
bf72908dc9
11 changed files with 458 additions and 208 deletions
|
|
@ -140,6 +140,9 @@ describe('mini', () => {
|
|||
expect(haps.length < 230).toBe(true);
|
||||
// 'Had too many cycles remaining after degradeBy 0.8');
|
||||
});
|
||||
it('supports lists', () => {
|
||||
expect(minV('a:b c:d:[e:f] g')).toEqual([['a', 'b'], ['c', 'd', ['e', 'f']], 'g']);
|
||||
});
|
||||
/*it('supports the random choice operator ("|") with nesting', () => {
|
||||
const numCycles = 900;
|
||||
const haps = mini('a | [b | c] | [d | e | f]').queryArc(0, numCycles);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue