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: Karl Hammar
Subject: Re: can I set panning in midi
Date: Sun, 8 Sep 2013 21:58:25 +0200 (CEST)

Karl Hammar:
> David Kastrup:
> > address@hidden (Karl Hammar) writes:
> > 
> > > I can set midi instrument with e.g.
> > 
> > [...]
> > 
> > > but can I set where in the stereo left-right sound picture the sound
> > > will be placed ?
> > 
> > No.
...
>  http://home.roadrunner.com/~jgglatt/tech/midispec/pan.htm
> 
> mentions pan, perhaps this is fixable.

I'm trying to make 

\score { \unfoldRepeats %\articulate
  <<
    \set Score.midiInstrument = #"electric bass (finger)" % 34
    \new ChoirStaff <<
      \new Staff {
        \set Staff.midiPan = #90
        \context Voice = Vs { \fmks }
      }
      \new Staff {
        \set Staff.midiPan = #30
        \context Voice = Va { \fmka }
      }
      \new Staff {
        \set Staff.midiPan = #-30
        \context Voice = Vt { \fmkt }
      }
      \new Staff {
        \set Staff.midiPan = #-90
        \context Voice = Vb { \fmkb }
      }
    >>
  >>
  \midi { \tempo 4 = 108 }
}

to work.

Getting from .ly file to c++ was easy, but how do I get the
pan-setting down to midi ?

My current try is

 http://turkos.aspodata.se/tmp/pan.diff

and my guess is that somehow
 Staff_performer::acknowledge_audio_element
is run, which adds things to the audio_staff.

Then, somehow something from midi-chunk.cc is run.

Soo, how far off from reality am I?

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





reply via email to

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