ARCore icon indicating copy to clipboard operation
ARCore copied to clipboard

Background Sounds/Songs

Open HyGlobalHD opened this issue 10 years ago • 7 comments

Hey, I Just Wondering If You Know A Best Way To Make This? Example:

  • Default Level/World (Example1 Song)
    • Others Level/World (Example2 Song)
    • ... I Don't Want If The Player Near NoteBlock The Songs Will Start I Want It Like When Server Start Or Player Join There Will A Song. Not By Command. Darn My Grammar :0

HyGlobalHD avatar Aug 21 '16 12:08 HyGlobalHD

Sound like we have to think a song :)

Adam1609 avatar Aug 21 '16 23:08 Adam1609

We could use like ZMusicBox nbs files. Playing the music for each player everywhere is the big deal. Perhaps we could just spawn the sounds foreach player? I think there was a NoteBlockSound class somewhere

SalmonDE avatar Aug 22 '16 02:08 SalmonDE

Yup, we would need to get the instrument and the pitch and just spawn it for every player in that specific world. Getting the instrument and pitch could be done with using nbs files and ZMusixBox's API.

https://github.com/ClearSkyTeam/ClearSky/blob/php7/src/pocketmine/level/sound/NoteblockSound.php

Look at __construct, it tells us we need a Vector3 Position, the instrument and the pitch to spawn a noteblock sound. :)

SalmonDE avatar Aug 22 '16 02:08 SalmonDE

@SalmonGER you are right, but creating a server song is difficult :D maybe I should learn about note :dancer:

Adam1609 avatar Aug 22 '16 13:08 Adam1609

It's possible to convert midi files to nbs files with NoteBlock Studio and edit the song. Maybe that could help?

SalmonDE avatar Aug 22 '16 13:08 SalmonDE

See what I can do :D

Adam1609 avatar Aug 23 '16 09:08 Adam1609

Working On This Stuff

HyGlobalHD avatar Sep 06 '16 13:09 HyGlobalHD