My post linked above explains how to get note values - there is some code there you can use in SuperCollider to do so.
The second part of your question is beyond my skills though, although I have seen @yaxu creating Tidal patterns from an old fashioned music box, so I'm sure it is possible