Brennan
Thanks a lot for your workaround which is very very cleaver !
I had not the time for the moment to lose myself in all its technicality, but at first 
glance 
it seems to work only for a special movie, once and for all pre-programed into the 
projector environment.
Am I wrong ?
But what to do if  the quicktime movies  are loaded from anyplace by the final user ?
If that user listen to a stereo track containing for example music on the left side 
and speak at the right one,
he must find something to mute either the left or the right part of the sound.
For the moment, the only way I have found is to go to sound system preferences and set 
the outpout panning by hand.
It's why I asked for a simple applescript which would be able to do that.
I don't need to send an applescript to "some kind of scriptable QuickTime Player 
running in the background".
Thanks again
jean-louis valero
PS: Alas, Jeremy, I can't live without it being QT...

Brennan wrote:

The standard QuickTime Xtra does not expose stereo panning to Lingo, but
you can do it with QuickTime wired actions. Actually, I used exactly this
as an example to demonstrate how to get Lingo to 'talk' to wired actions.

<http://brennan.young.net/Comp/LiveStage/Lingo2QT.html>

(I did this before Director offered stereo panning from Lingo).

Basically, I have a QuickTime wired action fired on idle which polls the
enabled state of some dummy tracks, and treats these as 'bits'. Eight of
such tracks gives you 256 possible values(!) The wired action then sets
the stereo pan accordingly.

It's a slow ugly hack, but it works - even with shockwave as you can see.

However it can be optimized in your case: You want to switch between left
and right channels, so you really only need one bit of data to be passed
between lingo and Quicktime - i.e. one additional track. If you also want
to switch both channels on, you will need two bits/tracks. Again, this is
quite doable.

If you can run your project on a writable volume, you can write an XML
file with fileIO and get QuickTime to read it in at regular intervals.
Again, this is slow, but you have massive bandwidth available, and you'd
be passing structured data too, which is a big bonus, contrary the
technique linked above which requires one dummy 'track' per bit of data.

Applescript - quite up to the task of panning the stereo a QuickTime movie
- wouldn't help much here because you'd need to have some kind of
scriptable QuickTime Player running in the background (i.e. QuickTime
Player, or something you cobble together yourself). Then you'd still have
trouble sending messages to it without Bruce Epstein's Xtra.

In other words, you wouldn't be doing anything at all to a QuickTime
*member*, rather you will be manipulating QuickTime Player (and hoping
that it doesn't go out of synch with your Director stuff). If this is
still desirable, I can help you put together a script.

Brennan

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to