EnhancedQT - Out of Balance

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
xfratboy
Posts: 97
Joined: Fri Mar 05, 2010 9:09 pm

EnhancedQT - Out of Balance

Post by xfratboy » Tue May 25, 2010 9:37 pm

I'm wondering if someone might be able to assist in a little problem. In short, I'm trying to use the EnhancedQT external to play around with some audio ideas. My test has proven buggy at best and frequently results in crashes where Rev has to close, jumpy movement, and out of sync sound. What I was trying to do was to time a graphic's movement with left/right audio balance of a player. I'd like to play a looping sound that balances with a graphic's position on the card. If the sprite/graphic travels back and forth I'd like the sound to fade back and forth. For Example:

Code: Select all

on mouseUp
   put the width of this card into tWidth
   put the height of this card into tHeight
   put tWidth / 2 into tHorizontalMiddle
   put tHeight / 2 into tVerticalMiddle
   put 0 & "," & tVerticalMiddle into Point1
   put tHorizontalMiddle /2 & ","  & tVerticalMiddle into Point2 
   put tHorizontalMiddle & "," & tVerticalMiddle into Point3
   put tHorizontalMiddle *2 & ","  & tVerticalMiddle into Point4
   put tWidth & "," & tVerticalMiddle into Point5
   
   
   put the movieControllerID of player player1 into moco1
   qtSetTrackBalance moco1, "", -128
   start player player1
   Repeat for 2 times
      
      move graphic UFO from point1 to point2 in .5 seconds
      qtSetTrackBalance moco1, "", -65
      move graphic UFO from point2 to point3 in .5 seconds
      qtSetTrackBalance moco1, "", 0
      move graphic UFO from point3 to point4 in .5 seconds
      qtSetTrackBalance moco1, "", 65
      move graphic UFO from point4 to point5 in .5 seconds
      qtSetTrackBalance moco1, "", 127
      -- Reverse Direction
      move graphic UFO from point5 to point4 in .5 seconds
      qtSetTrackBalance moco1, "", 65
      move graphic UFO from point4 to point3 in .5 seconds
      qtSetTrackBalance moco1, "", 0
      move graphic UFO from point3 to point2 in .5 seconds
      qtSetTrackBalance moco1, "", -65
      move graphic UFO from point2 to point1 in .5 seconds
      qtSetTrackBalance moco1, "", -128
      
   end repeat
   stop player player1
end mouseUp
Like I said, it's just jumpy and not the desired effect. Any ideas would be appreciated. Thanks.

B.J.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: EnhancedQT - Out of Balance

Post by Mark » Sat May 29, 2010 4:01 pm

Hi B.J.,

I could get the Enhanced QT external to work on a very old PC with simple (old) video and sound cards. On my PC with AGP slot and integrated sound/video card, I have no problems, even though the operating system (Win XP) is exactly the same.

You might want to check that you haven't run into a hardware problem before changing your script or giving up.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply