# Rhythm files

{% hint style="info" %}
In JJazzLab "**rhythm**" usually means a **music style**, like pop or bossa-nova.
{% endhint %}

Rhythms are used by [songs](/user-guide/songs/song-and-mix-files.md). Many songs use only one rhythm (e.g. rock), but some may use 2 or more. A song file (.sng) does not contain all the rhythm data, it just keeps a reference to the rhythm's name.

Upon first start, JJazzLab [scans ](#rhythm-files-scanning)the computer to get a list of the available rhythms.

In JJazzLab core, rhythms are made available by [rhythm engines](/user-guide/rhythm-engines/overview.md). Some rhythms can be based on **rhythm files**. For example the [YamJJazz rhythm engine](/user-guide/rhythm-engines/yamjjazz-rhythm-engine.md) provides rhythms built from Yamaha style files such as **poprock.sty** or **TripHop.S510.prs**.

## Rhythm files location <a href="#rhythm-files-location" id="rhythm-files-location"></a>

JJazzLab expects rhythm files to be in the **User directory for rhythm files**. The location of this directory can be changed in the **Options/Rhythms**, as shown below.

![](/files/-MQEBz01ztPjB4JekDlp)

## Rhythm files scanning <a href="#rhythm-files-scanning" id="rhythm-files-scanning"></a>

Your **rhythm files** are scanned at startup only upon a fresh install or an upgrade, and the rhythm list is saved into a **cache file**.

You can force a **rescan** in the **Options/Rhythms** panel as shown below.

<figure><img src="/files/Ek1nIBatI2y9Fra2veSw" alt=""><figcaption><p>Rescan button in the Options/Rhythms panel</p></figcaption></figure>

{% hint style="info" %}
You can use up to **2 levels of sub-directorie**s to organize the rhythms in the **User directory for rhythm files**. Sub-directories whose name starts with an underscore '**\_**' are **not** scanned.
{% endhint %}

This cache file is then used to get the **rhythm list** upon next startups, which is much faster than the initial scanning -especially if you have many rhythm files.

{% hint style="danger" %}
Quality of Yamaha style files found on the web vary a lot. Furthermore some styles are

sometimes “broken” (invalid file format), i.e. can't be loaded by JJazzLab.
{% endhint %}

## Adding new rhythm files <a href="#adding-new-rhythm-files" id="adding-new-rhythm-files"></a>

Use the **Add Rhythms...** button from the **Options/Rhythms** panel (or from the [Rhythm selection dialog](/user-guide/editors/song-structure.md#change-rhythm-music-style)).

<figure><img src="/files/IC1SIImfZah5oj4DfQk7" alt=""><figcaption><p>Add Rhythms... button in the Options/Rhythms panel</p></figcaption></figure>

Added rhythm files will be copied to the root of the **User directory for rhythm files**, and a **rescan** will be planned on next start.

In the **Add Rhythms...** dialog shown below, you can choose to add the rhythms **for the current session only**, i.e. rhythm files will NOT be copied in the **User directory for rhythm files**.

<figure><img src="/files/tLChrSml3ppohvPHquzT" alt=""><figcaption><p>You may add rhythm files only for the current session</p></figcaption></figure>

{% hint style="danger" %}
If, **outside of JJazzLab**, you add or remove rhythm files in the rhythm directory structure, **you MUST manually force a rescan**, otherwise the added/removed files will not be taken into account.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jjazzlab.gitbook.io/user-guide/rhythms/rhythm-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
