allow _ as silence
This commit is contained in:
parent
28cd7c1681
commit
c751bb7e5f
3 changed files with 4 additions and 2 deletions
|
|
@ -20,7 +20,8 @@ export class MondoParser {
|
||||||
open_curly: /^\{/,
|
open_curly: /^\{/,
|
||||||
close_curly: /^\}/,
|
close_curly: /^\}/,
|
||||||
number: /^-?[0-9]*\.?[0-9]+/, // before pipe!
|
number: /^-?[0-9]*\.?[0-9]+/, // before pipe!
|
||||||
op: /^[*/:!@%?+-]|^\.{2}/, // * / : ! @ % ? ..
|
// "+" and "-" might be added here, but then "-" won't work as silence anymore..
|
||||||
|
op: /^[*/:!@%?]|^\.{2}/, // * / : ! @ % ? ..
|
||||||
// dollar: /^\$/,
|
// dollar: /^\$/,
|
||||||
pipe: /^#/,
|
pipe: /^#/,
|
||||||
stack: /^[,$]/,
|
stack: /^[,$]/,
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ let nope = (...args) => args[args.length - 1];
|
||||||
let lib = {};
|
let lib = {};
|
||||||
lib['nope'] = nope;
|
lib['nope'] = nope;
|
||||||
lib['-'] = silence;
|
lib['-'] = silence;
|
||||||
|
lib['_'] = silence;
|
||||||
lib['~'] = silence;
|
lib['~'] = silence;
|
||||||
lib.curly = stepcat;
|
lib.curly = stepcat;
|
||||||
lib.square = (...args) => stepcat(...args).setSteps(1);
|
lib.square = (...args) => stepcat(...args).setSteps(1);
|
||||||
|
|
|
||||||
|
|
@ -575,7 +575,7 @@ export const superdough = async (value, t, hapDuration, cps) => {
|
||||||
|
|
||||||
let audioNodes = [];
|
let audioNodes = [];
|
||||||
|
|
||||||
if (['-', '~'].includes(s)) {
|
if (['-', '~', '_'].includes(s)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (bank && s) {
|
if (bank && s) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue