Closed craigsapp closed 9 months ago
Commit https://github.com/craigsapp/website-polish-scores/commit/94dd269286ed343086b222f895ef113c0f5c5fe3 adds a parsing function to read configuration parameters from the URL.
Example: https://polishscores.org/?id=pl-sa--481-a-viii-121--033&config=MsErAs
Checking transposition, first original:
https://polishscores.org/?id=pl-sa--481-a-viii-121--033
Now transposed down a minor third, and automatic stem direction added:
https://polishscores.org/?id=pl-sa--481-a-viii-121--033&config=AsTr{-m3}
Also applying free-form filter in configuration panel:
https://polishscores.org/?id=pl-sa--481-a-viii-121--033&config=AsTr{-m3}Fi{extract%20-s1}
Configuration settings:
Expand repeats option:
https://polishscores.org/?id=pl-sa--481-a-viii-121--033&config=Er
Commit https://github.com/craigsapp/website-polish-scores/commit/98f26ec53a3521fa5ff3776893625dbedada5417 updates the URL with the configuration settings:
https://polishscores.org/?id=pl-wumfc--r288
Checking the "Hide sic warnings" and Transposing up a perfect fifth:
Code | Meaning |
---|---|
Hs |
Hide sic warnings |
Tr_+P5_ |
Transpose up a perfect 5th |
https://polishscores.org/?id=pl-wumfc--r288&config=HsTr_+P5_
I changed {
and }
to _
so that they do not need to be unescaped in the URL. I forced +
to not escape. Maybe this can be used for {
and }
in a similar manner since they are also not important to be escaped.
Transpose is not loading from URL, probably due to change in {
and }
usage. Probably return to this system anyway.
Test of free-form filter (extract bottom staff of score):
https://polishscores.org/?id=pl-stab--5a--001-007
https://polishscores.org/?id=pl-stab--5a--001-007&config=Fi{extract%20-k1}
Example:
https://polishscores.org/?id=pl-wumfc--n2100--001-012
Add configuration parameters to automatically set configuration options, such as:
https://polishscores.org/?id=pl-wumfc--n2100--001-012&config=MsOcAs
Where
config=MsOcAs
are the configuration options to set:Probable codes for options:
Ms
Ml
Oc
An
Er
As
Ss
Ts
Hs
Sa
Fs
Sc
Tr{+P5}
Tp{140}
Fi{extract -k 1}
Also update the URL with any activated configuration options.
This will allow saving/sending links to the score with a particular view state.
It would also might be useful to add to starred works (in that case other configuration options should be cleared in the current session when the work is loaded from the starred list).