Skip to content

Add Ability for the quadratic skip#30

Open
vnikonov63 wants to merge 2 commits intomainfrom
feature/skipping-intervals
Open

Add Ability for the quadratic skip#30
vnikonov63 wants to merge 2 commits intomainfrom
feature/skipping-intervals

Conversation

@vnikonov63
Copy link
Copy Markdown
Collaborator

Ask about opinion

Comment thread src/controls.rs Outdated
}
}

/* pub fn forward_seconds(model: &mut Model, seconds: u64) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's fine to delete these if we're not using them

Comment thread src/main.rs Outdated

fn handle_skip(model: &mut Model, direction: SkipDirection) {
const PRESS_GRACE: Duration = Duration::from_millis(250);
const STREAK_LEVELUP_COOLDOWN: Duration = Duration::from_millis(3000);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if we make this 0.5 or 1 sec instead of 3? it felt a bit slow when I was trying it out

Comment thread src/main.rs Outdated
fn handle_skip(model: &mut Model, direction: SkipDirection) {
const PRESS_GRACE: Duration = Duration::from_millis(250);
const STREAK_LEVELUP_COOLDOWN: Duration = Duration::from_millis(3000);
const MAX_STREAK: u32 = 4;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It felt like 4 is a bit slow, how about 16?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding 256 seconds at a time, it is nice :)

Comment thread src/main.rs Outdated
"Current playback state [{:?}], popup [{:?}] <- Message [{:?}]",
model.app_state, model.popup, msg
);
if msg != Message::Tick {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's okay to remove this debug log altogether

Copy link
Copy Markdown
Contributor

@ataha322 ataha322 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice one, left a few comments

@vnikonov63
Copy link
Copy Markdown
Collaborator Author

Currently when we skip forward with l we can get to the next song, but if we do: j we can only go to the beginning of the currently playing song. Do you want to keep this?

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.

2 participants