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

Add pitch smoothing #98

Merged
merged 4 commits into from
Jul 28, 2024
Merged

Add pitch smoothing #98

merged 4 commits into from
Jul 28, 2024

Conversation

khanghugo
Copy link
Contributor

No description provided.

@khanghugo khanghugo changed the title Add pitch smoothing (WIP) Add pitch smoothing Mar 29, 2024
@khanghugo khanghugo marked this pull request as ready for review March 29, 2024 18:22
@khanghugo
Copy link
Contributor Author

Waiting for hltas update.

I think it is okay if it just works for global smoothing but not individual hovered segment.

src/modules/tas_studio/editor/mod.rs Show resolved Hide resolved
let yaw = yaw.to_degrees();
write!(&mut line, " {yaw}").unwrap();
}

let op = Operation::Insert { line_idx: 0, line };
self.apply_operation(op)?;

let mut line = "pitch_override".to_string();
Copy link
Owner

Choose a reason for hiding this comment

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

If the pitch was constant then it probably doesn't need to be smoothed? Also do you generally want to smooth both at once?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure how I would change existing functions to stop working for stream of constant pitch. It just seems a lot easier to mirror it and just works. I see what you mean about second point where someone might just want to smooth the yaw. However, they can delete it easily. Also, adding another option to smooth pitch might be inconvenient as if soneone wants smoothing, just smooth it.

@khanghugo
Copy link
Contributor Author

If anything can merge #101 before merging this.

@khanghugo
Copy link
Contributor Author

Rebased. I tested with one long TAS run I have and there's no problems.

@YaLTeR YaLTeR merged commit 2a33154 into YaLTeR:master Jul 28, 2024
13 checks passed
@YaLTeR
Copy link
Owner

YaLTeR commented Jul 28, 2024

Thanks for testing.

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