#(DrGf) Tag for getting a list of Midis loaded on the server

36 messages · Page 1 of 1 (latest)

chrome prism
#

There isn't a tag for currently loaded Midis in the Midi folder. If I want to play a random Midi, I have to manually type out every single one in a script. If this were a feature, I can simply let it play a random one and save 35 lines of code

little epochBOT
sour bisonBOT
#

(DrGf) Tag for getting a list of Midis loaded on the server

sour bisonBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

chrome prism
#

!c Midi

knotty rapidsBOT
# chrome prism !c Midi
Group

world

Syntax

midi [cancel/<file> (tempo:<#.#>) (volume:<#.#>)] (<location>/<entity>|...)

Short Description

Plays a midi file at a given location or to a list of players using note block sounds.

Description

This will fully load a midi song file stored in the '../plugins/Denizen/midi/' folder.
The file must be a valid midi file with the extension '.mid'.
It will continuously play the song as noteblock songs at the given location or group of players until the song ends.
If no location or entity is specified, by default this will play for the attached player.

Also, an example Midi song file has been included: "Denizen" by Black Coyote. He made it just for us!
Check out more of his amazing work at: ht...

chrome prism
#

!t Midi

knotty rapidsBOT
# chrome prism !t Midi

Returns the humidity of this biome.

Returns

ElementTag(Decimal)

Mechanism

BiomeTag.humidity

Examples
# In a plains biome, this fills with '0.4'.
- narrate "Humidity in a plains biome is <biome[plains].humidity>! So humid!"
chrome prism
#

Well there's nothing ^

timber sigil
#

I mean

#

!t list_files

knotty rapidsBOT
timber sigil
#

!t util.list_files

knotty rapidsBOT
timber sigil
#

^ you can probably just do that?

chrome prism
#

How come for schematics there's a tag to list loaded schematics, a tag to see loaded scripts, and I think a tag for loaded yaml files?

grizzled pine
#

Are midis loaded? Or do you mean actively playing midis?

chrome prism
#

You drag and drop them into the folder then you do /ex midi file:<name> to play it. I don't know how it "loads" it precisely

Although there isn't a tag to see if a midi is playing for a player

#

And what that file is

grizzled pine
#

I see, you'd have to manually keep track of it but it'd be nice to have a denizen tag of some sort.

timber sigil
#

As in, loaded schematics != all schematic files, loaded scripts != all scripts, etc.

timber sigil
chrome prism
trim mulch
#

You can set a Server flag for the Midi you are playing, and put your midi command as waitable to remove the flag

grizzled pine
#

Trickier if you have the song playing for multiple people at different start times right?

chrome prism
#

I notice the midi cancel also doesn't work if multiple midis are playing at the same time for you, even if you run the command several times. It only stops 1 midi, others will still play.

trim mulch
#

flag server midi_songs.uuid.song_name:location

#

Build it as map

trim mulch
little epochBOT
chrome prism
trim mulch
#

then its started on the position for the linked player

hushed furnaceBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@chrome prism