Dear All,
I created a maze came with scratch
but i have this irritading problen:
when sprite1 eats fruits, the fruits make a sound
but many times the sound the fruits make is overdrived
like the fruit makes the same sound many times the same instant.
How do i get rid of this bug?
you may download it from:
http://www.acojc.com/zz/3/1.sb
Thanks in advance for your help,
Carlos.
Offline
first of all, you need to spell better, i can't understand 1/3s of the words you say(including"overdriving")!
second of all, they can't be overriding if theres just the fruit making noise
Offline
beny wrote:
first of all, you need to spell better, i can't understand 1/3s of the words you say(including"overdriving")!
second of all, they can't be overriding if theres just the fruit making noise
Allow me to define overdriving.
From Dictionary.com:
o·ver·drive /v. ˌoʊvərˈdraɪv; n. ˈoʊvərˌdraɪv/ Pronunciation Key - Show Spelled Pronunciation[v. oh-ver-drahyv; n. oh-ver-drahyv] Pronunciation Key - Show IPA Pronunciation verb, -drove, -driv·en, -driv·ing, noun
–verb (used with object)
1. to push or carry to excess; overwork.
2. to drive too hard.
–noun
3. Machinery, Automotive. a device containing a gear set at such ratio and arrangement as to provide a drive shaft speed greater than the engine crankshaft speed.
4. Informal. an intense state of activity or productivity: The political campaign has shifted into overdrive.
eyra
Offline
The problem that ffinder describes is "clipping" which can indeed be caused by overdriving an amplifier. Most likely the problem occurred when the sounds were recorded. Clipping loses information, so it is very difficult to recover the original sound.
The only really good solution is to re-record the sounds, paying attention to the volume when they are recorded. Using scratch as a recorder makes this difficult, so I recommend using some free software that is designed for recording sound instead. (I use audacity
http://audacity.sourceforge.net/ which is available for both Windows and Mac OS X).
Offline
kevin_karplus wrote:
The only really good solution is to re-record the sounds, paying attention to the volume when they are recorded.
No, the sound itself is very very clear, i must be making a programing mistake because some, very few fruits at contact with sprite1 they activate the same sound ONCE making a clean sound but most of the other fruits they activate the same sound 2 times and the majority they activate the same sound so many times that the sound gets fuzzy..
Last edited by ffinder (2007-08-27 12:22:41)
Offline
Ahh, I think the english word you were looking for is "over-riding".
I assume you are using "if touching... play sound". So, the sound starts, but because you are still touching the object it starts again, and again...
the way to avoid this is to put "wait until NOT touching" immediately after the "if.. touching..." statement.
Offline