GithubHelp home page GithubHelp logo

shinich39 / pjsk-js Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 70.25 MB

Utilities of Project SEKAI COLORFUL STAGE! feat. Hatsune Miku.

License: MIT License

JavaScript 100.00%
javascript pjsk project-sekai nodejs

pjsk-js's Introduction

pjsk-js

Utilities of Project SEKAI COLORFUL STAGE! feat. Hatsune Miku.

Requirements

Installation

git clone https://github.com/shinich39/pjsk-js
cd pjsk-js
npm install

Usage

import pjsk from 'pjsk-js'; // esm
  • Music list
await pjsk.update();
// update music list.

const res = pjsk.getMusics();
// get all musics

const res = pjsk.getDiffs();
// get all musicDifficuties

const res = pjsk.findMusic("Tell Your World"); 
// {
//   acc: 1,
//   music: {
//     "id": 1,
//     "seq": 1100101,
//     "releaseConditionId": 1,
//     "categories": [
//       "mv"
//     ],
//     "title": "Tell Your World",
//     "pronunciation": "てるゆあわーるど",
//     "creatorArtistId": 1,
//     "lyricist": "kz",
//     "composer": "kz",
//     "arranger": "kz",
//     "dancerCount": 1,
//     "selfDancerPosition": 0,
//     "assetbundleName": "jacket_s_001",
//     "liveTalkBackgroundAssetbundleName": "bg_livetalk_default_002",
//     "publishedAt": 1560148031000,
//     "releasedAt": 1326812400000,
//     "liveStageId": 1,
//     "fillerSec": 9.0,
//     "isNewlyWrittenMusic": false,
//     "isFullLength": false
//   },
// }

const res = pjsk.findDiff(musicId, difficulty); 
// {
//   "id": 1,
//   "musicId": 1,
//   "musicDifficulty": "easy",
//   "playLevel": 5,
//   "releaseConditionId": 1,
//   "totalNoteCount": 220
// }
  • Analyze game result

const res = pjsk.recognize(filePath);
// {
//   hash: 'fVw09w0g8dwcgwh2000000d$GaawEaaaya20w0000000',
//   isChallenge: false,
//   title: 'ヤミナベ!!!!',
//   difficulty: 'EXPERT',
//   playLevel: 31,
//   totalNoteCount: 1539,
//   condition: 'LIVE CLEAR',
//   judgements: {
//     perfect: 1435,
//     great: 94,
//     good: 3,
//     bad: 1,
//     miss: 6
//   }
//   music: {
//     id: 329,
//     seq: 1125501,
//     releaseConditionId: 5,
//     categories: [ 'image' ],
//     title: 'ヤミナベ!!!!',
//     pronunciation: 'やみなべ',
//     creatorArtistId: 23,
//     lyricist: 'cosMo@暴走P',
//     composer: 'cosMo@暴走P',
//     arranger: 'cosMo@暴走P',
//     dancerCount: 1,
//     selfDancerPosition: 0,
//     assetbundleName: 'jacket_s_329',
//     liveTalkBackgroundAssetbundleName: 'bg_livetalk_default_002',
//     publishedAt: 1677909600000,
//     releasedAt: 1653577200000,
//     liveStageId: 1,
//     fillerSec: 9.010000228881836,
//     isNewlyWrittenMusic: false,
//     isFullLength: false
//   },
//   musicDifficulty: {
//     id: 1644,
//     musicId: 329,
//     musicDifficulty: 'expert',
//     playLevel: 31,
//     releaseConditionId: 1,
//     totalNoteCount: 1539
//   },
// }

References

pjsk-js's People

Contributors

shinich39 avatar

Watchers

 avatar

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.