fixing some of the current issues with pat
This commit is contained in:
@ -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 {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user