Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

preserving conditional compilation #30

Open
atsushieno opened this issue Jan 29, 2019 · 1 comment
Open

preserving conditional compilation #30

atsushieno opened this issue Jan 29, 2019 · 1 comment

Comments

@atsushieno
Copy link
Owner

Conditional compilation is useful when we want to start from anywhere in the song, but it brings in "bugs" in MML in that such conditionally compiled tracks especially with #conditional block results in unexpected velocity, octave, key shifts etc. No one wants inconsistent song outputs depending on whether conditional blocks are used or not.

A solution is to filter out only MIDI note on messages.

@atsushieno
Copy link
Owner Author

We cannot simply treat existing conditional blocks as in the model above because existing blocks may be more like "pattern candidates the composer can choose i.e. pick one of them". For such blocks, the resulting song file should not even contain non-note messages.

Therefore, there should be another kind of #conditional indicators.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant