Correction bug de répercussion sur Sequenceur Maitre sur ajout suppression entrées dans les Seq Macro, Midi et OSC
This commit is contained in:
parent
0a3b58f73d
commit
7a27345f0a
3 changed files with 12 additions and 4 deletions
|
|
@ -658,7 +658,7 @@ namespace DMX2
|
|||
var cmd = regexCommand2.Match(commands[i]);
|
||||
if(cmd.Success){
|
||||
int ef = int.Parse(cmd.Groups["effet"].Value);
|
||||
if (ef-1>index) {
|
||||
if (ef>index) {
|
||||
ef++;
|
||||
commands[i] = ef.ToString() + cmd.Groups["params"].Value;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -566,7 +566,7 @@ namespace DMX2
|
|||
var cmd = regexCommand2.Match(commands[i]);
|
||||
if(cmd.Success){
|
||||
int ef = int.Parse(cmd.Groups["effet"].Value);
|
||||
if (ef-1>index) {
|
||||
if (ef>index) {
|
||||
ef++;
|
||||
commands[i] = ef.ToString() + cmd.Groups["params"].Value;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -309,6 +309,7 @@ namespace DMX2
|
|||
string[] data = enCours.Commande.Split(' ');
|
||||
|
||||
OSCMessage message = new OSCMessage(data[0]);
|
||||
if (data.Length < 2) return;
|
||||
for (int i = 1; i < data.Length; i++)
|
||||
{
|
||||
if (int.TryParse(data[i], out int di))
|
||||
|
|
@ -320,8 +321,15 @@ namespace DMX2
|
|||
|
||||
|
||||
var buff = message.Encode();
|
||||
try
|
||||
{
|
||||
udpClient.Send(buff, buff.Length);
|
||||
}
|
||||
catch (SocketException)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
@ -479,7 +487,7 @@ namespace DMX2
|
|||
var cmd = regexCommand2.Match(commands[i]);
|
||||
if(cmd.Success){
|
||||
int ef = int.Parse(cmd.Groups["effet"].Value);
|
||||
if (ef-1>index) {
|
||||
if (ef>index) {
|
||||
ef++;
|
||||
commands[i] = ef.ToString() + cmd.Groups["params"].Value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue