IDEAS home Printed from https://ideas.repec.org/a/wsi/ijmpcx/v32y2021i02ns0129183121500236.html
   My bibliography  Save this article

High n-gram occurrence probability in baroque, classical and romantic melodies

Author

Listed:
  • Alejandro Hernández-Fuentes

    (Facultad de Ciencias, Universidad Nacional Autónoma de México, México City 04510, México)

  • M. del Castillo-Mussot

    (#x2020;Instituto de Física,Universidad Nacional Autónoma de México, México City 04510, México)

  • Candelario Hernández-Gómez

    (#x2020;Instituto de Física,Universidad Nacional Autónoma de México, México City 04510, México)

Abstract

An n-gram in music is defined as an ordered sequence of n notes of a melodic sequence m. Pm(n) is calculated as the average of the occurrence probability without self-matches of all n-grams in m. Then, Pm(n) is compared to the averages Shuffm(n) and Equipm(n), calculated from random sequences constructed with the same length and set of symbols in m either by shuffling a given sequence or by distributing the set of symbols equiprobably. For all n, both Pm(n)−Shuffm(n), Pm(n)−Equipm(n)≥0, and this differences increases with n and the number of notes, which proves that notes in musical melodic sequences are chosen and arranged in very repetitive ways, in contrast to random music. For instance, for n≤5 and for all analyzed genres we found that 1.6<−log(Pm(n))<8.6, while 1.6<−log(Shuffm(n))<14.5 and 1.9<−log(Equipm(n))<18.3. Pm(n) of baroque and classical genres are larger than the romantic genre one. Pm(n) vs n is very well fitted to stretched exponentials for all songs. This simple method can be applied to any musical genre and generalized to polyphonic sequences.

Suggested Citation

  • Alejandro Hernández-Fuentes & M. del Castillo-Mussot & Candelario Hernández-Gómez, 2021. "High n-gram occurrence probability in baroque, classical and romantic melodies," International Journal of Modern Physics C (IJMPC), World Scientific Publishing Co. Pte. Ltd., vol. 32(02), pages 1-22, February.
  • Handle: RePEc:wsi:ijmpcx:v:32:y:2021:i:02:n:s0129183121500236
    DOI: 10.1142/S0129183121500236
    as

    Download full text from publisher

    File URL: http://www.worldscientific.com/doi/abs/10.1142/S0129183121500236
    Download Restriction: Access to full text is restricted to subscribers

    File URL: https://libkey.io/10.1142/S0129183121500236?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:wsi:ijmpcx:v:32:y:2021:i:02:n:s0129183121500236. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Tai Tone Lim (email available below). General contact details of provider: http://www.worldscinet.com/ijmpc/ijmpc.shtml .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.