Page 1 of 1

Check player for changed data

Posted: Fri Jul 03, 2009 2:02 am
by bidgeeman
Hello.

I have a player object and I want to check the player to see if there has been any changes to it's data and then just perform a "Play" command "else" process the code in the button

on MouseUp

---check Player for changes
if ---data has not changed
start player "Player1"

else
---process data

end MouseUp

Any help would be greatly appreciated
Thank you :)

Chers
Bidge

Posted: Fri Jul 03, 2009 8:24 am
by Klaus
Hi Bidge,

what do you mean by "if the data of a player have changed"?????


Clueless regards

Klaus :)

Posted: Fri Jul 03, 2009 9:06 am
by bidgeeman
Hi Klause.
Sorry...I'm trying to modify a stack that Bernd made for me. It loads several .wav files via checkboxes and then combines them using QT External into a player object ready for playback. I wanted to see if it is was possible to use the same "Combine" button to just playback audio if no changes have been made.

Say you have combined a selection of loops with the "Combine" button and then press the "Combine" button again without making any changes, it will just playback the audio without re-combining the same combination.

Hope I explained it well enough.
Cheers
Bidge

Posted: Fri Jul 03, 2009 9:25 am
by Klaus
Hi Bidge,

yes, well explained, but I do not have any clue :D

Can't you simply use a (global) variable that you set according to "combine" or "not combine" and act accordingly?


Best

Klaus

P.S.
Klaus without an E, PLEASE! :lol:

Posted: Fri Jul 03, 2009 9:27 am
by bidgeeman
I will give that a try.
Thanks Klaus ;)

Cheers
Bidge

Posted: Fri Jul 03, 2009 10:35 am
by bn
Bidge,
I dont know at what version you are, I guess you changed quite a bit.
So to add this one would have to know what the code of the button looks like. If you want me to have a look at it you might want to make a download available.
On the other hand: is it not confusing for the user when the same button has 2 differing functions, depending on whether a choice was made or not.
regards
Bernd

Posted: Fri Jul 03, 2009 10:43 am
by bidgeeman
Yes. you're right bernd....on second thoughts it's a bit silly. 2 buttons are fine. I have a play button and a compile button. I think I'll leave it as is.

Cheers
Bidge