Fixing more conditional logic
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user