fixing some of the current issues with pat

This commit is contained in:
2024-05-14 15:21:50 +02:00
parent 6f61558ffb
commit 74642bd1f4
6 changed files with 151 additions and 73 deletions

View File

@ -12,6 +12,20 @@ BuboUtils {
)
}
*cleanSampleName {
arg str;
if (str == nil, { ^nil });
^str.asList.collect({
|char|
if (char.isAlpha, char, "")
}).join
}
*cleanSampleIndex {
arg number;
if (number.isKindOf(Number), { ^number }, { ^0 });
}
*banner {
var banner = "┳┓ ┓ ┳┓ ┓ ┳┓\n"
"┣┫┓┏┣┓┏┓┣┫┓┏┣┓┏┓ ┣┫┏┓┏┓╋\n"
@ -39,4 +53,3 @@ BuboUtils {
});
}
}