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

#2901 2012-05-28 14:35:43

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: Welcome to your local block library!

A featured block sounds like a great idea! And yes, I'll be working some more on the site over the summer  smile  One thing I was thinking to have was a love-it system for blocks, so maybe that could be something shown on the homepage too?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2902 2012-05-28 14:48:42

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

If that idea had the button, i'd press it.

Offline

 

#2903 2012-05-28 17:00:49

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

If that idea had the button, i'd press it.

lol  +1

But first let's get the SQL connecting reliably.   tongue

Offline

 

#2904 2012-05-28 17:19:07

P110
Scratcher
Registered: 2011-04-12
Posts: 500+

Re: ITopic: Welcome to your local block library!

sparks wrote:

A featured block sounds like a great idea! And yes, I'll be working some more on the site over the summer  smile  One thing I was thinking to have was a love-it system for blocks, so maybe that could be something shown on the homepage too?

@Sparks cheddargirl comparison sig - lol


Me live on 2.0 now  sad

Offline

 

#2905 2012-05-29 11:07:22

williambl
Scratcher
Registered: 2011-04-08
Posts: 100+

Re: ITopic: Welcome to your local block library!

Requesting a scratch stack command block:

 set cursor to [wait v]
with these inputs: write, wait, up, top right, top left, stamp, square, right arrow, resize horizontally, resize corner, read, question mark, paint bucket, origin, normal, move, marker, hand open, hand closed, eyedropper, execute, crosshair, corner, bottom right, bottom left, blank, and wait. I know the code for changing the cursor, [ Cursor nameGoesHere show ]

Last edited by williambl (2012-05-29 11:08:14)


http://internetometer.com/imagesmall/34650.png
http://www.danasoft.com/sig/Epicnesssign.jpg

Offline

 

#2906 2012-05-29 16:53:40

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

williambl wrote:

Requesting a scratch stack command block:

 set cursor to [wait v]
with these inputs: write, wait, up, top right, top left, stamp, square, right arrow, resize horizontally, resize corner, read, question mark, paint bucket, origin, normal, move, marker, hand open, hand closed, eyedropper, execute, crosshair, corner, bottom right, bottom left, blank, and wait. I know the code for changing the cursor, [ Cursor nameGoesHere show ]

It would probably be better to do a string argument...do you mind if I use one instead of a dropdown?

Offline

 

#2907 2012-05-30 02:31:14

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

williambl wrote:

Requesting a scratch stack command block:

 set cursor to [wait v]
with these inputs: write, wait, up, top right, top left, stamp, square, right arrow, resize horizontally, resize corner, read, question mark, paint bucket, origin, normal, move, marker, hand open, hand closed, eyedropper, execute, crosshair, corner, bottom right, bottom left, blank, and wait. I know the code for changing the cursor, [ Cursor nameGoesHere show ]

It would probably be better to do a string argument...do you mind if I use one instead of a dropdown?

What is so bad about drop-down lists? It makes things easier if you forgot what the cursor is called.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#2908 2012-05-30 03:05:25

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

nathanprocks wrote:

Greenatic wrote:

williambl wrote:

Requesting a scratch stack command block:

 set cursor to [wait v]
with these inputs: write, wait, up, top right, top left, stamp, square, right arrow, resize horizontally, resize corner, read, question mark, paint bucket, origin, normal, move, marker, hand open, hand closed, eyedropper, execute, crosshair, corner, bottom right, bottom left, blank, and wait. I know the code for changing the cursor, [ Cursor nameGoesHere show ]

It would probably be better to do a string argument...do you mind if I use one instead of a dropdown?

What is so bad about drop-down lists? It makes things easier if you forgot what the cursor is called.

Or use ExpressionOrArgMorph for a dropdown which accepts reporter drop-ins.  wink


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#2909 2012-05-30 03:11:47

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

nathanprocks wrote:

Greenatic wrote:


It would probably be better to do a string argument...do you mind if I use one instead of a dropdown?

What is so bad about drop-down lists? It makes things easier if you forgot what the cursor is called.

Or use ExpressionOrArgMorph for a dropdown which accepts reporter drop-ins.  wink

I never knew that was possible lol.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#2910 2012-05-30 03:44:40

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

nathanprocks wrote:

Hardmath123 wrote:

nathanprocks wrote:


What is so bad about drop-down lists? It makes things easier if you forgot what the cursor is called.

Or use ExpressionOrArgMorph for a dropdown which accepts reporter drop-ins.  wink

I never knew that was possible lol.

Check out the [switch to costume [... v]] block...


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#2911 2012-05-30 04:15:32

williambl
Scratcher
Registered: 2011-04-08
Posts: 100+

Re: ITopic: Welcome to your local block library!

Has anyone decided the input? I think a dropdown that accepts reporters would be good.


http://internetometer.com/imagesmall/34650.png
http://www.danasoft.com/sig/Epicnesssign.jpg

Offline

 

#2912 2012-05-30 07:32:16

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

ChoiceOrExpressionArgMorph is usually the best choice.  tongue

Offline

 

#2913 2012-05-30 17:29:13

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

What's an arg letter that hasn't been used yet?   tongue

1700th post!   big_smile

Last edited by Greenatic (2012-05-30 17:29:34)

Offline

 

#2914 2012-05-31 16:13:18

P110
Scratcher
Registered: 2011-04-12
Posts: 500+

Re: ITopic: Welcome to your local block library!

hey guys, I was doing some thinking and you know the graphic filters, could we try to implement a sound filters block? I think it would be a good idea but what do you all say?

I'll come up with a block spec but, I am not going to be able to come up with the code

Last edited by P110 (2012-05-31 16:21:39)


Me live on 2.0 now  sad

Offline

 

#2915 2012-05-31 20:15:27

Jrocket97
Scratcher
Registered: 2009-10-03
Posts: 100+

Re: ITopic: Welcome to your local block library!

Lol, I'm amazed the recursive tree hasn't been added to BYOB pen yet.  Or motion path.  I'd add, but idk how to get an image of the scripts in the block editor.
EDIT:
Okay, it was just being glitchy.  Got it to work.  Here's tree, I might upload motion paths some other time.  If anyone's curious to see the full effect of the tree block, I have a project called Symetree that demonstrates it found here.
Block Image:
http://i46.tinypic.com/vnp1tt.gif
Script:
http://i50.tinypic.com/2ze9fut.gif
Lol, lots of inputs.  All to draw a stupid tree.

Last edited by Jrocket97 (2012-05-31 20:29:29)

Offline

 

#2916 2012-05-31 21:40:50

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

P110 wrote:

hey guys, I was doing some thinking and you know the graphic filters, could we try to implement a sound filters block? I think it would be a good idea but what do you all say?

I'll come up with a block spec but, I am not going to be able to come up with the code

I'm currently creating a block that alters a sound's pitch.   smile

EDIT:  Here it is.  Note:  It permanently changes a sound's pitch.  If anyone would be willing to try to fix that, I would be very grateful.  It also doesn't wait for the sound to end--help would be appreciated.

('play sound %S at frequency %n' #- #playSound:Frequency:)

Code:

playSound: t1 atFrequency: t2 
    SoundPlayer playSound: ((self soundNamed: t1 ifAbsent: [^ self]) sound pitch: t2)

Scratch-Objects > ScriptableScratchMorph > blocks > defaultArgsFor:

Add right before the last line (^ t2):

Code:

#playSound:atFrequency: = t4
        ifTrue: 
            [t6 _ self soundNames.
            t2 _ t6 size <= 2
                        ifTrue: [Array with: '']
                        ifFalse: [Array with: (t6 at: t6 size - 2)]].

Last edited by Greenatic (2012-05-31 22:17:24)

Offline

 

#2917 2012-06-01 01:24:30

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: ITopic: Welcome to your local block library!

P110 wrote:

hey guys, I was doing some thinking and you know the graphic filters, could we try to implement a sound filters block? I think it would be a good idea but what do you all say?

I'll come up with a block spec but, I am not going to be able to come up with the code

I'm working on that. Check out 'expanding scratch sound' on the forums. First I will enable stereo (this is going pretty well). Then I'll add new blocks.

Offline

 

#2918 2012-06-01 03:04:33

P110
Scratcher
Registered: 2011-04-12
Posts: 500+

Re: ITopic: Welcome to your local block library!

dreamod wrote:

P110 wrote:

hey guys, I was doing some thinking and you know the graphic filters, could we try to implement a sound filters block? I think it would be a good idea but what do you all say?

I'll come up with a block spec but, I am not going to be able to come up with the code

I'm working on that. Check out 'expanding scratch sound' on the forums. First I will enable stereo (this is going pretty well). Then I'll add new blocks.

great, you know the graphic filters? well a. there are actually a few hiiden ones pointalize... b. did they come with sqeak or made by st?


Me live on 2.0 now  sad

Offline

 

#2919 2012-06-01 05:44:08

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

P110 wrote:

hey guys, I was doing some thinking and you know the graphic filters, could we try to implement a sound filters block? I think it would be a good idea but what do you all say?

I'll come up with a block spec but, I am not going to be able to come up with the code

I'm currently creating a block that alters a sound's pitch.   smile

EDIT:  Here it is.  Note:  It permanently changes a sound's pitch.  If anyone would be willing to try to fix that, I would be very grateful.  It also doesn't wait for the sound to end--help would be appreciated.

('play sound %S at frequency %n' #- #playSound:Frequency:)

Code:

playSound: t1 atFrequency: t2 
    SoundPlayer playSound: ((self soundNamed: t1 ifAbsent: [^ self]) sound pitch: t2)

Scratch-Objects > ScriptableScratchMorph > blocks > defaultArgsFor:

Add right before the last line (^ t2):

Code:

#playSound:atFrequency: = t4
        ifTrue: 
            [t6 _ self soundNames.
            t2 _ t6 size <= 2
                        ifTrue: [Array with: '']
                        ifFalse: [Array with: (t6 at: t6 size - 2)]].

Cool! Does it change the tempo or keep it the same?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2920 2012-06-01 09:07:58

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

Greenatic wrote:

P110 wrote:

hey guys, I was doing some thinking and you know the graphic filters, could we try to implement a sound filters block? I think it would be a good idea but what do you all say?

I'll come up with a block spec but, I am not going to be able to come up with the code

I'm currently creating a block that alters a sound's pitch.   smile

EDIT:  Here it is.  Note:  It permanently changes a sound's pitch.  If anyone would be willing to try to fix that, I would be very grateful.  It also doesn't wait for the sound to end--help would be appreciated.

('play sound %S at frequency %n' #- #playSound:Frequency:)

Code:

playSound: t1 atFrequency: t2 
    SoundPlayer playSound: ((self soundNamed: t1 ifAbsent: [^ self]) sound pitch: t2)

Scratch-Objects > ScriptableScratchMorph > blocks > defaultArgsFor:

Add right before the last line (^ t2):

Code:

#playSound:atFrequency: = t4
        ifTrue: 
            [t6 _ self soundNames.
            t2 _ t6 size <= 2
                        ifTrue: [Array with: '']
                        ifFalse: [Array with: (t6 at: t6 size - 2)]].

Cool! Does it change the tempo or keep it the same?

It's sounds, not notes.  Do you mean the duration?  (It does make them longer, and it seems to overwrite the original sound).

Offline

 

#2921 2012-06-01 09:47:28

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Yeah, I understood that it was sounds. What I meant was, one way to change the pitch of a sound is to speed it up (increases the tempo) so that everything gets higher and faster. However the harder thing to do is to change the pitch without changing the speed.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2922 2012-06-01 09:51:14

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

Yeah, I understood that it was sounds. What I meant was, one way to change the pitch of a sound is to speed it up (increases the tempo) so that everything gets higher and faster. However the harder thing to do is to change the pitch without changing the speed.

Yeah, this changes the speed.  I recommend trying the meow sound between 50-100 though!  (400 is normal.)  MMMMMMMMMMMMMEEEEEEEEEEEEEEEOOOOOOOOOOOOWWWWWWWWWWW.........


lol

Offline

 

#2923 2012-06-01 13:26:55

williambl
Scratcher
Registered: 2011-04-08
Posts: 100+

Re: ITopic: Welcome to your local block library!

I did my request for a

set cursor to [wait v]
block myself  tongue

Blockspec:

Code:

('change cursor to %z' #- #changeCursorTo:)

Code: (Scratch-Blocks -> CommandBlockMorph -> private ->uncoloredArgMorphFor:
add a line:

Code:

$z = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #cursors; choice: ''].

Code: (Other ops)

Code:

changeCursorTo: t1 
    'wait' = t1 ifTrue: [Cursor wait show].
    'write' = t1 ifTrue: [Cursor write show].
    'up' = t1 ifTrue: [Cursor up show].
    'top right' = t1 ifTrue: [Cursor topRight show].
    'top left' = t1 ifTrue: [Cursor topLeft show].
    'stamp' = t1 ifTrue: [Cursor stamp show].
    'square' = t1 ifTrue: [Cursor square show].
    'right arrow' = t1 ifTrue: [Cursor rightArrow show].
    'resize horizontally' = t1 ifTrue: [Cursor resizeHorizontally show].
    'resize corner' = t1 ifTrue: [Cursor resizeCorner show].
    'read' = t1 ifTrue: [Cursor read show].
    'question mark' = t1 ifTrue: [Cursor questionMark show].
    'paint bucket' = t1 ifTrue: [Cursor paintBucket show].
    'origin' = t1 ifTrue: [Cursor origin show].
    'normal' = t1 ifTrue: [Cursor normal show].
    'move' = t1 ifTrue: [Cursor move show].
    'marker' = t1 ifTrue: [Cursor marker show].
    'hand open' = t1 ifTrue: [Cursor handOpen show].
    'hand closed' = t1 ifTrue: [Cursor handClosed show].
    'eyedropper' = t1 ifTrue: [Cursor eyedropper show].
    'execute' = t1 ifTrue: [Cursor execute show].
    'crosshair' = t1 ifTrue: [Cursor crossHair show].
    'corner' = t1 ifTrue: [Cursor corner show].
    'bottom right' = t1 ifTrue: [Cursor bottomRight show].
    'bottom left' = t1 ifTrue: [Cursor bottom left show]

Last line of code: (other ops)

Code:

cursors
    ^ #('write' 'wait' 'up' 'top right' 'top left' 'stamp' 'square' 'right arrow' 'resize horizontally' 'resize corner' 'read' 'question mark' 'paint bucket' 'origin' 'normal' 'move' 'marker' 'hand open' 'hand closed' 'eyedropper' 'execute' 'crosshair' 'corner' 'bottom right' 'bottom left' )

http://internetometer.com/imagesmall/34650.png
http://www.danasoft.com/sig/Epicnesssign.jpg

Offline

 

#2924 2012-06-01 15:46:43

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

sparks wrote:

Yeah, I understood that it was sounds. What I meant was, one way to change the pitch of a sound is to speed it up (increases the tempo) so that everything gets higher and faster. However the harder thing to do is to change the pitch without changing the speed.

Yeah, this changes the speed.  I recommend trying the meow sound between 50-100 though!  (400 is normal.)  MMMMMMMMMMMMMEEEEEEEEEEEEEEEOOOOOOOOOOOOWWWWWWWWWWW.........


lol

try using a little multiplication to make the numbers more sensible to users.

Offline

 

#2925 2012-06-02 23:26:00

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

williambl wrote:

I did my request for a

set cursor to [wait v]
block myself  tongue

Blockspec:

Code:

('change cursor to %z' #- #changeCursorTo:)

Code: (Scratch-Blocks -> CommandBlockMorph -> private ->uncoloredArgMorphFor:
add a line:

Code:

$z = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #cursors; choice: ''].

Code: (Other ops)

Code:

changeCursorTo: t1 
    'wait' = t1 ifTrue: [Cursor wait show].
    'write' = t1 ifTrue: [Cursor write show].
    'up' = t1 ifTrue: [Cursor up show].
    'top right' = t1 ifTrue: [Cursor topRight show].
    'top left' = t1 ifTrue: [Cursor topLeft show].
    'stamp' = t1 ifTrue: [Cursor stamp show].
    'square' = t1 ifTrue: [Cursor square show].
    'right arrow' = t1 ifTrue: [Cursor rightArrow show].
    'resize horizontally' = t1 ifTrue: [Cursor resizeHorizontally show].
    'resize corner' = t1 ifTrue: [Cursor resizeCorner show].
    'read' = t1 ifTrue: [Cursor read show].
    'question mark' = t1 ifTrue: [Cursor questionMark show].
    'paint bucket' = t1 ifTrue: [Cursor paintBucket show].
    'origin' = t1 ifTrue: [Cursor origin show].
    'normal' = t1 ifTrue: [Cursor normal show].
    'move' = t1 ifTrue: [Cursor move show].
    'marker' = t1 ifTrue: [Cursor marker show].
    'hand open' = t1 ifTrue: [Cursor handOpen show].
    'hand closed' = t1 ifTrue: [Cursor handClosed show].
    'eyedropper' = t1 ifTrue: [Cursor eyedropper show].
    'execute' = t1 ifTrue: [Cursor execute show].
    'crosshair' = t1 ifTrue: [Cursor crossHair show].
    'corner' = t1 ifTrue: [Cursor corner show].
    'bottom right' = t1 ifTrue: [Cursor bottomRight show].
    'bottom left' = t1 ifTrue: [Cursor bottom left show]

Last line of code: (other ops)

Code:

cursors
    ^ #('write' 'wait' 'up' 'top right' 'top left' 'stamp' 'square' 'right arrow' 'resize horizontally' 'resize corner' 'read' 'question mark' 'paint bucket' 'origin' 'normal' 'move' 'marker' 'hand open' 'hand closed' 'eyedropper' 'execute' 'crosshair' 'corner' 'bottom right' 'bottom left' )

lol. Nice block though.

Offline

 

Board footer