Menu

#249 Spectrogram of "imported more audio" is the same as the previously existing audio

v3.0
pending
None
5
2018-07-17
2018-03-05
Giulio Moro
No

Import your audio, shift+G to make it a spectrogram. Then go to file->import more audio , import a different file, then turn it into a spectrogram et voila: the two spectrograms will look exactly the same (i.e.: like the first file) except that the length of the second one will be the actual length of the second file you imported.

Discussion

  • Chris Cannam

    Chris Cannam - 2018-04-18

    This is primarily a UI problem with the menu shortcut, rather than a spectrogram calculation problem.

    When you hit shift+G to add a spectrogram to the current layer, that is just a shortcut to the first entry in the Layer -> Add Spectrogram submenu. And this first entry is always the one for adding a spectrogram of the main (first) audio file.

    You can get the correct spectrogram either by picking the correct file explicitly from that menu, or from the pane-specific right-button menu (right-click in pane -> Layer -> Add Spectrogram).

    There is also a secondary problem here -- a spectrogram of the longer audio file should not be truncated to match a shorter underlying layer.

     
  • Chris Cannam

    Chris Cannam - 2018-04-18
    • assigned_to: Chris Cannam
     
  • Chris Cannam

    Chris Cannam - 2018-04-26

    I've updated the shortcuts in commit 2f828631c9be. Now the layer and pane shortcuts add a new layer and pane whose content is based on the topmost suitable source model in the current pane.

    Seems to me this is more obviously "right" than the old way, and it should also fix this issue, but I am a bit concerned about rolling out an incompatible change to shortcuts. It's probably the right thing to do, should ponder a little longer though perhaps.

     
  • Chris Cannam

    Chris Cannam - 2018-07-17

    This change is in v3.1.

     
  • Chris Cannam

    Chris Cannam - 2018-07-17
    • status: open --> pending
     

Log in to post a comment.