add p1 .. p9 shortcuts as well

This commit is contained in:
Felix Roos 2023-11-17 10:50:45 +01:00
parent cb9ef3ee6a
commit 265f01eb06

View File

@ -96,6 +96,11 @@ export function repl({
return this.p(i);
},
});
Object.defineProperty(Pattern.prototype, `p${i}`, {
get() {
return this.p(i);
},
});
Pattern.prototype[`q${i}`] = silence;
}