Code Monkey home page Code Monkey logo

lilypond-midiswing's Introduction

LilyPond-midiswing

Adds functionality required for automatically swingifying LilyPond midi output while leaving layout untouched.

lilypond-midiswing's People

Contributors

thekugelmeister avatar

Stargazers

Ezequiel Birman avatar

Watchers

 avatar

lilypond-midiswing's Issues

Miscalculation on a 1/8 3/8 pattern

Hi,

great work.
Unfortunately something seems to be not calculated right. In the following snippet LilyPond draws a quarter note instread of the eights and complains about a failing bar check.

\version "2.20.0"
\include "LilyPond-midiswing/beatalign.ly"
\include "LilyPond-midiswing/swing.ly"

\score {
  \keepWithTag #'midi
  << 
    \context Staff = "lied" {
      \time 4/4
      \key g \major
      \sw \relative c'' {
	r2 b8 b4. |
      }
    }
  >>
  \midi{}
  \layout{} % show what's going on with the MIDI code
}

Output:

GNU LilyPond 2.20.0
Processing `swingbug1.ly'
Parsing...
Interpreting music...
swingbug1.ly:12:19: warning: barcheck failed at: 1/24
	r2 b8 b4. 
                  |
Interpreting music...
swingbug1.ly:12:19: warning: barcheck failed at: 1/24
	r2 b8 b4. 
                  |
Preprocessing graphical objects...
MIDI output to `swingbug1.midi'...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `/tmp/lilypond-jD72t7'...
Converting to `swingbug1.pdf'...
Deleting `/tmp/lilypond-jD72t7'...
Success: compilation successfully completed

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.