function chunkifyNote(note) {
if (note.includes("/")) {
const [same, time] = note.split("/");
return [...chunkifyNote(same), "/", ...chunkifyNote(time)];
}
if (note.includes("<")) {
const [first, second] = note.split("<");
return [first, "<", second];
}
if (note.includes(">") && !note.includes("->")) {
const [first, second] = note.split(">");
return [first, ">", second];
}
if (_.startsWith(note, "!!!")) {
return ["!!!", _.drop(note, 3).join("")];
}
if (_.startsWith(note, "!!")) {
return ["!!", _.drop(note, 2).join("")];
}
if (_.startsWith(note, "!")) {
return ["!", _.drop(note, 1).join("")];
}
return [note];
}