-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add: ソングの書き出しダイアログを追加 * Add: ダイアログを完成させる * Add: パラメータ適用以外は実装 * Add: 書き出せるように * Change: wave -> audio * Add: wav以外の書き出しを追加 * Change: メモ -> NOTE Co-authored-by: Hiroshiba <[email protected]> * Fix: ファイル名のプレビューを修正 * Fix: トーク側のファイル名を修正 * Change: DialogStatesに定義を置く * Add: 出力ポップアップを追加 * Fix: プレビューを修正 * Delete: フォーマット選択を削除 * Change: テキストを変える Co-Authored-By: sigprogramming <[email protected]> * Update: 色々更新 * Change: モノラル時はpan=0を使う用に * Change: ステレオでandをかける * Change: wav -> WAV Co-authored-by: Hiroshiba <[email protected]> * Code: コメントを変える Co-authored-by: Hiroshiba <[email protected]> * Change: 書き出し -> 書き出す Co-authored-by: Hiroshiba <[email protected]> * Code: コメントを追加 Co-authored-by: Hiroshiba <[email protected]> * Revert: package-lock.jsonの変更を戻す * Change: TrackParametersをstore/type.tsに移動 * Change: isMonoに * Code: コメントを追加 * Fix: デフォルト値を修正 * Fix: 条件を修正 Co-authored-by: Sig <[email protected]> * Improvr: テキストをいい感じにする * Change: isStereo -> isMono * Improve: モノラル書き出しをオンにするとパンが無効化されるように * 微調整 --------- Co-authored-by: Hiroshiba <[email protected]> Co-authored-by: sigprogramming <[email protected]> Co-authored-by: Sig <[email protected]>
- Loading branch information
1 parent
755d84b
commit f45ec28
Showing
21 changed files
with
521 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!-- | ||
NOTE: SettingDialogのBaseCellを参考にして作成 | ||
--> | ||
|
||
<template> | ||
<QCardActions :class="props.class"> | ||
<div>{{ title }}</div> | ||
<div :aria-label="description"> | ||
<QIcon name="help_outline" size="sm" class="help-hover-icon"> | ||
<QTooltip | ||
:delay="500" | ||
anchor="center right" | ||
self="center left" | ||
transitionShow="jump-right" | ||
transitionHide="jump-left" | ||
> | ||
{{ description }} | ||
</QTooltip> | ||
</QIcon> | ||
</div> | ||
<QSpace /> | ||
<slot /> | ||
</QCardActions> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
export type Props = { | ||
title: string; | ||
description: string; | ||
class?: unknown; // 型はquasarの定義を真似ている | ||
}; | ||
|
||
const props = defineProps<Props>(); | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
@use "@/styles/visually-hidden" as visually-hidden; | ||
@use "@/styles/colors" as colors; | ||
|
||
.help-hover-icon { | ||
margin-left: 6px; | ||
color: colors.$display; | ||
opacity: 0.5; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<template> | ||
<Presentation v-model="modelValue" @exportAudio="handleExportAudio" /> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { notifyResult } from "../Dialog"; | ||
import Presentation, { ExportTarget } from "./Presentation.vue"; | ||
import { useStore } from "@/store"; | ||
import { SaveResultObject, SongExportSetting } from "@/store/type"; | ||
defineOptions({ | ||
name: "ExportSongAudioDialog", | ||
}); | ||
const modelValue = defineModel<boolean>(); | ||
const store = useStore(); | ||
const handleExportAudio = async ( | ||
target: ExportTarget, | ||
setting: SongExportSetting, | ||
) => { | ||
let result: SaveResultObject; | ||
if (target === "master") { | ||
result = await store.dispatch("EXPORT_AUDIO_FILE", { setting }); | ||
} else { | ||
result = await store.dispatch("EXPORT_STEM_AUDIO_FILE", { setting }); | ||
} | ||
notifyResult( | ||
result, | ||
"audio", | ||
store.actions, | ||
store.state.confirmedTips.notifyOnGenerate, | ||
); | ||
}; | ||
</script> |
Oops, something went wrong.