-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TODO Set Slider memento's interval
- Loading branch information
Showing
5 changed files
with
234 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using Mirivoice.Engines; | ||
using Mirivoice.Mirivoice.Core.Format; | ||
using Mirivoice.ViewModels; | ||
using Serilog; | ||
using System; | ||
|
||
namespace Mirivoice.Commands | ||
{ | ||
public enum ExpVITS2 | ||
{ | ||
Speed = 0, | ||
Noise1 = 1, | ||
Noise2 = 2, | ||
} | ||
public class VITS2SetExpOriginator : MOriginator<int> | ||
{ | ||
private int index; | ||
|
||
private readonly ExpressionEditViewModelVITS2 v; | ||
|
||
ExpVITS2 type; | ||
public VITS2SetExpOriginator(ref int index, ExpressionEditViewModelVITS2 v, ExpVITS2 type) : base(ref index) | ||
{ | ||
this.index = index; | ||
this.v = v; | ||
this.type = type; | ||
} | ||
|
||
|
||
public override void UpdateProperties() | ||
{ | ||
Log.Debug("[Updating Properties] -- {obj}", obj); | ||
switch (type) | ||
{ | ||
case ExpVITS2.Speed: | ||
v.NotProcessingSpeedCommand = true; // prevent recursion loop | ||
v._vits2Speed = obj; | ||
v.OnPropertyChanged(nameof(v.VITS2Speed)); | ||
break; | ||
case ExpVITS2.Noise1: | ||
v.NotProcessingNoise1Command = true; // prevent recursion loop | ||
v._vits2Noise1 = obj; | ||
v.OnPropertyChanged(nameof(v.VITS2Noise1)); | ||
break; | ||
case ExpVITS2.Noise2: | ||
v.NotProcessingNoise2Command = true; // prevent recursion loop | ||
v._vits2Noise2 = obj; | ||
v.OnPropertyChanged(nameof(v.VITS2Noise2)); | ||
break; | ||
} | ||
} | ||
} | ||
} |
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