Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An extension to stop specific sounds or play sounds from a certain time #114

Open
DNin01 opened this issue Jan 6, 2023 · 4 comments
Open

Comments

@DNin01
Copy link
Collaborator

DNin01 commented Jan 6, 2023

I'm thinking of the following features that could either go in a new extension called something like "Sound Control" or become part of the Sound extension that was just added.

  • stop sound (sound v) (Would stop the sound you selected)
  • start sound (sound v) from (1.5) secs (Would play the sound you selected starting at the time you specified)
  • stop all sounds in this sprite (Would stop all of the sounds that the sprite was playing. Could potentially be a dropdown so you could select other sprites too)

You could use these features to do various things, for example:

  • To pause and resume music or narration
  • To stop sounds but not music
@True-Fantom
Copy link
Contributor

I've thought about it myself, but don't know how to do this. If you succeed, extension will be amazing!

@True-Fantom
Copy link
Contributor

True-Fantom commented Jan 6, 2023

Suggestion:

Blocks for working with sound effects.

  • set (sound effect v) effect for (sound v) to (number)
  • change (sound effect v) effect for (sound v) by (number)
  • clear sound effects for (sound v)
  • (sound effect v) (Reporter for this sprite)
  • (sound effect v) of (sound v) (Reporter)

Blocks for working with sound volume.

  • set volume for (sound v) to (number)
  • change volume for (sound v) by (number)
  • volume of (sound v) (Reporter)

Blocks for working with sound speed.

  • set speed for (sound v) to (number) (Would be great to have a negative speed)
  • change speed for (sound v) by (number) (Would be great to have a negative speed)
  • sound speed (Reporter for this sprite)
  • sound speed of (sound v) (Reporter)

Some more blocks.

  • is (sound v) playing? (Boolean)
  • playing sounds count (Reporter for this sprite)
  • all playing sounds count (Reporter)
  • playing sounds split by (string) (Reporter for this sprite) (Return sound names) (Split is space by default)
  • all playing sounds split by (string) (Reporter) (Return sound names) (Split is space by default)

@True-Fantom
Copy link
Contributor

True-Fantom commented Jan 6, 2023

Design suggestion:

color1: '#c6003f',
color

const icon = 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxL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IC0zOC40NTEzNywwYy0xMC42MjM1NiwtMTAuNjMwMjQgLTEwLjYyMzU2LC0yNy44Mjk2MyAwLC0zOC40NTEzN2MxMC42MjE3NCwtMTAuNjMyNjYgMjcuODI5NjMsLTEwLjYzMjY2IDM4LjQ1MTM3LDB6TTI0NS41NjAxNCwxODAuMTM0NTVjMCwtMi45OTY4NCAtMi40MjkyNSwtNS40MjY2OSAtNS40MjY2OSwtNS40MjY2OWMtMi45OTc0NCwwIC01LjQyNjY5LDIuNDI5ODYgLTUuNDI2NjksNS40MjY2OWMwLDIuOTk2ODQgMi40Mjk4Niw1LjQyNjY5IDUuNDI2NjksNS40MjY2OWMyLjk5NzQ0LDAgNS40MjczLC0yLjQyOTg2IDUuNDI2NjksLTUuNDI2Njl6IiBmaWxsPSIjZmZmZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS13aWR0aD0iMSIvPjwvZz48L2c+PC9zdmc+PCEtLXJvdGF0aW9uQ2VudGVyOjExMi42NzcyMDU6MTEyLjY3NzQwNS0tPg==';
sound

baner
sound baner

@SharkPool-SP
Copy link
Collaborator

Try this, It has everything youre looking for, and more!
Tune Shark V3
You can find it here:
https://sharkpools-extensions.vercel.app/
or
#1489

Load it unsandboxed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants