DCMLab / reductive_analysis_app

Web app for reductive analyses of scores
https://dcmlab.github.io/reductive_analysis_app/
Other
15 stars 4 forks source link

Feature: Improve visualisation and reduction of notes #4

Open pettter opened 4 years ago

pettter commented 4 years ago

Maximal expansion, and proper visualisation of reductions

In the current version (6d1b4a22) of the reductive tool, we hide notes that are reduced away, but leave the remaining score in place. This is sufficient to show the successive reductions/generative operations, but is pretty far from the type of visualisation we ideally would like to have.

While we may also in the future also allow for "de-horizontalisations" (see #19), a good start is arguably to at least allow to reduce away "empty time-slices" in a maximal expansion of the score.

There are a number of difficulties that need to be overcome. In particular, If we simply remove the reduced notes from the respective measure/staff/layer, this shifts the other notes within this measure forwards, which may be what we want in some cases, but without augmenting the length of the remaining notes, errors will creep in.

We can access a maximal expansion of the current MEI using Verovios renderToTimemap function, but this only gives us on and offsets, not note presence and duration.

We have basically two possible ways forward:

pettter commented 4 years ago

For now, we do a smaller version, where we rerender into the old measures just simply removing the hidden/reduced notes.

This ain't pretty, but it works for now. It needs fixing.

pettter commented 4 years ago

Update: the smaller, simpler version is fixed and now works, though the interaction with the MEI and downloading is still a bit unclear.