@onjmin/dtm
    Preparing search index...

    Type Alias DtmStudioOptions

    type DtmStudioOptions = {
        audioContext?: AudioContext;
        defaultPreset?: string;
        drumVolume?: number;
        engines?: DtmStudioEngines;
        features?: { chord?: boolean; midi?: boolean; presetUI?: boolean };
        koeBaseUrl?: string;
        masterVolume?: number;
        midiSearch?: MidiSearchConfig;
        voiceWorkerUrl?: string | null;
        worldlineScriptUrl?: string;
    }
    Index

    Properties

    audioContext?: AudioContext

    既存の AudioContext を使う(未指定なら内部生成)。

    defaultPreset?: string

    初期の楽器プリセットキー(INSTRUMENT_PRESETS)。既定 "retro_game"。

    drumVolume?: number

    ドラム音量 0-1。既定 1。

    外部エンジンの注入(指定したものは組み込み実装をスキップ)。

    features?: { chord?: boolean; midi?: boolean; presetUI?: boolean }

    有効化する機能。既定はすべて true。

    Type Declaration

    • Optionalchord?: boolean

      コード入力(和音)。

    • Optionalmidi?: boolean

      MIDIファイル読み込み。

    • OptionalpresetUI?: boolean

      編集UIに楽器プリセット選択UIを差し込む。

    koeBaseUrl?: string

    koe音源(.koe)のベースURL。 Discord Activity など CSP 制限下で /.proxy/koe を渡すと worker 内の fetch も同オリジン経由になり CSP を通過できる。

    masterVolume?: number

    マスター音量 0-1(楽器・歌声)。既定 1。

    midiSearch?: MidiSearchConfig

    MIDI検索クライアントの設定(未指定なら検索UI非表示)。

    voiceWorkerUrl?: string | null

    歌声合成ワーカー(voice-worker.js)のURL。 既定はパッケージ同梱の dist/voice-worker.js。 null を渡すとワーカーを使わず klatt のみ(koe音源はメインスレッド合成)。

    worldlineScriptUrl?: string

    worldline.js(WORLDボコーダ)のURL。 Discord Activity など CSP 制限下で /.proxy/koe-lib/demo/world/worldline.js を渡すと worker 内の importScripts も同オリジン経由になり CSP を通過できる。