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:
Arnaud HOUDELETTE-LANGLOIS 2026-10-29 00:28:47 +01:00
parent 0a3b58f73d
commit 7a27345f0a
3 changed files with 12 additions and 4 deletions

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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;
}