节奏大师吧 关注:373,228贴子:8,598,596
  • 8回复贴,共1

关于节奏大师长条

只看楼主收藏回复

游玩的时候个人感觉长条判定combo数的密度是十六分音符,那么拐点不在十六分音符上(比如说H.O.W.ling中间一段24分蚯蚓)的长条是如何判定的呢
以及,如果长条的长度不是十六分音符的整数倍,combo数和判定又应该怎么算呢


IP属地:重庆来自Android客户端1楼2024-02-01 15:09回复
    跨轨combo数+1
    直线hold时间不足16分音,combo数也+1


    IP属地:黑龙江来自Android客户端2楼2024-02-01 16:11
    收起回复
      任何轨道被激活时(包括按下或者移到目标轨)会判定一次,然后维持激活时每经过16分判定一次。。。好像是这样。


      IP属地:上海3楼2024-02-01 16:16
      回复
        感觉是写谱时候设置的,打
        4kult有那种长条的combo蹦数字速度不一致的感觉


        IP属地:山东来自iPhone客户端6楼2024-02-09 17:48
        回复
          节奏大师谱面采用tick作为时间单位。长条持续时动作为滑的时候combo=0,开始的动作为滑时,combo=1。每一段长条持续都有一个dur参数,combo=dur/12(取整)+1。dur的单位是tick,tick和time的转换关系是tick=time(毫秒)*bpm/1250(取整)


          IP属地:浙江来自iPhone客户端8楼2024-02-10 12:29
          回复
            附上c++代码:
            #include <iostream>
            #include <fstream>
            #include <vector>
            #include <nlohmann/json.hpp>
            using json = nlohmann::json;
            using namespace std;
            int processTrack(const json& track) {
            int total = 0;
            for (const auto& item : track) {
            int dur = item["dur"];
            int isEnd = item["isEnd"];
            int attr = item["attr"];
            if (dur != 0) {
            total += dur / 12 + 1;
            }
            else if (isEnd == 1) {
            total += 1;
            }
            else if (attr == 0) {
            total += 1;
            }
            }
            return total;
            }
            int main() {
            string jsonFilePath;
            cout << "请输入json文件路径: ";
            cin >> jsonFilePath;
            ifstream file(jsonFilePath);
            if (!file.is_open()) {
            cerr << "无法打开文件" << endl;
            return 1;
            }
            json data;
            file >> data;
            int total = 0;
            for (int i = 0; i < 4; ++i) {
            json track = data["tracks"][i]["note"];
            total += processTrack(track);
            }
            cout << "总计: " << total << endl;
            return 0;
            }


            IP属地:浙江来自iPhone客户端9楼2024-02-10 12:33
            回复