chore: increase default volume to 70 and switch play mode to stereo L/R split
This commit is contained in:
1 parent
8ba24a97e2
commit
2ed7a6306b
2 files changed
+7
-7
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ target_tp = -1.0 # true peak limit (dBTP)
|
|||||||
target_lra = 11 # loudness range
|
target_lra = 11 # loudness range
|
||||||
# Audio stream selection: null = prompt interactively, int = use that index, "skip" = no audio
|
# Audio stream selection: null = prompt interactively, int = use that index, "skip" = no audio
|
||||||
# stream = null
|
# stream = null
|
||||||
volume = 10 # the default volume in ast
|
volume = 70 # the default volume in ast
|
||||||
|
|
||||||
[sync]
|
[sync]
|
||||||
# Analysis window: null = use full extracted duration; otherwise limit for quick test
|
# Analysis window: null = use full extracted duration; otherwise limit for quick test
|
||||||
|
|||||||
+6
-6
@@ -423,7 +423,7 @@ class VerifyWindow(QtWidgets.QMainWindow):
|
|||||||
|
|
||||||
ctrl.addWidget(QtWidgets.QLabel("Play:"))
|
ctrl.addWidget(QtWidgets.QLabel("Play:"))
|
||||||
self.play_mode = QtWidgets.QComboBox()
|
self.play_mode = QtWidgets.QComboBox()
|
||||||
self.play_mode.addItems(["A+B mix", "A only", "B only"])
|
self.play_mode.addItems(["A left, B right", "A only", "B only"])
|
||||||
self.play_mode.setCurrentIndex(0)
|
self.play_mode.setCurrentIndex(0)
|
||||||
self.play_mode.setFixedWidth(90)
|
self.play_mode.setFixedWidth(90)
|
||||||
ctrl.addWidget(self.play_mode)
|
ctrl.addWidget(self.play_mode)
|
||||||
@@ -599,15 +599,15 @@ class VerifyWindow(QtWidgets.QMainWindow):
|
|||||||
vol_b = self.vol_b_slider.value() / 100.0
|
vol_b = self.vol_b_slider.value() / 100.0
|
||||||
|
|
||||||
mode = self.play_mode.currentIndex()
|
mode = self.play_mode.currentIndex()
|
||||||
if mode == 0: # A+B mix
|
if mode == 0: # A left, B right
|
||||||
ml = min(len(a_seg), len(b_seg))
|
ml = min(len(a_seg), len(b_seg))
|
||||||
mix = (a_seg[:ml] * vol_a + b_seg[:ml] * vol_b) / 2.0
|
stereo = np.column_stack([a_seg[:ml] * vol_a, b_seg[:ml] * vol_b])
|
||||||
elif mode == 1: # A only
|
elif mode == 1: # A only
|
||||||
mix = a_seg * vol_a
|
stereo = np.column_stack([a_seg * vol_a, np.zeros_like(a_seg)])
|
||||||
else: # B only
|
else: # B only
|
||||||
mix = b_seg * vol_b
|
stereo = np.column_stack([np.zeros_like(b_seg), b_seg * vol_b])
|
||||||
|
|
||||||
self.audio_player.play(mix, self.sr)
|
self.audio_player.play(stereo, self.sr)
|
||||||
self.playing_a_b = True
|
self.playing_a_b = True
|
||||||
self.btn_play.setText("Pause")
|
self.btn_play.setText("Pause")
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user