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

#1 2012-11-04 01:58:52

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

play note of instrument for 1 sec

Just combine set instrument to block and play note block, trust me its a good idea when making music with note blocks. Saves tons of time


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#2 2012-11-04 04:15:07

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: play note of instrument for 1 sec

But you can just do the "set instrument" and then "play note".
If you wanna set up a song with it, I suggest making 3 lists, one called "Instr" one called "Beats" one called "Notes", then you can have this script:

when gf clicked
set [i v] to [1]
wait until <your ready>
if <not<<<<<length of [Notes v]>+<length of [Instr v]>>+<length of [Beats v]>>/(3)>=<length of [Notes v]>>>
say [Look at your lists again, they're not equal.] //this is just for when you're editing the
end 
repeat <length of [Notes v]> //notes, to make sure all the lengths of your lists are the same
set instrument to <item (i) of [Instr v]>
play note <item (i) of [Notes v]> for <item (i) of [Beats v]> beats
change [i v] by (1)
end
You would have to put in each note you want into the list (in sequence, where the first item would be the first note to be played, second the second, etc...), and put in the corresponding instrument and beats into their respective lists. I'd say it's much easier, and so you wouldn't need this, as it's just a waste of the Scratch team's time when there's more than one way to fix it.

Last edited by TorbyFork234 (2012-11-04 04:15:26)

Offline

 

#3 2012-11-04 08:06:10

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: play note of instrument for 1 sec

TorbyFork234 wrote:

But you can just do the "set instrument" and then "play note".
If you wanna set up a song with it, I suggest making 3 lists, one called "Instr" one called "Beats" one called "Notes", then you can have this script:

when gf clicked
set [i v] to [1]
wait until <your ready>
if <not<<<<<length of [Notes v]>+<length of [Instr v]>>+<length of [Beats v]>>/(3)>=<length of [Notes v]>>>
say [Look at your lists again, they're not equal.] //this is just for when you're editing the
end 
repeat <length of [Notes v]> //notes, to make sure all the lengths of your lists are the same
set instrument to <item (i) of [Instr v]>
play note <item (i) of [Notes v]> for <item (i) of [Beats v]> beats
change [i v] by (1)
end
You would have to put in each note you want into the list (in sequence, where the first item would be the first note to be played, second the second, etc...), and put in the corresponding instrument and beats into their respective lists. I'd say it's much easier, and so you wouldn't need this, as it's just a waste of the Scratch team's time when there's more than one way to fix it.

No.

What if you needed multiple scripts playing different intruments?


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#4 2012-11-04 17:31:14

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

Re: play note of instrument for 1 sec

not the best technique, but you can use different sprites


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

#5 2012-11-04 17:53:34

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: play note of instrument for 1 sec

Molybdenum wrote:

TorbyFork234 wrote:

But you can just do the "set instrument" and then "play note".
If you wanna set up a song with it, I suggest making 3 lists, one called "Instr" one called "Beats" one called "Notes", then you can have this script:

when gf clicked
set [i v] to [1]
wait until <your ready>
if <not<<<<<length of [Notes v]>+<length of [Instr v]>>+<length of [Beats v]>>/(3)>=<length of [Notes v]>>>
say [Look at your lists again, they're not equal.] //this is just for when you're editing the
end 
repeat <length of [Notes v]> //notes, to make sure all the lengths of your lists are the same
set instrument to <item (i) of [Instr v]>
play note <item (i) of [Notes v]> for <item (i) of [Beats v]> beats
change [i v] by (1)
end
You would have to put in each note you want into the list (in sequence, where the first item would be the first note to be played, second the second, etc...), and put in the corresponding instrument and beats into their respective lists. I'd say it's much easier, and so you wouldn't need this, as it's just a waste of the Scratch team's time when there's more than one way to fix it.

No.

What if you needed multiple scripts playing different intruments?

more sprites.

Offline

 

Board footer