Giter VIP home page Giter VIP logo

psharmonize's Introduction

PSHarmonize

Powershell Music framework

Create Music without musical knowledge

PSHarmonize let's you create Music without you having to know Musictheory or how to play an instrument.

How can it do that, you ask? It knows Music theory for you!

AzurePipelines

Overall Status Windows Linux MacOS
Build Status Build Status Build Status Build Status

Roadmap

  • basic Scales
  • basic Chords
  • ChordProgressions
  • Basic Console Output Sheet Music
  • Actualy Basic Sheet Music
  • Basic Midi Output
  • DSL
    • Create Basics for writing Sheet Music
    • Add way to notate Chords directly
    • Add way to notate inversions of chords directly
    • Add Support for accidetals
    • Add Bassline Notation
    • Add ties in notation
    • Add Key Definition of Song
    • Add functionality to export the notated music to a Midi Script
      • Basic Midi Support now Works!!! :D
  • More Complex Scales
  • More Complex Chords
  • Actual harmonizing of melodies
  • Possibility to output Midi from DSL

Intro

In Music we usually define a 'key' to which we relate what we play. A key is defined by its root note.

So for example if we take the key of 'C' we have 'C' as our root note. Now how would do we know what other notes we can use in the key of 'C'? So this is where music theory comes in and you would go ahead and apply intervals (difference between notes in numbers --> 1 above 'C' would be 'D') up until we are at the root note again, but one octave higher. One octave would be 12 semi tones higher than the root note. So in the case of 'C' it is a C again, but played higher.

Confused yet? Good! Cause that's what PSHarmonize is for!

To learn more about the basics and understand better how PSHarmonize can help you go here

Midi

You can Output your notated music to Midi. Check out this Video

Onebar

Read More about Midi here (Docs not done yet)

Notation

The first version of the very basic (and maybe a little buggy) DSL is out!

Check the code here:

Beethovens 5th

Which will give you this:

Beethovens5th

Read More about Notation here

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.