> On Feb 28, 2017, at 5:06 PM, [email protected] wrote:
> 
> Hello list, 
> 
> This is my first post here and I?m fairly new to Lilypond, but I need some 
> help. I am using Lilypond to compose, and I need to merge 4 scores into one. 
> All four scores have the same 6 instruments and time signature (4/4), and all 
> rhythms fall into the same grid of 16th notes. 
> 
> What I imagine by ?merging? is something like superimposing pixels (multiply, 
> add, substract, divide) but applying this to the 16th-note ?pixel?.
> 
> Is this something that can be done within Lilypond? Any suggestion would be 
> really appreciated!
> 
> Thanks!
> 
> Fede
> 
Fede, Welcome to the list.

May I suggest that if you want to do computational work on scores, you may find 
the MIDI representation more workable than lilypond.  Lilypond can generate 
MIDI, and I'm currently working on updating the reverse function--getting MIDI 
into Lilypond.
The recently-updated midi.py Python routine, (see also lilymidi.py --dump)  
converts MIDI files into a more readily parseable pseudo-MIDI bracketed list 
structure.

Given the MIDI representation of pitches by integers (middle C = 60) and 
absolute start-stop times (converted by midi.py from intervals into actual tick 
counts) you could then do whatever arithmetic you care to with whatever 
programming language you know, create a resultant pseudo-MIDI file, then 
reconvert that into a score via lilypond.  (We could also convert the 
pseudo-MIDI back into real MIDI or possibly into something else.)  If you wish 
to explore this approach further, I'd be happy to assist with additional 
information.
Joe Austin

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to