0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MOD Desktop の使い方 #14 -プラグインの作り方③-

0
Last updated at Posted at 2026-05-23

はじめに

本記事はサウンドナビで記事にしている一連のシリーズ、『MOD Desktop の使い方』の Qiita出張版です。

サウンドナビの『MOD Desktop の使い方』の記事はこちらをご覧ください。

『プラグインの作り方』①、②は下記になります。

前回は BitCrusherのプラグイン(エフェクター)を『プラグインの作り方②』で PlugData の DPF コンパイル機能を使って Lv2プラグインを作りました。

BitCrusher.lv2フォルダ内には下記のファイルが作成されます。

  • BitCrusher_dsp.dll
  • BitCrusher_dsp.ttl
  • manifest.ttl

今回はデフォルトの缶詰GUI からもう少しましな GUIを設定しようと思います。

modgui

modguiの設定方法は https://wiki.mod.audio の下記の方法にまとめられています。

一から GUIを作るのは手間がかかるので、今回は他のプラグインの modguiを流用します。
上記の Wikiでは『Preparing the Bundle』の項目になります。

まず、C:\Program Files\MOD Desktop\plugins\tap-reflector.lv2内の modgui.ttlファイルと modguiフォルダをBitCrusher.lv2フォルダ内にコピーします。

次に下記のように manifest.ttlファイルの seeAlsoの後に を追記します。

@prefix lv2:  <http://lv2plug.in/ns/lv2core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<urn:hvcc:BitCrusher>
    a lv2:Plugin ;
    lv2:binary <BitCrusher_dsp.dll> ;
    rdfs:seeAlso <BitCrusher_dsp.ttl> ,              <- コンマを忘れないこと
        <modgui.ttl> . 

次に BitCrusher_dsp.ttlを元に manifest.ttlに変更を加えます。

@prefix modgui: <http://moddevices.com/ns/modgui#> .
@prefix lv2:    <http://lv2plug.in/ns/lv2core#> .

<urn:hvcc:BitCrusher>                                 <- 変更
    modgui:gui [
        modgui:resourcesDirectory <modgui> ;
        modgui:iconTemplate <modgui/icon-tap-reflector.html> ;
        modgui:stylesheet <modgui/stylesheet-tap-reflector.css> ;
        modgui:screenshot <modgui/screenshot-tap-reflector.png> ;
        modgui:thumbnail <modgui/thumbnail-tap-reflector.png> ;
        modgui:brand "Inqb8tr-jp" ;                    <- 変更
        modgui:label "BitCrusher" ;                    <- 変更
        modgui:model "boxy" ;
        modgui:panel "3-knobs" ;
        modgui:color "white" ;
        modgui:knob "black" ;
        modgui:port [
            lv2:index 0 ;
            lv2:symbol "bit" ;                       <- 変更
            lv2:name "bit" ;                        <- 変更
        ] , [
            lv2:index 1 ;
            lv2:symbol "gain" ;                      <- 変更
            lv2:name "gain" ;                       <- 変更
        ] , [ 
            lv2:index 2 ;
            lv2:symbol "glitch"                     <- 変更
            lv2:name "glitch                        <- 変更
        ] ;
    ] .

これで大まかな設定は完了です。

あとは完成した BitCrusher.lv2 をC:\Users\ユーザー名\Documents\MOD Desktop\lv2\BitCrusher.lv2へ配置し、MOD Desktopを再起動すれば、GUIが設定されているはずです。

BitCrusherWhite.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?