Make smnp.music::range function to include the end note in returned list

This commit is contained in:
2020-03-26 21:02:09 +01:00
parent 71362e2b38
commit 1f43997048

View File

@@ -58,7 +58,7 @@ function range(begin: note, end: note, filter: string = "all", duration: int = 4
currentFilter = filters.get(filter); currentFilter = filters.get(filter);
return (range(begin.toInt(), end.toInt()) as i ^ noteFromInt(i, duration, dot)) as n ^ n % currentFilter.contains(n.pitch); return (range(begin.toInt(), end.toInt()+1) as i ^ noteFromInt(i, duration, dot)) as n ^ n % currentFilter.contains(n.pitch);
} }
function transpose(value: int, ...notes: <note, int, string>) { function transpose(value: int, ...notes: <note, int, string>) {