How to define my own scale

I thought I can find my scale in tunejs.js then I decided that probably it’s easier to define my preferred scale quickly. But I realized that it’s not as intiutive as I assumed…
Any guidance would be much appreciated!

// what's the proper way to define my own scale?

// let myscale="C:aeol"
let myscale="c d eb f g ab"
// let myscale="[c,d,eb,f,g,ab]"
// let myscale=["c","d","eb","f","g","ab"]

$: s("piano!4")
   .n("0 1 2 3")
   .scale(myscale)

Interestingly, this seems to be working but it has nothing to do with defining scales.

s("piano!4")
  .note("c,d,eb,f,g,ab,b")
  .arp("0 1 2 3")