cornedriesprong / mingus

Automatically exported from code.google.com/p/mingus
GNU General Public License v3.0
0 stars 0 forks source link

Lilypond output lacks one octave #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

from mingus.containers.Bar import Bar
from mingus.containers.Note import Note
from mingus.extra import LilyPond
import mingus.core.value as value
b = Bar()
for i in range(10):
    b.place_notes(Note().from_int(40+i), 16)

print LilyPond.from_Bar(b)

What is the expected output? What do you see instead?
I think it should be:

{ \time 4/4 \key c \major e 16 f 16 fis 16 g 16 gis 16 a 16 ais 16 b 16
c'16 cis'16 }

Instead there is a jump over one octave:

{ \time 4/4 \key c \major e,16 f,16 fis,16 g,16 gis,16 a,16 ais,16 b,16
c'16 cis'16 }

if you run lilypond over that you see a gap over one octave:

It should be
a,,, a,, a,  a  a' a'' a'''

mingus skips the notes without quotes and kommas.

What version of the product are you using? On what operating system?

3.9.0.1 ubuntu 64bit

Original issue reported on code.google.com by s.huchler@gmail.com on 28 Feb 2009 at 12:56

GoogleCodeExporter commented 9 years ago
Seems to be an off by one error in LilyPond.from_Note. I will probably fix it 
this
weekend together with #34.

Original comment by Rhijnauwen@gmail.com on 28 Feb 2009 at 7:40

GoogleCodeExporter commented 9 years ago
Pushed in the fix for this and #34. Will release version 0.3.9.2 containing this
fixes later today. 

Original comment by Rhijnauwen@gmail.com on 1 Mar 2009 at 5:50