GithubHelp home page GithubHelp logo

mdileep / nfugue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mchudy/nfugue

1.0 2.0 0.0 3.29 MB

Music programming for .NET - a port of JFugue

License: Apache License 2.0

C# 89.80% Visual Basic 10.20%

nfugue's Introduction

NFugue

Build status NuGet

.NET port of JFugue based on version 5.0.9.

NFugue allows you to create, play and experiment with music programatically. You can easily build music using elements like chords, chord progresssions and rhythms which will get transformed to MIDI for you. It also supports integration with some other musical formats like LilyPond or MusicXML.

The real-time music analysis and playback functionality available in JFugue is not yet implemented.

Download

NFugue is available on NuGet:

PM> Install-Package NFugue

Getting started

Musical "Hello World" i.e. playing the major scale:

using (var player = new Player())
{
    player.Play("C D E F G A B");
}

Music in NFugue is generally represented by patterns which can be transformed in various ways, for example to create some twelve-bar blues:

Pattern pattern = new ChordProgression("I IV V")
    .Distribute("7%6")
    .AllChordsAs("$0 $0 $0 $0 $1 $1 $0 $0 $2 $1 $0 $0")
    .EachChordAs("$0ia100 $1ia80 $2ia80 $3ia80 $4ia100 $3ia80 $2ia80 $1ia80")
    .GetPattern()
    .SetInstrument(Instrument.AcousticBass)
    .SetTempo(120);

For more examples and a description of the Staccato markup visit JFugue website. Most examples should work in NFugue with little or no modifications.

nfugue's People

Contributors

jiachen-zeng avatar mchudy avatar mdileep avatar

Stargazers

 avatar

Watchers

 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.