lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can I set panning in midi


From: Vaughan McAlley
Subject: Re: can I set panning in midi
Date: Fri, 6 Sep 2013 23:26:29 +1000

On 6 September 2013 19:06, Karl Hammar <address@hidden> wrote:
Vaughan McAlley:
> On 6 September 2013 08:50, Karl Hammar <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]