Add sound to my sensing reporter

I was wanting to convert the current selected sound for a sprite to base64 but couldn’t find a simple way of doing it

Could ‘sound’ be added to the my reporter please?

Also, should/could there be either a sound reporter in the sound category or maybe just add it to the menu of this reporter?

Unlike with costumes, sprites do not have a selected sound. You can however, create a variable for the purpose of keeping the name of the selected sound.

Months ago, I made a report to add the latter behavior to () of sound (). You could do that with costumes in () of costume () by leaving the first input blank, but not for sounds.

Was that actually the problem to emphasize on? In that regard, I don’t think there is a way to do that JS-free.

Good point :slight_smile:

I was actually only wanting to get the sound if there was only one sound without having to do

mqttTest# script pic

I don’t really use sounds in my projects so I didn’t realise that sounds aren’t treated the same way as costumes

This request for some work I’m doing on the MQTT Library

If I’m understanding correctly, you want this block?
untitled script pic (6)

It can be found in the audio comp library (come to think of it, why is it in the sensing category instead of the sounds category?).

Thanks :slight_smile:

Oh dreck. I agree. I cannot tell how much it drives me crazy when I see blocks are slapped into Sensing, out of any other categories that fit the block more.

(where is the (() @>) block used?::sensing) (in SciSnap!) should be in Control.

<[abc 123] has [letter V]?::sensing> (in a different Scratch mod) is among the worst offenders. This goes in Operators.

It is in Sensing probably because the block used for finding the sprite’s sounds (my ()) is in Sensing too.

That’s literally a duplicate of the metaprogramming one.

So I’ve made a modified copy of the sound named reporter and made it default to the 1st sound if no sound selected

mqttTest# script pic (1)