The basic Buddhist rules of morality for lay people are called the Five Precepts (they are to abstain from killing, from stealing, from sensual and/or sexual misconduct, from lying, and from alcohol).
There's an extended version of these called the Eight Precepts, of which one precept is to not go to listen to music.
These eight (instead of five) precepts are especially for Uposatha days,
The Uposatha (Sanskrit: Upavasatha) is Buddhist day of observance, in existence from the Buddha's time (500 BCE), and still being kept today in Buddhist countries. The Buddha taught that the Uposatha day is for "the cleansing of the defiled mind," resulting in inner calm and joy. On this day, lay disciples and monks intensify their practice, deepen their knowledge and express communal commitment through millennia-old acts of lay-monastic reciprocity. On these days, the lay followers make a conscious effort to keep the Five Precepts or (as the tradition suggests) the Eight Precepts. It is a day for practicing the Buddha's teachings and meditation.
According to the three Suttas identified at the bottom of this page, the purpose of the eight precepts is to "emulate the arahants".
The eight precepts aren't only practiced on Uposatha days but also, for example, by people who visit a centre such as this one.
My experience of group meditation includes a little bell (ding!) at the beginning, then silence, and then the bell again at the end of the sitting.
Strangely/exceptionally, this page includes the following quote,
How do the Acariyas include listening in watching?
According to the Acariyas, the breaking of the precept lies in the effort exerted in going to watch shows. If we are standing, sitting or lying down in our own place, that is, if we do not put forth the effort to go and watch, and if such shows or entertainments come to us or pass by, it is not a breach of the precept for us, though the sila would be tarnished. But in any case, not to listen or watch is the best. The listening to or singing of songs is a breach of the precept, except with such ballads as contain Dhamma that causes faith to arise as well as arousing weariness with the suffering of our life. For example, one Thera (senior bhikkhu) heard a slave woman singing about life's troubles. When the Thera heard this, he saw the tediousness of suffering and achieved attainments on the Path. This type of song can be listened to and is not detrimental.
FWIW Buddhists' attitude to music may vary with tradition, circumstance, age, etc. For example, this is from a Primary school (the song titles and lyrics quoted later are of 'teaching' songs):
Monks and nuns from the Thich Nhat Hanh collective, in Plum Village, France, pay our school a special visit
Today we welcomed a group of five monks and three nuns from Plum Village. They spent
two hours with our pupils this afternoon singing songs, sharing stories and teaching us some
simple but powerful mindfulness exercises.
Sister Peace reminded us how effective the ‘inviting’ of a bell can be in bringing us back to
focused awareness and the children discussed the various ways we use a ‘mindfulness’ bell
at the school, as well as suggesting other occasions etc.