| Crates.io | rosu-noodlers |
| lib.rs | rosu-noodlers |
| version | 0.1.0 |
| created_at | 2025-02-23 19:06:37.071292+00 |
| updated_at | 2025-02-23 19:06:37.071292+00 |
| description | Noodle changer for osu!mania |
| homepage | |
| repository | https://github.com/OsuChecker/rosu-noodlers |
| max_upload_size | |
| id | 1566582 |
| size | 177,003 |
A Rust library for manipulating long notes (LN) in osu!mania beatmaps.
noln)full_ln)full_ln_beat_divisor)Add this to your Cargo.toml:
[dependencies]
rosu-noodlers = "0.1.0"
rosu-map = "0.2.0"
use rosu_noodlers::{noln, all_ln, full_ln_beat_divisor};
use rosu_map::Beatmap;
// Load a beatmap
let mut map = Beatmap::from_path("path/to/map.osu").unwrap();
// Remove all long notes
noln(&mut map);
// Convert all notes to LNs with 40ms gap and 30ms minimum duration
full_ln(&mut map, 40.0, 30.0);
// Convert notes to LNs based on 1/8 beat division
full_ln_beat_divisor(&mut map, 8.0, None);
// Save the modified beatmap
map.encode_to_path("path/to/output.osu").unwrap();
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.