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

#1 2010-05-02 19:30:44

Aelic7
Scratcher
Registered: 2009-08-24
Posts: 22

'Play note ___ until' block

I recently made an instrument project; you hold down the mouse, and the flute plays whatever note it is slid onto. Unfortunately, there was no script to say to play the note forever if the mouse was down. In the note scripts, you must insert whatever number of beats you want it to play. I thought it would be really nice to have a block that said 'Play note___until____'.

Offline

 

#2 2010-05-02 19:33:00

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: 'Play note ___ until' block

Just do:

if mouse down,
forever until not mouse down
play the note



I'll upload a picture in a moment.


-End Transmission-

Offline

 

#3 2010-05-02 19:35:20

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: 'Play note ___ until' block

Here's a picture:

http://lh6.ggpht.com/_mXv3HQnoqXY/S94MDvv1UuI/AAAAAAAAByk/isTlYfrBK-4/asdadsadsadsads.png


-End Transmission-

Offline

 

#4 2010-05-03 03:05:08

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: 'Play note ___ until' block

iCode-747 wrote:

Here's a picture:

http://lh6.ggpht.com/_mXv3HQnoqXY/S94MDvv1UuI/AAAAAAAAByk/isTlYfrBK-4/asdadsadsadsads.png

That would make the sound come out in short bursts, not one fluid sound  hmm  I'm not sure how to make it smooth, though...

Aelic7 - I support this, unless there's a workaround...

Last edited by Wolfie1996 (2010-05-03 03:06:03)


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#5 2010-05-03 04:31:30

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: 'Play note ___ until' block

Wolfie1996 wrote:

That would make the sound come out in short bursts, not one fluid sound  hmm

whoops. Never mind.


-End Transmission-

Offline

 

#6 2010-05-03 16:42:57

laser100
Scratcher
Registered: 2009-12-04
Posts: 100+

Re: 'Play note ___ until' block

iCode-747 wrote:

Wolfie1996 wrote:

That would make the sound come out in short bursts, not one fluid sound  hmm

whoops. Never mind.

That was what I was to say.

Offline

 

Board footer