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

How can I make my own beatmap? #2

Closed
Hazuki-san opened this issue May 20, 2021 · 2 comments
Closed

How can I make my own beatmap? #2

Hazuki-san opened this issue May 20, 2021 · 2 comments

Comments

@Hazuki-san
Copy link

Hazuki-san commented May 20, 2021

I'd like to make a beatmap for this, but I'd like to know if I can make a beatmap that is not randomized keys. How can I do that?

Example is like osu!mania charts or something like that

@Hazuki-san Hazuki-san changed the title How can I make our own beatmap? How can I make my own beatmap? May 20, 2021
@RuolinZheng08
Copy link
Owner

RuolinZheng08 commented May 20, 2021

Does this help? https://github.com/RuolinZheng08/renpy-rhythm#automatic-generation-of-beat-map-files
If it's still not clear I might consider making a YouTube video tutorial on this.

The variables of interest are on these lines:

# onset timestamps in the beatmap file given audio file
onset_times = self.read_beatmap_file(beatmap_path)

# assign tracks randomly in advance since generating on the fly is too slow
self.random_track_indices = [
            renpy.random.randint(0, self.num_track_bars - 1) for _ in range(self.num_notes)
            ]

self.random_track_indices has the same length as self.onset_times and denotes the track index of each onset. You can manually specify entries in self.random_track_indices to make sure a certain beat appears on a certain track.

@Hazuki-san
Copy link
Author

Alright, I think that'll do it! Thanks!

@RuolinZheng08 RuolinZheng08 pinned this issue May 20, 2021
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

No branches or pull requests

2 participants