This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-05-21 22:38:39

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Position Sound Block

Ok all you Squeak source code hackers! I've a need that might provide a not-so-challenge to all you geniuses.
So here it is.
I need a block that lets you play a sound from a specific point. So you can play an audio file from any point within it.
I'm pretty sure there is already support for this in the Scratch Source, but I'm not really sure how to piece everything together. So...

ready

Set



GOOOOO!!!!!!!

(By the way, anyone who can do this will get credit in any of the projects I use it for)

Last edited by shadow_7283 (2010-05-21 22:39:07)

Offline

 

#2 2010-05-21 22:47:02

Vista4563
Scratcher
Registered: 2009-07-20
Posts: 500+

Re: Position Sound Block

Hmm, let me guess. It's for the Harry Scratcher Collab, right?

What style? HH:MM:SS:ss or frame (foo)? Or both?


Team Vista | TBG Moderator | #stopKony #Kony2012 | http://ls.gd/icgrin http://is.gd/78GWUZ
http://is.gd/jEY5Ihttp://is.gd/Vl19zR http://i.imgur.com/L4HIs.png

Offline

 

#3 2010-05-21 22:55:05

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Position Sound Block

Vista4563 wrote:

Hmm, let me guess. It's for the Harry Scratcher Collab, right?

What style? HH:MM:SS:ss or frame (foo)? Or both?

Don't care. JUST GIVE ME IT!  wink

Offline

 

#4 2010-05-22 10:58:51

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Position Sound Block

*Bumpady bump-bump, bumpady bump-bump* (Look at frosty go!)  wink

Offline

 

#5 2010-05-22 11:21:31

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Position Sound Block

I think that it should be ('play sound %S from %n secs' #- #playSound:from: '' '10') for block specs.

Offline

 

#6 2010-05-22 12:21:31

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Position Sound Block

Those are pretty much the exact same block specs I used when I was experimenting with this. Thanks for posting them (and I think yours are slightly better).

Offline

 

#7 2010-05-22 19:37:49

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Position Sound Block

shadow_7283 wrote:

Those are pretty much the exact same block specs I used when I was experimenting with this. Thanks for posting them (and I think yours are slightly better).

Thank you. Now, the real question to be solved is, what is the function code?

Offline

 

Board footer