Discuss Scratch
- Xolay
-
Scratcher
1000+ posts
More Sound Blocks
Title[sound v] playing?::sound boolean //Reports true if the specified sound is playing
[sound v] duration::sound reporter // Reports the length of the specified sound
([sound v] current time::sound reporter // Reports the current second of the specified sound if it is playing
stop sound [sound v]::sound //Stops a specified sound
pause sound [sound v]::sound //Pauses a specified sound
set volume of [sound v] to ()::sound //Sets the volume of a specified sound
set [effect v]effect of [sound v] to ()%:: sound
(sound name::sound) // Says what song is playing
Last edited by Xolay (Aug. 22, 2021 18:13:40)
- Xolay
-
Scratcher
1000+ posts
More Sound Blocks
Coolim going to add the sound name thing.Title[sound v] playing?::sound boolean //Reports true if the specified sound is playing
[sound v] duration::sound reporter // Reports the length of the specified sound
([sound v] current time::sound reporter // Reports the current second of the specified sound if it is playing
stop sound [sound v]::sound //Stops a specified sound
pause sound [sound v]::sound //Pauses a specified sound
set volume of [sound v] to ()::sound //Sets the volume of a specified sound
set [effect v]effect of [sound v] to ()%:: sound
(sound name::sound) // Says what song is playing
- Ciyob86
-
Scratcher
500+ posts
More Sound Blocks
How would that work?im going to add the sound name thing.Title[sound v] playing?::sound boolean //Reports true if the specified sound is playing
[sound v] duration::sound reporter // Reports the length of the specified sound
([sound v] current time::sound reporter // Reports the current second of the specified sound if it is playing
stop sound [sound v]::sound //Stops a specified sound
pause sound [sound v]::sound //Pauses a specified sound
set volume of [sound v] to ()::sound //Sets the volume of a specified sound
set [effect v]effect of [sound v] to ()%:: sound
(sound name::sound) // Says what song is playing
edit: added(sound name ::sound)
- Ciyob86
-
Scratcher
500+ posts
More Sound Blocks
I'll add that to the op([sound effect v] ::sound)replaces volume([sound effect v] of [sound v] ::sound)
- Xolay
-
Scratcher
1000+ posts
More Sound Blocks
Ciyob86 add this on the opim going to add the sound name thing.Title[sound v] playing?::sound boolean //Reports true if the specified sound is playing
[sound v] duration::sound reporter // Reports the length of the specified sound
([sound v] current time::sound reporter // Reports the current second of the specified sound if it is playing
stop sound [sound v]::sound //Stops a specified sound
pause sound [sound v]::sound //Pauses a specified sound
set volume of [sound v] to ()::sound //Sets the volume of a specified sound
set [effect v]effect of [sound v] to ()%:: sound
(sound name::sound) // Says what song is playing
edit: added(sound name ::sound)
- Ciyob86
-
Scratcher
500+ posts
More Sound Blocks
What if multiple sounds are playing?returns the name of the current sound that is playing. i make mp4s lolHow would that work?im going to add the sound name thing.Title[sound v] playing?::sound boolean //Reports true if the specified sound is playing
[sound v] duration::sound reporter // Reports the length of the specified sound
([sound v] current time::sound reporter // Reports the current second of the specified sound if it is playing
stop sound [sound v]::sound //Stops a specified sound
pause sound [sound v]::sound //Pauses a specified sound
set volume of [sound v] to ()::sound //Sets the volume of a specified sound
set [effect v]effect of [sound v] to ()%:: sound
(sound name::sound) // Says what song is playing
edit: added(sound name ::sound)
- Ciyob86
-
Scratcher
500+ posts
More Sound Blocks
How?then it returns multiple sounds.What if multiple sounds are playing?returns the name of the current sound that is playing. i make mp4s lolHow would that work?im going to add the sound name thing.Title[sound v] playing?::sound boolean //Reports true if the specified sound is playing
[sound v] duration::sound reporter // Reports the length of the specified sound
([sound v] current time::sound reporter // Reports the current second of the specified sound if it is playing
stop sound [sound v]::sound //Stops a specified sound
pause sound [sound v]::sound //Pauses a specified sound
set volume of [sound v] to ()::sound //Sets the volume of a specified sound
set [effect v]effect of [sound v] to ()%:: sound
(sound name::sound) // Says what song is playing
edit: added(sound name ::sound)
- Xolay
-
Scratcher
1000+ posts
More Sound Blocks
Reports sound and sound2 like this:What if multiple sounds are playing?returns the name of the current sound that is playing. i make mp4s lolHow would that work?im going to add the sound name thing.Title[sound v] playing?::sound boolean //Reports true if the specified sound is playing
[sound v] duration::sound reporter // Reports the length of the specified sound
([sound v] current time::sound reporter // Reports the current second of the specified sound if it is playing
stop sound [sound v]::sound //Stops a specified sound
pause sound [sound v]::sound //Pauses a specified sound
set volume of [sound v] to ()::sound //Sets the volume of a specified sound
set [effect v]effect of [sound v] to ()%:: sound
(sound name::sound) // Says what song is playing
edit: added(sound name ::sound)
(sound name::sound) // Meow, Woof
Last edited by Xolay (Aug. 22, 2021 18:37:55)
- Xolay
-
Scratcher
1000+ posts
More Sound Blocks
So are you addingif more than 1 sound is playing it detects that and returns multiple sounds LIKE THE 2 WORDS.How?then it returns multiple sounds.What if multiple sounds are playing?returns the name of the current sound that is playing. i make mp4s lolHow would that work?im going to add the sound name thing.Title[sound v] playing?::sound boolean //Reports true if the specified sound is playing
[sound v] duration::sound reporter // Reports the length of the specified sound
([sound v] current time::sound reporter // Reports the current second of the specified sound if it is playing
stop sound [sound v]::sound //Stops a specified sound
pause sound [sound v]::sound //Pauses a specified sound
set volume of [sound v] to ()::sound //Sets the volume of a specified sound
set [effect v]effect of [sound v] to ()%:: sound
(sound name::sound) // Says what song is playing
edit: added(sound name ::sound)
or it does sound1, sound2, sound3.. etc.
(sound name::sound)to the OP?
- medians
-
Scratcher
1000+ posts
More Sound Blocks
Reviving this post, mockups:
([names v] of currently playing sounds ::sound)
([durations v] of currently playing sounds ::sound)
([sound v]’s [duration v] ::sound) //default
([sound v]’s [current time v] ::sound)
([sound v]’s [volume v] ::sound)
([sound v]’s [effect v] ::sound)
set [volume v] of [sound v] to ()% ::sound
set [effect v] of [sound v] to ()% ::sound
change [volume v] of [sound v] by ()% ::sound
change [effect v] of [sound v] by ()% ::sound
Last edited by medians (June 26, 2022 17:05:06)



