From a6e6364a7e81a9f9791c4dac735080f08d084e78 Mon Sep 17 00:00:00 2001 From: nihilazo Date: Thu, 20 Jan 2022 17:07:42 +0000 Subject: [PATCH] add loop command to format spec, rename 'effects' to 'commands' --- format.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/format.md b/format.md index ad3f00e..e90cfa6 100644 --- a/format.md +++ b/format.md @@ -49,11 +49,11 @@ a song row is 4 bytes. Each byte is a pattern number, with the first byte being Patterns contain 0x10 lines of note data. Patterns are ordered sequentially in the file and there can be up to 255 patterns in a file. -A pattern line consists of 3 bytes. The first byte contains a note ( up to 0x7f ) and the next two bytes contain an effect and a parameter for that effect. No note is represented by the byte 00. 0xff represents a note off/note stop. No effect is also represented by 00. +A pattern line consists of 3 bytes. The first byte contains a note ( up to 0x7f ) and the next two bytes contain a command and a parameter for that effect. No note is represented by the byte 00. 0xff represents a note off/note stop. No effect is also represented by 00. -### Effects +### Commands -(what an effect should be drawn as in an editor is in parenthesis) +(what an command should be drawn as in an editor is in parenthesis) More soon probably @@ -64,7 +64,7 @@ More soon probably * 0x05 (S) - set sustain to argument (1-0f) * 0x06 (R) - set release to argument (1-0f) * 0x07 (T) - set song speed to argument (1-0f) - +* 0x08 (L) - set sample loop ( 00: off, otherwise: on ) ## Instruments Instruments contain a sample and some default parameters for that sample. Everything is in the same format expected by the audio device.