Discuss Scratch
- Discussion Forums
- » Suggestions
- » Being able to play audio from a certain point.
- Potato_Bug
- New to Scratch
5 posts
Being able to play audio from a certain point.
play sound [ v] from (0) seconds
^ This is pretty much what I'm suggesting. This would really help for rhythm games that have a pause feature, and would make audio much easier to use in general, for any project.
- TheAdriCoolManDude
- Scratcher
1000+ posts
Being able to play audio from a certain point.
What would the “from (0) seconds” thing do? Would it allow you to hear from a certain distance?
- LuckyLucky7
- Scratcher
1000+ posts
Being able to play audio from a certain point.
1. It would play the sound from a specific part of a sound(Ex: The block would start the sound from 2 seconds from the actual beginning of the sound) What would the “from (0) seconds” thing do? Would it allow you to hear from a certain distance?
2. This is most likely a duplicate
- Potato_Bug
- New to Scratch
5 posts
Being able to play audio from a certain point.
WorkaroundThis is not a duplicate, in the sense that I did not see another post asking this question, and then make a thread on it. However, I am aware that other people could have asked this before me, and I did check the sticky listing features that the scratch team said they would not add, before I began this thread.
Duplicate
Also, I checked the thread you sent for any real workarounds. They were filled with flaws, and while they are good workarounds in certain situations, they do not eliminate the need for this block.
Pretty much what LuckyLucky7 said. Instead of having to play audio from the beginning, you could play it starting at a certain amount of seconds after the beginning. What would the “from (0) seconds” thing do? Would it allow you to hear from a certain distance?
Also, I know the fact that I'm a new scratcher is a bit suspicious (I could be a spam-bot or troller), but I've actually been scratching on another account for over 5 years now, and you can probably tell that I'm legitimate by the time I put into this post anyways.
Last edited by Potato_Bug (Sept. 19, 2018 22:48:24)
- TheAdriCoolManDude
- Scratcher
1000+ posts
Being able to play audio from a certain point.
The workaround seems easy:
wait (7) secs
play sound [wow v] until done
- Potato_Bug
- New to Scratch
5 posts
Being able to play audio from a certain point.
I don't think I explained the block's function well enough. Its use would be to make audio start to play from a certain point inside the song. So, suppose there was a song that had a really good part 50 seconds into the song, and you wanted to start playing from that really good part immediately. Then you would do The workaround seems easy:wait (7) secs
play sound [wow v] until done
play sound [song with really good part v] from (50) seconds
, which would start the song from that really good part, instead of from the beginning of the song.
Last edited by Potato_Bug (Sept. 19, 2018 23:17:40)
- TheAdriCoolManDude
- Scratcher
1000+ posts
Being able to play audio from a certain point.
Then you should cut the audio.I don't think I explained the block's function well enough. Its use would be to make audio start to play from a certain point inside the song. So, suppose there was a song that had a really good part 50 seconds into the song, and you wanted to start playing from that really good part immediately. Then you would do The workaround seems easy:wait (7) secs
play sound [wow v] until doneplay sound [song with really good part v] from (50) seconds
, which would start the song from that really good part, instead of from the beginning of the song.
- Potato_Bug
- New to Scratch
5 posts
Being able to play audio from a certain point.
That's a good workaround in some situations, but suppose you wanted to make a script that would allow you to pause audio in a game at any spot, and then play it again from the same spot at which you paused. You can't do that by cutting the audio, as you wouldn't know where to cut, since you don't know where the user will pause. However, if the block I suggested was added, you could use a variable to track the number of seconds that you paused at, and then use the block to play the audio again starting where you paused.Then you should cut the audio.I don't think I explained the block's function well enough. Its use would be to make audio start to play from a certain point inside the song. So, suppose there was a song that had a really good part 50 seconds into the song, and you wanted to start playing from that really good part immediately. Then you would do The workaround seems easy:wait (7) secs
play sound [wow v] until doneplay sound [song with really good part v] from (50) seconds
, which would start the song from that really good part, instead of from the beginning of the song.
- TheAdriCoolManDude
- Scratcher
1000+ posts
Being able to play audio from a certain point.
You don't even have the option to pause in Scratch yet.That's a good workaround in some situations, but suppose you wanted to make a script that would allow you to pause audio in a game at any spot, and then play it again from the same spot at which you paused. You can't do that by cutting the audio, as you wouldn't know where to cut, since you don't know where the user will pause. However, if the block I suggested was added, you could use a variable to track the number of seconds that you paused at, and then use the block to play the audio again starting where you paused.Then you should cut the audio.I don't think I explained the block's function well enough. Its use would be to make audio start to play from a certain point inside the song. So, suppose there was a song that had a really good part 50 seconds into the song, and you wanted to start playing from that really good part immediately. Then you would do The workaround seems easy:wait (7) secs
play sound [wow v] until doneplay sound [song with really good part v] from (50) seconds
, which would start the song from that really good part, instead of from the beginning of the song.
- Potato_Bug
- New to Scratch
5 posts
Being able to play audio from a certain point.
You don't even have the option to pause in Scratch yet.That's a good workaround in some situations, but suppose you wanted to make a script that would allow you to pause audio in a game at any spot, and then play it again from the same spot at which you paused. You can't do that by cutting the audio, as you wouldn't know where to cut, since you don't know where the user will pause. However, if the block I suggested was added, you could use a variable to track the number of seconds that you paused at, and then use the block to play the audio again starting where you paused.Then you should cut the audio.I don't think I explained the block's function well enough. Its use would be to make audio start to play from a certain point inside the song. So, suppose there was a song that had a really good part 50 seconds into the song, and you wanted to start playing from that really good part immediately. Then you would do The workaround seems easy:wait (7) secs
play sound [wow v] until doneplay sound [song with really good part v] from (50) seconds
, which would start the song from that really good part, instead of from the beginning of the song.
stop all soundsis good enough, though a bit annoying if you have more than one sound playing at a time.
- Botcho_Otkho
- Scratcher
1000+ posts
Being able to play audio from a certain point.
It doesn't matter whether you know it or not, it's still a duplicate and must be closed.WorkaroundThis is not a duplicate, in the sense that I did not see another post asking this question, and then make a thread on it. However, I am aware that other people could have asked this before me, and I did check the sticky listing features that the scratch team said they would not add, before I began this thread.
Duplicate
Also, I checked the thread you sent for any real workarounds. They were filled with flaws, and while they are good workarounds in certain situations, they do not eliminate the need for this block.
I see now that the circumstances of one's birth are irrelevant. It is what you do with the gift of life that determines who you are. - Mewtwo
- press_start019249
- Scratcher
6 posts
Being able to play audio from a certain point.
make it in its own sprite then add a play soun and a mute block then when you want to unmute it
- GatoEmergency
- Scratcher
11 posts
Being able to play audio from a certain point.
I also wish for this suggestion, as I want to make a Spotify sort- but I guess I’ll just use a different sprite for it.
- KennySC
- Scratcher
9 posts
Being able to play audio from a certain point.
Another block which would maybe be useful…
pause sound [ v]…to allow you to pause a sound and then if you use…
play sound [ v]…the sound will continue playing from the point in which you stopped it.
- KennySC
- Scratcher
9 posts
Being able to play audio from a certain point.
I suppose this would probably also mean that the scratch sound tab would have to change because sounds will still play from the start. Another block which would maybe be useful…pause sound [ v]…to allow you to pause a sound and then if you use…play sound [ v]…the sound will continue playing from the point in which you stopped it.
- PenNPaper_
- Scratcher
14 posts
Being able to play audio from a certain point.
This isn't a complete solution, but it's the best workaround besides importing cut audio .
All the code does is speed up the audio and also counts duration at the about the same speed as the audio. One setback is that there is a noticeable delay, but this is due to Scratch's ‘hardcoded’ maximum pitch of 360.
I made a project with the code so feel free to test it out or backpack some code .
All the code does is speed up the audio and also counts duration at the about the same speed as the audio. One setback is that there is a noticeable delay, but this is due to Scratch's ‘hardcoded’ maximum pitch of 360.
I made a project with the code so feel free to test it out or backpack some code .
Last edited by PenNPaper_ (Nov. 11, 2022 19:56:56)
- KennySC
- Scratcher
9 posts
Being able to play audio from a certain point.
This isn't a complete solution, but it's the best workaround besides importing cut audio .
All the code does is speed up the audio and also counts duration at the about the same speed as the audio. One setback is that there is a noticeable delay, but this is due to Scratch's ‘hardcoded’ maximum pitch of 360.
I made a project with the code so feel free to test it out or backpack some code .
Good solution using current scratch blocks!
- Kindcabbage1429
- Scratcher
7 posts
Being able to play audio from a certain point.
I would like this to, not to pause music, but to do something like home to its music box version.
- medians
- Scratcher
1000+ posts
Being able to play audio from a certain point.
Has been suggested:
https://scratch.mit.edu/discuss/topic/182656/
https://scratch.mit.edu/discuss/topic/182656/
NEW: Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Fun_Cupcake_i81: https://scratch.mit.edu/projects/850535211/
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that
Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.
Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @ straightforwardness
i trolled redcat LOL
if you see this
{what method did you use::control hat;
answer on profile ::motion
} ::operators
- Discussion Forums
- » Suggestions
- » Being able to play audio from a certain point.