Skip to main content

Python3 module for UTAU and singing-databases

Project description

utaupy

PyPI

UTAU周辺のデータ処理を行うPythonのパッケージです。READMEは書いてる途中です。 PythonでUTAUプラグインを作りたい場合は、C# 用の utauPlugin をPythonに移植した pyUtau のほうがいいかもしれません。ビブラートやピッチの扱いが便利そうです。

利用規約

LICENSE ファイルをご覧ください。

処理できるファイル

  • .ust (UTAU)
  • .txt (UTAU Plugin Script)
  • .txt (録音リスト)
  • .ini (setParam および UTAU音源原音設定)
  • .lab (歌唱データベース用音素ラベル)
  • .table (ローマ字かな対応表)
  • .svp (Synthesizer V R2)
  • .csv (REAPER リージョン・マーカー用)

機能概要

  • INI, UST, LAB ファイルのデータをクラスオブジェクトとして扱います。
  • INI, UST, LAB ファイルを変換できます。ただし不可逆の処理が多いです。

Methods


utaupy.ust


Ust

UST ファイルを取り扱うためのクラス

load(path)

USTファイルを読み取り、Ust オブジェクトにする。

ustobj = utaupy.ust.load(path)
print(type(ustobj))
# <class 'utaupy.ust.Ust'>

utaupy.otoini

UTAUの原音設定ファイルを扱うモジュール。setParamでの利用を想定。


class utaupy.otoini.OtoIni(collections.UserList)

oto.ini ファイルを扱うためのクラス。


class utaupy.otoini.Oto(collections.UserDict)

oto.ini に含まれる各原音のパラメータを扱うクラス。


utaupy.table

かなローマ字変換表などを扱うモジュール。

utaupy.convert

Ust オブジェクト、OtoIni オブジェクト、Label オブジェクトなどを変換するモジュール。

utaupy.reaper

REAPER (DAW) のリージョン・マーカー用CSVファイルを扱うモジュール。

utaupy.utau

UTAUエディタで行う操作の代替と、UTAU音源の原音値取得などをするモジュール。「パラメータ自動調整」などができる。

utaupy.utauplugin

UTAUプラグインをつくるためのモジュール。utaupy.utauplugin.UtauPlugin クラスは utaupy.ust.Ust を継承し、プラグイン用に最適化した子クラス。

使用例として半音上げプラグインを貼っておきます。

import utaupy

def notenum_plus1(utauplugin):
    """
    utauplugin: utaupy.utauplugin.UtauPlugin class object
    全てのノートを半音上げる
    """
    # 全ノートを取得
    notes = utauplugin.notes
    # 半音上げ
    for note in notes:
        note.notenum += 1

if __name__ == '__main__':
    # automatically
    # read the utau plugin script
    # load as utaupy.utauplugin.UtauPlugin class object
    # overwrite the utau plugin script
    utaupy.utauplugin.run(notenum_plus1)

連絡先

  • Twitter: @oatsu_c

  • GitHub: oatsu-gh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

utaupy-1.22.1.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

utaupy-1.22.1-py3-none-any.whl (53.7 kB view details)

Uploaded Python 3

File details

Details for the file utaupy-1.22.1.tar.gz.

File metadata

  • Download URL: utaupy-1.22.1.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for utaupy-1.22.1.tar.gz
Algorithm Hash digest
SHA256 95cb18b9c69127b066b6c7b24fcbb8b12c8298ffa34d84654ec400b2aa34f182
MD5 2777a5b3fcff6f027b94b3a02edcd861
BLAKE2b-256 16330200b84730a6e93c56160b50086a2dadad8c5504763d880b08519dd5c497

See more details on using hashes here.

File details

Details for the file utaupy-1.22.1-py3-none-any.whl.

File metadata

  • Download URL: utaupy-1.22.1-py3-none-any.whl
  • Upload date:
  • Size: 53.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for utaupy-1.22.1-py3-none-any.whl
Algorithm Hash digest
SHA256 224786b6da7662119ea8456f91584ee1f22d8b944b302b2be3bbb3e247770ddd
MD5 b227d037145963245dc94707db3a6b92
BLAKE2b-256 bef8e81d4a121746e4a24f73bcc8951ef1153fa0d56b586a2440736a0df3d064

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page