Fixing more conditional logic

This commit is contained in:
2024-05-15 12:13:34 +02:00
parent 5bc1cd641f
commit 27cbb48c98
7 changed files with 60 additions and 34 deletions

View File

@ -67,18 +67,16 @@ EventShortener {
});
});
];
new_pattern = new_pattern ++ [
sp: Pfunc { |e| e.str ? "" },
nb: Pfunc { |e| e.num ? 0 }
];
}, {
new_pattern = new_pattern ++ [a, b];
});
});
});
if (pattern.includes('i') || pattern.includes('instrument') == false, {
new_pattern = new_pattern ++ [
sp: Pfunc { |e| e.str ? "" },
nb: Pfunc { |e| e.num ? 0 }
];
});
new_pattern.postln;
^new_pattern
}