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

feature request: tempo base for another duration than a quarter #539

Open
guiv42 opened this issue Oct 4, 2024 · 7 comments
Open

feature request: tempo base for another duration than a quarter #539

guiv42 opened this issue Oct 4, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@guiv42
Copy link
Collaborator

guiv42 commented Oct 4, 2024

TuxGuitar 1.6.4 enables to define a tempo value only with respect to one quarter: 120 means "120 quarters per minute".
tempo_quarter

For songs with time signatures like 3/2 or 6/8, it could be interesting to define tempo base for another duration.
Examples:
tempo_half
tempo_quarter_dotted

@guiv42 guiv42 added the enhancement New feature or request label Oct 4, 2024
@guiv42
Copy link
Collaborator Author

guiv42 commented Nov 18, 2024

Currently investigating this feature request, it seems achievable.
It would require 3 additional icons for dotted half, dotted quarter and dotted eighth (from existing 2.png, 4.png, 8.png)
@helge17 : would it be possible for you to create these icons?

@belfie13
Copy link
Contributor

can your skins support svg or does it require png files? would be alot easier for me to generate in svg.

i noticed some of the dotted.png files would be good enough for the 4dotted.png files i believe.

i tried editing the png but they're too small and it's hard to get the right colors, would need the original files and software to do it right.

i can generate the entire set of all images from each skin in svg if you like. it will take a while but if you can support it, it will be worth doing.

@guiv42
Copy link
Collaborator Author

guiv42 commented Nov 24, 2024

at runtime, TG only uses png format. However, for Breeze and Symbolic skins the icons are defined in svg format, see src-skins folder. I never had the time to learn how to edit them, I think Inkscape should do the job well.
Then, there are 2 scripts to generate the png for light and dark versions of these skins: Breeze, Symbolic

@helge17
Copy link
Owner

helge17 commented Nov 24, 2024

@helge17 : would it be possible for you to create these icons?

Sure, I'll do it! But give me a few days...

The icons for the Oxygen skin come or are derived from the KDE Oxygen theme, see the README. KDE also provides these icons as SVG images in the scalable folder, but I haven't had time to derive all TuxGuitar icons cleanly from the SVG versions yet, so I'm currently deriving new icons from existing PNG files using Gimp.

As @guiv42 wrote, the Breeze and Symbolic icons are fully available as SVG files. I edit them with Inkscape. But it's not that easy to get them into the exact shape. Maybe I should document this one day...

@guiv42
Copy link
Collaborator Author

guiv42 commented Nov 24, 2024

But give me a few days...

Sure, take your time, nothing's urgent! And it's definitely not a matter of days. I started the implementation, and it appears more complex than I initially thought, so it will take time on my side.

@guiv42 guiv42 self-assigned this Nov 24, 2024
@guiv42
Copy link
Collaborator Author

guiv42 commented Nov 24, 2024

I would appreciate an advice about this evolution. What shall metronome and countdown do when time signature and tempo base are inconsistent?
Possible options:

  1. follow the time signature, independently from tempo base
  2. follow the tempo base, independently from time signature

Example with time signature 3/2 and tempo base 120 *quarters per minute:

  1. countdown clicks 3 times at 1 second interval, then metronome clicks every second
  2. countdown clicks 6 times at 0.5 second interval (6 * quarters in a measure), then metronome clicks every 0.5sec

It's a kind of degraded mode: with time signature 3/2 it would be more logical to select a half for tempo base. But this case will happen very often, each time a file with non-4/4 time signature will be imported from an external format.
From musical point of view, option 1. seems more logical. But it's a bit weird to have the same metronome behavior whatever the tempo base [quarter=120] or [half=60].

@guiv42
Copy link
Collaborator Author

guiv42 commented Nov 26, 2024

I'm going for the simplest option: consider time signature is the reference (option 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants