> For the complete documentation index, see [llms.txt](https://jjazzlab.gitbook.io/developer-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jjazzlab.gitbook.io/developer-guide/add-rhythm-engine.md).

# Architecture

## Overview

![](https://3060620187-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQN01fU1nGY7UmcJHSV%2Fuploads%2FsepsxZQoRsv89CnehIay%2FJJazzLabArchitecture.png?alt=media\&token=658948ca-3712-4ddb-a45b-e63ea4d98597)

## Main NetBeans modules

### Core modules

[ChordLeadSheet](https://github.com/jjazzboss/JJazzLab/tree/master/core/ChordLeadSheet) Model classes for the chord leadsheet

[Harmony](https://github.com/jjazzboss/JJazzLab/tree/master/core/Harmony) Classes such as [Note](https://github.com/jjazzboss/JJazzLab/blob/master/core/Harmony/src/main/java/org/jjazz/harmony/api/Note.java), [Degree](https://github.com/jjazzboss/JJazzLab/blob/master/core/Harmony/src/main/java/org/jjazz/harmony/api/Degree.java), [TimeSignature](https://github.com/jjazzboss/JJazzLab/blob/master/core/Harmony/src/main/java/org/jjazz/harmony/api/TimeSignature.java), [ChordSymbol](https://github.com/jjazzboss/JJazzLab/blob/master/core/Harmony/src/main/java/org/jjazz/harmony/api/ChordSymbol.java), [ChordType](https://github.com/jjazzboss/JJazzLab/blob/master/core/Harmony/src/main/java/org/jjazz/harmony/api/ChordType.java), [Scale](https://github.com/jjazzboss/JJazzLab/blob/master/core/Harmony/src/main/java/org/jjazz/harmony/api/Scale.java), etc.

[Midi](https://github.com/jjazzboss/JJazzLab/tree/master/core/Midi) Various utility classes, including classes to manage drum maps

[MidiMix](https://github.com/jjazzboss/JJazzLab/tree/master/core/MidiMix) Model classes for the MidiMix (saved as .mix file). Controls the configuration of the output synth (bank select/program change, volume, panoramic, etc.) for a given song

[MusicControl](https://github.com/jjazzboss/JJazzLab/tree/master/core/MusicControl) Classes to control music playback (start, pause, etc.)

[Rhythm](https://github.com/jjazzboss/JJazzLab/tree/master/core/Rhythm) Model classes for a rhythm (style).

[RhythmDatabase](https://github.com/jjazzboss/JJazzLab/tree/master/core/RhythmDatabase) Manage the available rhythm instances on the system

[RhythmMusicGeneration](https://github.com/jjazzboss/JJazzLab/tree/master/core/RhythmMusicGeneration) Utility classes for music generation

[Song](https://github.com/jjazzboss/JJazzLab/tree/master/core/Song) Model classes for a song (saved as .sng file). A song mainly contains a ChordLeadSheet, a SongStructure and optional user phrases.

[SongStructure](https://github.com/jjazzboss/JJazzLab/tree/master/core/SongStructure) Model classes for a SongStructure

### App modules

[ActiveSong](https://github.com/jjazzboss/JJazzLab/tree/master/app/ActiveSong) Manages the active song (JJazzLab can open several songs in parallel, but only the active one is allowed to send Midi data).

[CL\_Editor](https://github.com/jjazzboss/JJazzLab/tree/master/app/CL_Editor) The graphical editor for a [ChordLeadSheet](https://github.com/jjazzboss/JJazzLab/blob/master/core/ChordLeadSheet/src/main/java/org/jjazz/chordleadsheet/api/ChordLeadSheet.java) object.

[MixConsole](https://github.com/jjazzboss/JJazzLab/tree/master/app/MixConsole) The graphical editor for a [MidiMix](https://github.com/jjazzboss/JJazzLab/blob/master/core/MidiMix/src/main/java/org/jjazz/midimix/api/MidiMix.java) object.

[SongEditorManager](https://github.com/jjazzboss/JJazzLab/tree/master/app/SongEditorManager) The central place where all song editors are managed

[SptEditor](https://github.com/jjazzboss/JJazzLab/tree/master/app/SptEditor) The graphical editor for a [SongPart](https://github.com/jjazzboss/JJazzLab/blob/master/core/SongStructure/src/main/java/org/jjazz/songstructure/api/SongPart.java).

[SS\_Editor](https://github.com/jjazzboss/JJazzLab/tree/master/app/SS_Editor) The graphical editor for a [SongStructure](https://github.com/jjazzboss/JJazzLab/blob/master/core/SongStructure/src/main/java/org/jjazz/songstructure/api/SongStructure.java) object.

### Plugins modules

[FluidSynthEmbeddedSynth ](https://github.com/jjazzboss/JJazzLab/tree/master/plugins/FluidSynthEmbeddedSynth)Manages the internal FluidSynth-based synth.

[JJSwing ](https://github.com/jjazzboss/JJazzLab/tree/master/plugins/JJSwing)A rhythm music generation engine for practicing jazz standards with a natural feel

[YamJJazz ](https://github.com/jjazzboss/JJazzLab/tree/master/plugins/YamJJazz)A rhythm music generation engine with 2 Yamaha style-based rhythm providers


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://jjazzlab.gitbook.io/developer-guide/add-rhythm-engine.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
