04-settings

設定ファイル state.toml

このページは自動生成です。直接編集しないこと。
python tools/gen_manual_ref.py で再生成する。内容を変えたいときは下の生成元を直す。

生成元

置き場所は %APPDATA%\MeloDear\state.toml。壊れた場合は世代バックアップ state.toml.1 〜 .3 から復元される(ADR 参照)。アプリ起動中に手で書き換えても、終了時に上書きされる。


節の一覧

節型説明
[meta]MetaSection
[onboarding]OnboardingSection
[preferences]PreferencesSection
[appearance]AppearanceSettings
[operation]OperationSettings
[display]DisplaySettings
[accessibility]AccessibilitySettings
[external]ExternalSettingsPhase 3j++: 外部アプリ連携(カスタムファイルブラウザコマンド等)
[external_metadata]ExternalMetadataSettingsPhase 6g: 外部メタデータ API 設定
[path_inference]PathInferenceSettingsPhase 6h.1: パス推論 / フォルダ artwork
[rating_writeback]RatingWritebackSettingsADR-0023 D2: 評価のファイル書き戻し(既定 OFF)
[doujin_lookup]DoujinLookupSettingsPhase 6h.2: DLsite / DMM オンライン照合
[audio]AudioSettingsPhase 6a: オーディオ出力バックエンド
[plugins]PluginSettingsPhase 7e: プラグイン editor / プリセット
[mood_map]MoodMapSettingsPhase 5e: Discover Mood Map 選択範囲の永続化
[genre_ml]GenreMlSettingsPhase 5c.5: ジャンル ML(CLAP zero-shot)
[whisper]WhisperMlSettingsai-05c: Whisper 文字起こしモデル
[separation]SeparationSettingsPhase 8a/8b: ステム分離
[collab]CollabSettingscolab-2: 協調学習 opt-in / 匿名クライアントトークン
[streaming]StreamingSettingsADR-0034 / stream-0: 外出先ストリーミング(実験)
[mcp]McpSettingsADR-0038 / mcp-1: GUI 内蔵 MCP
[share]ShareSettingsshare-1: Now Playing SNS シェア
[analyze]AnalyzeDialogSettingsanapreset-1: Analyze ダイアログの前回状態とユーザープリセット
[startup_exclusions]StartupExclusionsstartup-1: sweep / agefilter の恒久除外(SCHEMA 非接触)
[update]UpdateSettingsupdate-1: dismissed in-app update version

LibraryRegistryEntry

Per-library registration (ADR-0033). recent_libraries remains the MRU path list.

キー型既定値説明
idString—
folderString—
placementDbPlacement型の既定値
db_pathOption<String>型の既定値Authoritative DB path when known (especially FastDrive).
cache_placementCachePlacement型の既定値storage-1: Tier H cache placement (user preference in state.toml). Runtime path resolvers prefer the FastDrive .placement marker.

MetaSection

キー型既定値説明
versionu32—

OnboardingSection

キー型既定値説明
completedbool型の既定値
completed_atOption<String>—
tour_seenVec<String>型の既定値
ml_models_nudge_dismissedbool型の既定値mlsetup-02b: 初回 AI モデルナッジをスキップ済みか。

PreferencesSection

キー型既定値説明
themeString"dark".into()
key_notationString"camelot".into()
default_unitString"bpm".into()
last_libraryOption<String>—
recent_librariesVec<String>型の既定値
library_entriesVec<LibraryRegistryEntry>型の既定値ADR-0033: placement + library-id registry (parallel to recent_libraries).
browser_placesVec<String>型の既定値browser-03: 左 Browser の Places ショートカット(フォルダパス)。
custom_colorsstd::collections::HashMap<String, String>型の既定値ui-02: セマンティック色キー → #RRGGBB(例: "selection")

AppearanceSettings

キー型既定値説明
font_sizeString"md".into()
ui_zoom_percentOption<i32>型の既定値App UI zoom (30–300%). None until migrated from legacy font_size.
simple_neumorphicbool型の既定値
simple_volumebool型の既定値
reduced_motionbool型の既定値
high_contrastbool型の既定値
scroll_bar_stylei320ui-01: 0=細, 1=太め, 2=太め+矢印
live_viz_qualityi321Live visualizer quality: 0=軽量, 1=標準, 2=高精細.
live_viz_responsei320Live visualizer response: 0=なめらか, 1=低遅延.
live_viz_update_ratei321Live visualizer update rate: 0=省電力, 1=標準.
live_viz_peak_holdbooltrueLive visualizer peak hold ticks. Automatically disabled for lightweight/low-latency modes.

OperationSettings

キー型既定値説明
default_sortString"title".into()
single_click_playbool型の既定値
repeat_modeString"off".into()task #9: リピート再生モード。"off" / "all" / "one"。
shuffle_modeString"off".into()shuffle-01: "off" / "tracks"(shuffle-02 で "works" 追加)。
view_modeString"table".into()Phase view-01: ライブラリ表示モード(table/cards/album/...)。
analyze_cpu_parallelismu32default_analyze_cpu_parallelism()Background analyze: max concurrent track workers (1..=num_cpus).
library_watch_enabledbooltruelibwatch-1 / ADR-0037 D7: ライブラリの追加・削除を常時検知する。既定 ON。

MoodMapSettings

キー型既定値説明
valence_minf32-1.0
valence_maxf321.0
arousal_minf32-1.0
arousal_maxf321.0

DisplaySettings

キー型既定値説明
time_formatString"24h".into()
date_formatString"yyyy-mm-dd".into()
number_groupingString"comma".into()
column_widthsHashMap<String, u32>型の既定値ライブラリ表の列幅(px)。キーは Slint ColumnWidths のフィールド名(kebab-case)。
left_dock_widthu32220左ドック(フィルターツリー)幅 px。
right_dock_widthu32280右ドック(トラック情報)幅 px。
bottom_panel_heightu32170下ファセットフィルタパネル高さ px。
column_browser_heightu32150カラムブラウザ帯(列フィルタ)高さ px。
viz_band_heightu32default_viz_band_height()fix-8: 可視化帯(波形/ライブ)高さ px。
work_browser_detail_widthu32380voicelib-25: 作品ブラウザ右詳細ペイン幅 px。
view_zoom_cardsu32100viewzoom-1: ビューごとのアートワークサイズ倍率(%)。ui_zoom_percent とは独立。
view_zoom_album_gridu32100
view_zoom_work_cardsu32100
view_zoom_work_wide_cardsu32100
view_zoom_work_browseru32100
view_zoom_tableu32100viewzoom-2: 行系ビューのアートワーク/行高倍率(%)。グリッド系と同書式。
view_zoom_album_listu32100
view_zoom_treeu32100
view_zoom_waveform_listu32100
view_zoom_work_listu32100
column_orderVec<String>crate::column_order::default_column_order()ライブラリ表の列順(キー名、非表示列も保持)。
column_pinsHashMap<String, bool>crate::column_order::default_column_pins()列 PIN 状態(title 除く)。
column_visibilityHashMap<String, bool>型の既定値colpreset-1: 現在の列表示/非表示(プリセット適用時もここへ永続化)。
column_presetsVec<ColumnLayoutPreset>crate::column_presets::builtin_column_presets()colpreset-1: 名前付き列構成プリセット(フィルタは含めない)。
panelsPanelVisibility型の既定値検索欄・左右・Bottom 二段目パネルの開閉状態。

AccessibilitySettings

キー型既定値説明
screen_reader_modeString"auto".into()auto | on | off
focus_strongbool型の既定値
colorblind_modebool型の既定値

PluginSettings

Phase 7e: プラグイン editor ウィンドウとチェインプリセット(DB-only)。

キー型既定値説明
restore_editors_on_startupbool型の既定値起動時に最後に開いていた editor を復元(デフォルト OFF、ADR-0014)。
persist_editor_positionsbooltrueeditor ウィンドウ位置を DB に永続化。

GenreMlSettings

Phase 5c.5: CLAP zero-shot ジャンル ML 設定(state.toml の [genre_ml])。

キー型既定値説明
model_idStringmelodear_ml::MODEL_ID_CLAP_ZEROSHOT_GENRE_V1.to_string()
thresholdf320.3
max_labelsusize8
compute_embeddingbool型の既定値
embedding_modelOption<String>—

WhisperMlSettings

ai-05c: Whisper 文字起こしモデル選択(state.toml の [whisper])。

キー型既定値説明
selected_model_idStringmelodear_ml::DEFAULT_WHISPER_MODEL_ID.to_string()

SeparationSettings

Phase 8a/8b: 4-stem 音源分離(Demucs ONNX)。 f32 フィールドがあるため Eq は派生しない(NaN 比較問題、Rust 標準)。

キー型既定値説明
enabledbool型の既定値
model_pathOption<PathBuf>—
model_variantString"htdemucs_v4".into()
preferred_providerOption<String>—
allow_gpubooltrue
max_gpu_memory_mbOption<u64>—
segment_secondsf328.0
overlapf320.25

AudioSettings

Phase 6a/6b: オーディオ出力バックエンド設定(state.toml [audio])。

キー型既定値説明
backendBackendKind型の既定値
output_modeOutputDeviceMode型の既定値
pinned_device_idOption<String>—
buffer_sizeOption<u32>—
exclusive_modebool型の既定値
preferred_sample_rateOption<u32>—
preferred_sample_formatOption<SampleFormatHint>—
fallback_to_sharedbooltrue
skip_leading_silencebooltrue
normalize_enabledbool型の既定値
normalize_target_lufsf32-18.0
waveform_v_scalef321.0playctl-1/2: viz 縦スケール(x1.0…x8.0 連続)。表示のみ・音量不変。 旧 u8(1/2/4/8)も serde で f32 として読める。
playback_gain_dbf32型の既定値playctl-1: 再生ゲイン dB(−24…+12)。DSP プリ段・波形連動。

ExternalSettings

Phase 3j++: 外部アプリ連携設定(Reveal in Explorer 等のカスタムコマンド)。 file_browser_command は以下の placeholder を含むコマンドテンプレート: - {file} トラックファイルの絶対パス - {folder} 親フォルダの絶対パス 値が None / 空文字なら OS デフォルト(Windows: explorer /select,...、macOS: open -R、 Linux: xdg-open <parent>)を使う。 例: - OneCommander: OneCommander.exe -singleinstance "{folder}" - Directory Opus: "C:\Program Files\GPSoftware\Directory Opus\dopus.exe" /cmd Go DUALPATH="{folder}" - Total Commander: "C:\totalcmd\TOTALCMD64.EXE" /O /L="{file}" - Files (Files-Community): files.exe "{folder}" - Cursor (フォルダ開く): cursor.exe "{folder}" - VS Code: code.exe "{folder}"

キー型既定値説明
file_browser_commandString型の既定値カスタムファイルブラウザコマンド。空文字 / None は OS デフォルト。

CollabSettings

協調学習・プライバシー設定(colab-2)。

キー型既定値説明
opt_inbool型の既定値ユーザーが明示的に ON にした場合のみ統計を送信する(既定 false)。
client_tokenString型の既定値インストール時生成の匿名 UUID。削除要求の照合用。 空文字の場合は起動時に生成して保存する。
server_urlString型の既定値colab-3b: 集約サーバ URL(例 https://collab.example.com)。空なら MockSender。

StreamingSettings

ADR-0034 / stream-0: 外出先ストリーミング(実験・OpenSubsonic 互換スパイク)。

キー型既定値説明
enabledbool型の既定値既定 OFF。ON で GUI 内蔵 HTTP サーバを起動。
bindString"127.0.0.1".into()バインドアドレス。既定 127.0.0.1(LAN は明示操作)。
portu164040
tokenString型の既定値Subsonic のパスワード相当。空のままでは起動しない。
advertise_hostString型の既定値接続情報に出すホスト(LAN IP 選択 or 手入力)。空なら自動検出。
exclude_r18_by_defaultbooltrueagefilter-1: Air で R-18 を既定除外(人前での誤再生防止)。既定 ON。

UpdateSettings

In-app update: dismissed release version (state.toml [update]).

キー型既定値説明
dismissed_versionString型の既定値

McpSettings

ADR-0038 / mcp-1: GUI 内蔵 MCP(既定 OFF、127.0.0.1 固定)。

キー型既定値説明
enabledbool型の既定値
pinString型の既定値
allow_writesbool型の既定値ADR-0038 D5: 書き込みツール。既定 OFF。

ShareSettings

share-1/2/3: Now Playing SNS シェア設定(state.toml [share])。 内部表現は checklist flags(自由入力テンプレートは未採用)。

キー型既定値説明
fieldscrate::share_text::ShareFieldFlags型の既定値
cardcrate::share_text::ShareCardFlags型の既定値share-2: カード画像要素 On/Off(本文 fields とは独立)。
hide_work_titlecrate::share_text::HideWorkTitleMode型の既定値同人音声の作品名伏せ。既定 r18-only。旧 hide_r18_work_title から移行。
show_previewbooltrue投稿前プレビューダイアログ(既定 ON)。
mastodon_instanceString型の既定値
misskey_instanceString型の既定値
last_targetString"x".into()"x" | "bluesky" | "mastodon" | "misskey"

AnalyzeDialogSettings

anapreset-1: Analyze ダイアログの前回状態とユーザープリセット(state.toml [analyze])。

キー型既定値説明
lastOption<AnalyzeLastSession>型の既定値Start Analyze 時点のスナップショット。無ければダイアログは種別既定。
presetsVec<AnalyzeUserPreset>型の既定値解析項目チェックのみ。Only missing / 再解析 / Whisper は含めない。

ExternalMetadataSettings

Phase 6g: 外部メタデータ API(MusicBrainz / Last.fm / AcoustID)。

キー型既定値説明
enable_musicbrainzboolfalse
enable_lastfmbool型の既定値
enable_acoustidbool型の既定値
enable_discogsbool型の既定値
enable_listenbrainzbool型の既定値
lastfm_api_keyOption<String>—
discogs_api_tokenOption<String>—
acoustid_api_keyOption<String>—
auto_lookup_on_scanbool型の既定値
use_cached_onlybool型の既定値
user_agent_emailOption<String>—
acoustidAcoustIdGuiSettings型の既定値

AcoustIdGuiSettings

AcoustID thresholds (Phase 6g.1) — mirrors melodear_meta::AcoustIdSettings.

キー型既定値説明
auto_resolve_thresholdf320.85
manual_below_thresholdf320.70
auto_run_on_scanbool型の既定値
cache_ttl_daysu32365

PathInferenceSettings

Phase 6h.1: path-based artist/album inference for doujin libraries.

キー型既定値説明
enabledbooltrue
templateString"dlsite".into()disabled | dlsite | dmm_fanza | itunes | custom
custom_patternString型の既定値
scan_folder_artworkbooltrue

RatingWritebackSettings

ADR-0023 D2: opt-in rating / loved writeback to file tags (default OFF).

キー型既定値説明
enabledbool型の既定値
file_backups_enabledbooltrue
file_backup_max_entriesu32500

DoujinLookupSettings

Phase 6h.2: DLsite / DMM / Fanza online product lookup (opt-in).

キー型既定値説明
enabledbool型の既定値
age_confirmedbool型の既定値
dlsite_rate_limit_per_secf321.0
dlsite_search_interval_secf324.0Title-search interval seconds (voicelib-15). Clamped to 3–5 in the client.
dmm_rate_limit_per_secf320.5
privacy_modebooltrue
cache_resultsbooltrue
thumbnail_max_sideu32240
auto_fetch_age_ratingbool型の既定値agefilter-1: background fill of missing age ratings. Default OFF (external network).
auto_transcribe_targetbool型の既定値D7: 自動転写の対象印。既定 OFF。ON でもキュー投入しない。

← リファレンス目次へ