Music
Music is the arrangement of sound to create some rhythm, harmony or melody.[1] As it is found everywhere in human life, and as such culturally universal[2], it has also gained it's place on Kaboom
Music can be defined as either a list of notes or a sound file.
On Kaboom
On Kaboom, most music is formatted as a list of notes[3].
Playing music in the format of a list of notes is acomplished by having a tick loop, and each tick collecting all notes to be played and playing them using /playsound.[4]
Most larger bots, such as ChomeNS Bot[5], HBot[6], mewo[7], and more have a type of music plugin.
Annoyances
As the music is played on the Kaboom server or a clone, the music will be played to those who the bot selects.
During coding, if you have your own music playing, during general playing or if you cannot have loud souds, in-game music can be annoying or distracting[8].
This means that bots have to add measures to make the players not be annoyed by the music.
There are 2 main types of how to handle music consent.
- Opt-out - Music is listened by all players by default, using something like a nomusic tag to stop it. Currently mainly only used by mewo
- Opt-in - To listen to music, you must first add a tag (eg. chomens_music) or execute a bot command. This is used by most bots[9][10], and initially popularized by sbot.
As of right now, it is preferred to implement the opt-in strategy, although there are still bots that do not, like mewo[11], and this is because cxvqo is a raper and does not need consent[12].
Skidding
Music is a relatively hard concept for newbies, and because most newbies are skids, the code for music is often copied from one bot onto another.
Unnotable examples of this are:
- ArtieWar figuring out the great pedo cannot write good code.
Even though playing music seems like a complex concept, it generally isn't[13]. If you are reading this page and planning on copying another bot's music code, genuinely try making your own.
- ↑ https://en.wikipedia.org/wiki/Music
- ↑ https://books.google.com/books?id=eWhBAQAAQBAJ
- ↑ https://matrix.to/#/!CLjEvLBxzXyEDwOfXG:global.stork-brill.ts.net/$IjbVzGbojyoPjwalASK0-25lmhVVPNCx1XZDte8c7RA
- ↑ https://github.com/hhhzzzsss/HBot-Release
- ↑ https://matrix.to/#/!CLjEvLBxzXyEDwOfXG:global.stork-brill.ts.net/$zSKupSWyCfm17P_WWP4nxdx0N3A43yPqK4eZ1SnleNk
- ↑ https://matrix.to/#/!CLjEvLBxzXyEDwOfXG:global.stork-brill.ts.net/$DkCNHGcSuTho0CLyfXTaj0IXCLO8BkthvlZBBYDjzlU
- ↑ https://matrix.to/#/!CLjEvLBxzXyEDwOfXG:global.stork-brill.ts.net/$r8HkCgNyFy5JZPv9eR1caKTGgWnF33c1s6GQYNBX4Z4
- ↑ https://matrix.to/#/!CLjEvLBxzXyEDwOfXG:global.stork-brill.ts.net/$51w0goIlVpWYPuboQr0towtknvPzY_C5-IIz4FC2yi4
- ↑ https://matrix.to/#/!CLjEvLBxzXyEDwOfXG:global.stork-brill.ts.net/$xq07Rd6ODddFqIee9Aa0ZLSdFO-tLDQ69upOgEeA7LA
- ↑ https://matrix.to/#/!CLjEvLBxzXyEDwOfXG:global.stork-brill.ts.net/$1jKfvNJppSDCB_m8hCA-P4Cd79bajR7pJLk1YZJBDcY
- ↑ https://matrix.to/#/!CLjEvLBxzXyEDwOfXG:global.stork-brill.ts.net/$z9s4qANQN0kg_KoATyt1kgxubmuqkNdCiw1INltkmPA
- ↑ https://matrix.to/#/!CLjEvLBxzXyEDwOfXG:global.stork-brill.ts.net/$ektPOEMmB3dsOc2uazcEqrmmsTxuVAmPc8Tjc-REzBk
- ↑ i know