On 6 September 2013 19:06, Karl Hammar <k...@aspodata.se> wrote:

> Vaughan McAlley:
> > On 6 September 2013 08:50, Karl Hammar <k...@aspodata.se> wrote:
> ...
> > > > For which purposes do You want to use midi?
> > >
> > > Producing exercise sound files for the choir, they basically wants
> > > mp3's or something similar. I have tried ogg but their systems kind
> > > of not understands that.
> > >
> > > I'd like to have e.g. basses at left, tenors mid left, altos mid right
> > > and sopranos at right, to make each voice easier to hear and follow.
> ...
> > I wrote the attached script for exactly this purpose. It saves mucking
> > around with anything more sophisticated than a simple MIDI player. The
> > tracks are distributed evenly across the panning range. Unfortunately
> > it requires Lua, but Lua is small and the last few times I’ve found it
> > very easy to install. More detailed instructions are in the script...
>
> For some reason it produces a exact copy of the input file:
>
> $ lua -v
> Lua 5.2.1  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> $ lua ~/panning.lua 2b_choer.midi zz.midi
> 2b_choer.midi   zz.midi
> $ lsl 2b_choer.midi zz.midi
> -rw-r--r-- 1 karl users 2995 2013-09-05 21:39 2b_choer.midi
> -rw-r--r-- 1 karl users 2995 2013-09-06 08:58 zz.midi
> $ md5sum 2b_choer.midi zz.midi
> 203528cd285a0e7438886c9c893d6490  2b_choer.midi
> 203528cd285a0e7438886c9c893d6490  zz.midi
> $
>
> Regards,
> /Karl Hammar
>
>
>
Oops, it looks like MIDI files produced by LilyPond 2.17 look a bit
different to what 2.16 produced. This revised version of the script appears
to work, and spat out the attached MIDI file...

Cheers,
Vaughan

Attachment: panning.lua
Description: Binary data

Attachment: 2b_choer_panned.midi
Description: MIDI audio

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to