Emit sound before shoot - Script Writing - CHDK Forum

Emit sound before shoot

  • 6 Replies
  • 3848 Views
Emit sound before shoot
« on: 14 / March / 2009, 13:54:01 »
Advertisements
hi,
i use le script "ligthning"
I want my S3 emit a sound before the first shoot. I don't find command who can do that. Can you help me ?

I use this script for take picture of me when i do mountain bike alone. Whitout sound, i count the second ;-)
Thank's

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Emit sound before shoot
« Reply #1 on: 14 / March / 2009, 15:04:07 »
Hi Bratis, welcome in the CHDK forum !

i use le script "ligthning"
I want my S3 emit a sound before the first shoot. I don't find command who can do that. Can you help me ?

Have a look to CHDK wikia: Firmware usage - playsound...

Re: Emit sound before shoot
« Reply #2 on: 16 / March / 2009, 17:56:29 »
Thank's a lot,
i try this.

Re: Emit sound before shoot
« Reply #3 on: 16 / March / 2009, 18:20:50 »
I dont't understant ... i try but i find the error : ubasic 23 Unk stmt

the script here :

rem Johan Van Barel 07-07-2007
rem modif bruiteur
rem Lightning for Canon A640 Lightning OK for S3IS

@title LightningBruiteur
@param a Duration (Min)
@default a 1
@param b Duration (Sec)
@default b 0
@param c Initial Delay (Sec)
@default c 1

if a<0 then let a=0
if b<0 then let b=0
if c<0 then let c=0

t=60000*a+1000*b
if t<1000 then let t=1000

print "Total Time:", t/60000; "Min", t%60000/1000; "Sec"

sleep c*1000

playsound 3

rem set_tv 0
press "shoot_half"
sleep 1000
press "shoot_full"
print "Burst",a;"Min",b;"Sec"
sleep t
release "shoot_full"
release "shoot_half"

end

*

Offline zeno

  • *****
  • 891
Re: Emit sound before shoot
« Reply #4 on: 16 / March / 2009, 18:32:51 »
That error message means that the 'playsound' statement was not recognised.

"playsound" is a relatively new addition to basic - how old is the build you are running on your s3?
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Re: Emit sound before shoot
« Reply #5 on: 17 / March / 2009, 17:26:09 »
I have a pre14 #148 version (08/14/2007).
I'll search a earlier version and i response here.
Thank's

Re: Emit sound before shoot
« Reply #6 on: 17 / March / 2009, 18:06:42 »
I just instal the CHDK 0.9.7-720 (03/14/2009), but i still have the same error ...

The new version is beautiful :  :P
It is faster, than the older ? I can take 2,1 pictures/second !   :P

 

Related Topics


SimplePortal © 2008-2014, SimplePortal