EmNudge / Spectrogram-Replicator

Educational Linguistics tool for exploring Spectrograms
https://spectrogram.emnudge.dev
6 stars 2 forks source link

Allow entire line to be moved using arrows #12

Open EmNudge opened 4 years ago

EmNudge commented 4 years ago

This may seem a bit similar to issue https://github.com/EmNudge/Spectrogram-Replicator/issues/3, but this is actually a bit more useful and easier to implement.

When changing frequencies or ranges, nodes are scaled appropriately, but some adjustments may need to be made. This also addresses the first bullet point in issue https://github.com/EmNudge/Spectrogram-Replicator/issues/5.

To Do

If this is to be done, we will probably need to highlight selected segments/lines a bit more. We currently just make non-selected lines have a lowered opacity, but we should probably now change the BG a bit on the selected ones as well.

We should probably also compartmentalize hotkeys handling into its own section. We'll have to decide if we want to use keydown or keypressed as well. This is for whether we want to control the speed at which repetition happens or we want the user to decide.

Issues

Via the UI we must find whether the user wants to move a line or a segment at any given moment. When a segment is selected, the line is also selected. One cannot solely select a line at the moment. This might mean making a new selection store - a bit separate from the current one.