Giter VIP home page Giter VIP logo

psharmonize's People

Contributors

bateskevin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

bjompen

psharmonize's Issues

Design for the DSL

The DSL in my imagination would look something along these lines:

Song -BPM 120 -Content {
    
    Bar {
        Beat {
            Eight {
                C
            }
            Eight {
                D
            }
        }
        Beat {
            Eight {
                E
            }
            Eight {
                F
            }
        }
        Beat {
            Eight {
                G
            }
            Eight {
                A
            }
        }
        Beat {
            Eight {
                B
            }
            Quarter {
                C -Octave 4
            }
        }
    }

    Bar {
        Beat {
            Eight {
                
            }
            Eight {
                B  
            }
        }
        Beat {
            Eight {
                A
            }
            Eight {
                G
            }
        }
        Beat {
            Eight {
                F
            }
            Eight {
                E 
            }
        }
        Beat {
            Eight {
                D
            }
            Eight {
                C 
            }
        }
    }
}

That example would just play you the C Major Scale.

The Letters are functions that generate a note, that we can relate them to an octave. The Standard Octave for a Note atm is 3. That's why in the example above only the upper C of the scale has an octave defined.

So you could also send multiple notes in an eight, or a quarter or so. These in the background will just be midi note on sends.

The BPM defines how long the Sleep is between the eights. For the Moment I think it's enough to add Eights. Sixteenths could be added later.

The code above should create a script that runs the midi api calls and sleeps on its self. If done through foreach in the object directly there is to much latency. A standalone script however without any math for powershell to do in between should do the job.

If somebody has any suggestions or feedback on the above that would be much appreciated!

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.