Git Product home page Git Product logo

opened_beat_compiler's Introduction

opened_beat_compiler

beat compiler for musical programs like rhythm games

if you want to use this program, check the example.json(about song_data format) and example2.json(about note_data format)

how to use

1.import to your project

2.make three functions for normal_datacallback, long_datacallback, bpm_datacallback

2-1.void normal_DCB(
time:double,
graphical_location:double,
user_tags:std::unordered_map<std::string, std::string>,
user_pointer:void*
)


2-2.void long_DCB(
start_time:double,
end_time:double,
start_graphical_loc:double,
end_graphical_loc,
user_tags:std::unordered_map<std::string, std::string>,
user_pointer:void*
)

2-3.void bpm_DCB(
time:double, 
graphical_location:double, 
user_tags:std::unordered_map<std::string, std::string>,
change_bpm:double,
user_pointer:void*
)

3.fill init_group struct init_group { song_data_path s_json; note_data_path d_json; graphical_length_between_beat g_length; std::function<void(double, double, std::unordered_map<std::string, std::string>, void*)> normal_callback_;//time, graphical location, tag list, user's pointer std::function<void(double, double, double, double, std::unordered_map<std::string, std::string>, void*)> long_callback_;//start time, end time, start graphic, end graphic, tag list, user's pointer std::function<void(double, double, std::unordered_map<std::string, std::string>, double, void*)> bpm_callback_;//time,graphical location, tag list, changed bpm,user's pointer void* user_data; };

3.add line"ALL_IN_ONE class_name = ALL_IN_ONE(init_group your_group)"

3-1.graphical location is for rhythm game developer, it means the height at which the note is located graphically.


3-2. the graphical_length means the graphic length between note to note. fix to 1 if you want to ignore


3-3.only one callback function will be called every reading one note

opened_beat_compiler's People

Contributors

rliop913 avatar

Stargazers

 avatar

Watchers

 avatar

opened_beat_compiler's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.