Giter Site home page Giter Site logo

katai5plate / ust2json Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 7 KB

Convert UTAU Sequence Text and JSON to each other. UST情報(UTAU)とJSONを相互変換します。

License: MIT License

JavaScript 64.26% TypeScript 35.74%
javascript js json html html5 vocaloid utau plugin utauplugin utau-sequence-text

ust2json's Introduction

ust2json

UTAU スクリプトと JSON を相互変換します

yarn add katai5plate/ust2json
const {
  readUST,
  writeJSON,
  ustToJSON,
  writeUSTFromJSON,
  isNoteSection,
} = require("ust2json");

// UST を読み込む
const ust = readUST("./sample.ust");
// UST を JSON に変換
const json = ustToJSON(ust);

// JSON を書き出す
writeJSON("./result.json", json);

// JSON のすべての歌詞を「ぬ」に変更
const edited = json.map((element) => {
  const { section, entries } = element;
  if (isNoteSection(section)) {
    entries.Lyric = "ぬ";
    return element;
  }
  return element;
});

// 変更を加えた JSON を UST として書き出す
writeUSTFromJSON("./res.ust", edited);

ust2json's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.