I'm trying to run this code:
var elements_var = "Csus2 FM Dm CM";
var elements = ["Csus2","FM","Dm","CM"];
var note_var = (elements.join('\xa0'));
console.log("elements.join output:")
console.log(note_var);
console.log("Regular string output:")
console.log(elements_var);
note_2 = note_var;
const chordsClip = scribble.clip({
// Use chord names directly in the notes array
// M stands for Major, m stands for minor
notes: note_var,
pattern: 'x---'.repeat(4)
});
And this is the Console output:
As you can see while console displays "Csus2 FM Dm Cm" correctly in both regular string (elements_var) and elements.join output (note_var), note_var seems to be missing it's first char when passing it to another function.
Function works perfectly when elements_var is inserted instead of note_var. What's happening? How can I fix this issue?

\xa0is a non-breaking space, so your strings are not equivalent. Why not use a space instead?notesproperty must be set to an array, not a string.scribbletunelibrary. Can you confirm, OP?