add examples

This commit is contained in:
2025-09-27 23:12:09 +02:00
parent a3c8e198a7
commit 940dd06b83
68 changed files with 2064 additions and 0 deletions

17
examples/stacktricks.js Executable file
View File

@@ -0,0 +1,17 @@
stack("c","e","g")
.withHap((hap)=>{
hap.context.tempvalue=hap.value;
hap.value=hap.context.stacking===undefined?0:hap.context.stacking[0];
return hap;})
.eq("<0 1 2>").filterValues((val) => val)
.withHap((hap)=>{
hap.value=hap.context.tempvalue;
delete hap.tempvalue;
return hap;})
.note().piano()