Stack-based attributes #426
Replies: 2 comments
-
I had an interesting thought about this. It might be interesting if event sequences were a scoping mechanism. Meaning: attributes applied inside of an event sequence would be "undone" at the end of the event sequence. For example:
The only trouble is, this would be a breaking change, and I think it would make a lot of existing scores sound unexpectedly different. It also seems like if we followed this train of thought, variable definitions would also have their own scope, i.e.:
But this would also be a breaking change from what we're used to. In particular, I have advocated in the docs that you can use variables as a shorthand for setting specific attribute values, e.g.:
Both of these "scope styles" seem useful to me, and it isn't clear to me how to reconcile them. Maybe we could add a second kind of event sequence (with a different syntax) that has its own scope for attributes (and maybe voices?), so that we could enable this sort of functionality in a non-breaking way? |
Beta Was this translation helpful? Give feedback.
-
What about using an exclamation mark to create a scope?
Maybe we can develop more different sequences (denoted by adding a special symbol behind the |
Beta Was this translation helpful? Give feedback.
-
Moved from #46.
See that issue for context -- it's an interesting idea that needs more discussion.
Beta Was this translation helpful? Give feedback.
All reactions