Merging audio externally

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

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Sun Jun 07, 2009 12:37 pm

Bidge,

in the checkboxes whenever a user hilites on this will add the selection to the field "userChoices"( look at the script of the checkboxes), so that is automatically the sequence of events. And it is a lot easier then how I did it before....
However the way it is now it does not delete an entry in that list if a user decides otherwise. Nor does it check for multiple checking/unchecking. It will dutifully adds a file two or more times and appends that track as as often as the user clicked.
On the other side there is a reset button now.
regards
Bernd

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Sun Jun 07, 2009 12:41 pm

Hi Klaus,

this is just to alert you that a certain "major" grabbed a sub-domain name in on-rev.com. He says he is "coming soon". You might want to take legal action before he arrives...

:)

regards

Bernd

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Sun Jun 07, 2009 1:35 pm

Bernd and Klaus. Thank you again!!! Bernd, I was considering using fields and will study your stack and scripts in depth. Time to hit the sack down under ;)
Many thanks again for your help. I am learning a lot from this great forum :)

Cheers
Bidge

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Mon Jun 08, 2009 6:15 am

Is there a way of preventing a checkbox from being deselected once it has been selected?

Cheers
Bidge

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Mon Jun 08, 2009 10:21 am

Bidge,
no, not without some scripting. But the checkbox is for selecting and deselecting. I would not fiddle around with this. It is the 'normal' behavior a user expects. What you could do is to delete the line in your field when the user deselects the checkbox. You know from the checkbox (track XX) which line might have been added. You could then get that original Line and if it is in the field of the selected tracks you could remove that line from the selected tracks.

Code: Select all

on mouseUp
   if the hilite of me then 
      put last word of the short name of me into myLine
      put line myLine of field "AudioNamesAndPathes" into line (the number of lines of field "userChoices")+1 of field "userChoices" 
   else ## not hilited = the user deselected it
      put last word of the short name of me into myLine
      put line myLine of field "AudioNamesAndPathes" into myTest
      filter field "userChoices" without myTest
   end if
end mouseUp
regards
Bernd

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Mon Jun 08, 2009 10:30 am

Hi Bernd.
Thanks for the hand! I'm starting to understand how you get things to function. It's quite hard to understand when your starting off. You are a fantastic help thanks mate ;)

Cheers
Bidge

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Mon Jun 08, 2009 11:23 am

Bidge,

have a look at Scott Rossi's site (Tactile Media)
http://www.tactilemedia.com/
in the software section -> tutorials

there is a stack 'Get in Line'

it shows reordering of lines of a text field and even deleting lines by dragging them out of the field.
It would be a good option to let the user see his selection / reorder/delete them.

regards
Bernd

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Mon Jun 08, 2009 11:29 am

Thanks Bernd! I'll check it out now :)

Cheers
Bidge

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Mon Jun 08, 2009 12:41 pm

Wow. That sack is amazing and works with such a small code? Very clever indeed!

Thanks for the link Bernd
Bidge

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Mon Jun 08, 2009 1:34 pm

Hi Bidge,
bidgeeman wrote:... works with such a small code?
Small code????? You DID check the card script, did you? :-D

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Mon Jun 08, 2009 1:47 pm

Aaaak! :oops:

Thanks for pointing that one out Klaus :roll:

Cheers
Bidge

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Mon Jun 08, 2009 5:43 pm

:-)

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Sat Jun 13, 2009 9:44 am

Hi Bernd.

I struck an error with that audio mixer stack you did. It's puzzling. I made a few more new buttons and for some reason every time I click button 10 an error message pops up. See below:

Code: Select all

Error message.
button "Track10": execution error at line 4 (Chunk: error in chunk expression), char 7
This is the line it's having trouble with:

put line myLine of field "AudioNamesAndPathes" into line (the number of lines of field "userChoices")+1 of field "userChoices"

?
Bidge

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Sat Jun 13, 2009 10:13 am

Bidge,

no idea what is going on. Could you put your version up for download. I will have a look at it.

regards
Bernd

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Sat Jun 13, 2009 10:59 am

Hi Bernd.
You beat me to the post. I was just about to write an explanation. I found out the problem. I had multiple versions of the same button number on a second stack. Once I deleted the cloned buttons everything worked fine.
It had me totally puzzled there for a minute :)


Cheers
Bidge

Post Reply