Coder Social home page Coder Social logo

lyfil_ts's Introduction

LyFil

Lyrics Filler with Tonal Concerns (especially tonal languages). In TypeScript.

Architecture (Draft?)

Source

Source Lyrics (String)
 `- Verses (Separated by $ (Or by 2 newlines))
     `- Sentences (Separated by space, comma (,) or by newlines)
         `- Phrases (Separated by /)

Example

今天我/寒夜裡看雪飄過  <- This is a whole sentence, while music breaks at /
懷著冷卻了的心窩漂遠方
風雨裏追趕
霧裡分不清影蹤
天空海闊你與我/可會變  <- This is a whole sentence, while the melody pauses at /
(誰沒在變)
...

Which is parsed into a string in the form ___/_______,_____,_____,_____,_____/____$...

Constraints

Can use - for AND, | for OR phrases.

No prefix <- Dictionary with pure vocabs
: <- dictionary alias, that decomposes into aliases or no prefix
^ <- Sentence splitter
$ <- Verses splitter
# <- Song

Not needed at the moment:
, <- Phrase splitter
/ <- Tempo splitter (there should be a break between vocabs, but this doesn't break the phrase (like between 如果 & 可以))

Say, a song can be filled by the Story : "Start THEN Development THEN Twist THEN End".

Which, only Development can consume more than 1 verse.

So the corresponding constraint (conceptually, not syntactically) would be: #Story = $Start-#Development-$Twist-$End.

Which #Development should be decomposed as $Development|$Development-#Development (1 or more than 1 $Development).

Let's dig deeper with $Start. Assume it is Name THEN Background, which only Background can span across sentences.

Thus $Start = ^Name-$Background, which $Background = ^Background|^Background-$Background.

Then for sentence ^Background, it consists of several phrases (to be separated by commas). Let's just call them ^phrases (as if we are treating an incomplete sentence as sentence itself), which are in the form of :subject-:verb-:object which connects directly to dictionary subject, etc..

lyfil_ts's People

Contributors

sunnypp avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.