Skip to content

Commit 3716714

Browse files
Update schemas for new fields
1 parent d1cc3e0 commit 3716714

File tree

3 files changed

+28
-9
lines changed

3 files changed

+28
-9
lines changed

MSUScripter/Configs/MsuSongMsuPcmInfo.cs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class MsuSongMsuPcmInfo
4343
[Description("Alter the volume after msupcm++ has generated the PCM file")]
4444
public float? PostGenerateVolumeModifier { get; set; }
4545

46-
[Description("If the volume modifier after msupcm++ generation should be adding decibels")]
46+
[Description("If the volume modifier after msupcm++ generation should be in decibels instead of percent")]
4747
public bool IsPostGenerateVolumeDecibels { get; set; }
4848

4949
[Description("Apply dynamic range compression to the current track")]
@@ -65,10 +65,10 @@ public class MsuSongMsuPcmInfo
6565
public bool ShowPanel { get; set; } = true;
6666

6767
[Description("Files which will be concatenated together to form the input to the parent track")]
68-
public List<MsuSongMsuPcmInfo> SubTracks { get; set; } = new();
68+
public List<MsuSongMsuPcmInfo> SubTracks { get; set; } = [];
6969

7070
[Description("Files which will be mixed together to form the input to the parent track")]
71-
public List<MsuSongMsuPcmInfo> SubChannels { get; set; } = new();
71+
public List<MsuSongMsuPcmInfo> SubChannels { get; set; } = [];
7272

7373
public void ClearFieldsForYaml()
7474
{
@@ -87,12 +87,7 @@ public bool AreFilesValid()
8787

8888
public List<string> GetFiles()
8989
{
90-
if (!string.IsNullOrEmpty(Output))
91-
{
92-
var outputFile = Output;
93-
}
94-
95-
List<string> files = new List<string>();
90+
List<string> files = [];
9691

9792
if (!string.IsNullOrEmpty(File))
9893
{

Schemas/MsuSongInfo.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,18 @@
142142
"description": "Normalize the current track to the specified RMS level, overrides the global normalization value",
143143
"format": "double"
144144
},
145+
"PostGenerateVolumeModifier": {
146+
"type": [
147+
"null",
148+
"number"
149+
],
150+
"description": "Alter the volume after msupcm++ has generated the PCM file",
151+
"format": "float"
152+
},
153+
"IsPostGenerateVolumeDecibels": {
154+
"type": "boolean",
155+
"description": "If the volume modifier after msupcm++ generation should be in decibels instead of percent"
156+
},
145157
"Compression": {
146158
"type": [
147159
"boolean",

Schemas/MsuSongMsuPcmInfo.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,18 @@
8585
"description": "Normalize the current track to the specified RMS level, overrides the global normalization value",
8686
"format": "double"
8787
},
88+
"PostGenerateVolumeModifier": {
89+
"type": [
90+
"null",
91+
"number"
92+
],
93+
"description": "Alter the volume after msupcm++ has generated the PCM file",
94+
"format": "float"
95+
},
96+
"IsPostGenerateVolumeDecibels": {
97+
"type": "boolean",
98+
"description": "If the volume modifier after msupcm++ generation should be in decibels instead of percent"
99+
},
88100
"Compression": {
89101
"type": [
90102
"boolean",

0 commit comments

Comments
 (0)