Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soundwave dock now loads sound layers from canvas #1370

Merged
merged 9 commits into from May 13, 2020

Conversation

rodolforg
Copy link
Contributor

Fix #1346

@rodolforg
Copy link
Contributor Author

It now has issues with Canvas Time model beginning being shifted from 0f. I'll fix that later.

Anyway, tell me what you think about how we should name items in sound layer combobox…

Currently it uses filename listed in sound layer parameter.

@lgtm-com
Copy link

lgtm-com bot commented Apr 20, 2020

This pull request introduces 1 alert when merging 24de809 into 7d0ef7e - view on LGTM.com

new alerts:

  • 1 for Catching by value

@rodolforg rodolforg changed the title Soundwave dock now uses sound layers in canvas Soundwave dock now loads sound layers in canvas May 3, 2020
@rodolforg
Copy link
Contributor Author

I see one problem here: popping the combobox is not good :(

@rodolforg rodolforg changed the title Soundwave dock now loads sound layers in canvas Soundwave dock now loads sound layers from canvas May 8, 2020
@rodolforg
Copy link
Contributor Author

@morevnaproject could you test it?

@morevnaproject morevnaproject self-assigned this May 9, 2020
@morevnaproject morevnaproject added this to Testing Now in Konstantin's Workspace May 9, 2020
@morevnaproject
Copy link
Member

Testing now! Thank you! ^__^

@morevnaproject
Copy link
Member

The feature works great!

For name in combobox I suggestto display it in the following way:

  • [LAYER_NAME] - /path/to/file.wav

Also I suggest to shorten path to file if it is too long.
I.e. for "/very/very/very/very/very/long/path/to/file.wav" display it like "...ry/long/path/to/file.wav".

@morevnaproject morevnaproject moved this from Testing Now to Check later in Konstantin's Workspace May 9, 2020
@rodolforg
Copy link
Contributor Author

Is this way better?

@morevnaproject
Copy link
Member

I tested it and for some reason it doesn't shows filepath -
screenshot_004

@rodolforg
Copy link
Contributor Author

rodolforg commented May 10, 2020 via email

@morevnaproject
Copy link
Member

Should it be always visible?

Yes, I think it's better to make it always visible. ^__^

Also, I just realized that it would be nice if combobox choices will appear above of combobox itself. Just like we did for Blend Method's parameter combobox - #650 (comment)

@rodolforg
Copy link
Contributor Author

I realize that synfig::CanvasFileNaming::make_short_filename() doesn't ellipsize long strings, it creates a relative path (which usually shortens the name).

How many chars would have a long filename?
In order to implement your example:

I.e. for "/very/very/very/very/very/long/path/to/file.wav" display it like "...ry/long/path/to/file.wav".

@morevnaproject
Copy link
Member

How many chars would have a long filename?

I guess, 30 is enough. ^__^

@rodolforg
Copy link
Contributor Author

Done :)

@rodolforg rodolforg marked this pull request as ready for review May 10, 2020 16:35
@morevnaproject morevnaproject moved this from Check later to Testing Now in Konstantin's Workspace May 12, 2020
@morevnaproject
Copy link
Member

Thank you, it works perfectly now! Can you rebase, please? ^__^

@rodolforg
Copy link
Contributor Author

Done :)

@morevnaproject morevnaproject merged commit b6efff5 into synfig:master May 13, 2020
@morevnaproject
Copy link
Member

Thank you for an awesome feature! ^__^

@morevnaproject morevnaproject removed this from Testing Now in Konstantin's Workspace May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sound panel should list available audio layers
2 participants