-
Notifications
You must be signed in to change notification settings - Fork 8
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
draw time signature #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for tackling this 👏
I am leaving some minor comments about looks but it is good to go otherwise.
src/ui/canvas_measure.rs
Outdated
color: Color::WHITE, | ||
size: 19.into(), | ||
font: Font { | ||
weight: iced::font::Weight::Semibold, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks a bit heavy for my taste, I'd prefer a Normal
font weight
src/ui/canvas_measure.rs
Outdated
let tempo_text = Text { | ||
content: format!("{numerator}\n{denominator}"), | ||
color: Color::WHITE, | ||
size: 19.into(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to make it a tad smaller. Like 17 maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
src/ui/tablature.rs
Outdated
@@ -43,8 +43,22 @@ impl Tablature { | |||
let track = &self.song.tracks[self.track_id]; | |||
let measures = track.measures.len(); | |||
for i in 0..measures { | |||
let measure_header = &self.song.measure_headers[i]; | |||
let previous_measure_header = if i > 0 { | |||
Some(&self.song.measure_headers[i - 1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some(&self.song.measure_headers[i - 1]) | |
&self.song.measure_headers.get(i - 1) |
You need to run |
decrease time signature size run cargo fmt use getter method
Hello! This PR implements #20.
Key points:
Sample of a song with many time changes.

Samples of 4, 5, 6, and 8 strings



