Git Product home page Git Product logo

utauplug's Introduction

UtauPlug

Utauプラグインを作成する際に面倒なustファイルの読み込みや、一括処理を簡単に行うためのプラグインです。 以前は.Netにて開発をしていたプロジェクトの移植〜改善版となります。

なぜScala?

  1. Mac版への展開も踏まえ、jarによるプラグイン提供を画策
  2. おもしろそうだったから

使い方

//ファイルパスを指定して読み込み。起動時のargs利用を想定
val plug = UtauPlug.fromFile(filePath)
//flatMap, mapが使えます
val plug2 = plug.flatMap { n =>
  //getで対象の要素、n.prev,n.nextで前後の要素が取れる
  val elm = n.get
  //builderを呼ぶことで要素を操作できる
  val b = elm.bulder
  b.intensity += 10
  val changed_elm = b.build
  //flatMapはUtauElementをListで返す。新規の要素を追加することもできる
  List(elm, changed_elm, new UtauElement(Map("Intensity" -> "10", "Lyric" -> "てす")))
}

実例は作成されたプラグインを参考にどうぞ

utauplug's People

Contributors

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