Making a Song File
Djazz uses a song file to play a song, whether you are plaing back scores or using live MIDI or audio. A song file is not a score file. It does not contain any notes to play. Where a score file contains the notes in each beat of the song, a song file contains all the metadata for each beat: its label, its position in the song, and what chapter of the song it is in, in order to make the grid and send the master clock and factor oracle the appropriate data. Djazz uses labels that represent chords. In this way, a song file is like a chord chart.
To create a song file for a new song you want to play with Djazz, the make_song_file Max patcher is provided for you in the tools folder.
SONG NAME
Enter the name of the given song; this will be displayed when the song file is loaded, and will also appear in the song dropdown menu if it is placed in the djazz_user/scores/ folder
BEATS
Enter here the total number of beats in the song.
TEMPO
Enter the song tempo. This tempo will be loaded into Djazz’s metronome when the song is loaded, and is also the tempo that will be expected if manual tap entry is performed
TIME SIGNATURE
Enter the number of beats per measure, i.e. the top number in the time signature. The duration of the beats, i.e. the bottom number in the time signature (4 for quarter note, 8 for eighth note, etc.) does not matter; do not include it.
CHAPTER START BARS
If the song is divided into chapters, enter here the bar (i.e. measure) numbers at which the chapters begin. For instance, if a song contains four chapters of 16, 16, 32, and 64 bars, in that order, the chapter start bars will be 1, 17, 33, and 65. Enter these numbers without commas
Putting all this together, here’s what you would enter for a song in 4/4 time, with chapters of duration as above: 16, 16, 32, and 32 bars. The number of beats is the total number of bars multiplied by the time signature; in this case (16 + 16 + 32 + 64) * 4 = 128 * 4 = 516
BEAT LABELS
Beat labels are input in a text-based format. They can be entered directly into the tool’s window, or cut and pasted from a text editor.
A chord label has two parts, the root and the quality. The way of entering labels is as follows:
(< chord root > < chord quality > < number of consecutive beats >)
< chord root > can be the symbol C, C#, Db, D, D#, Eb, E, F, F#, Gb, G, G#, Ab, A, A#, Bb, or B.
< chord quality > can be any symbol that does not contain an underscore ("_") or a semicolon(";").
The improvisation algorithm functions in part by matching these symbols with the symbols on the beats in score files, so if you want it to work correctly, keep the format of these symbols the same. For instance, the preloaded songs in Djazz use the following symbols:
maj7, min7, 7, dim7, maj6, min6
But you can define any symbols you want:
dom7#9b9#11, maj6add9, min6withanextraweirdnoteatthetop, etc.
< number of consecutive beats > is how many beats this particular label is repeated.
So for instance, the chord sequence
Amaj7 Amaj7 Dmin7 Amaj7
Amaj7 Dmin7 E7 Amaj7
would be entered as
It could also be entered as
if this is easier to read.
Indentation and carriage returns are ignored by the tool.
MAKING A SONG FILE
In summary, to make a new song file, follow the seven steps listed below.
Open the patcher “djazz.make_song_file.maxpat” from the folder “patchers/data_conversion_tools” in the current djazz folder.
In the appropriate fields, put in the song name, beat count, tempo, time signature, and the starting bars for each chapter.
Fill in the “Beat Labels” box.
Press the “save” button.
Save the song file in the folder of the same song name that contains the subfolders “new” and “new2.” The file name and the song folder name should be exactly the same.
That’s all. If you put the song file in a folder with scores in “new” and “new2” subfolders , this song can now be played as usual by Djazz.
Press the “clear” button to clear the data.