From dcb2460064918e405d26d62cd401f5a7107e18fa Mon Sep 17 00:00:00 2001 From: Electric Keet Date: Tue, 11 Jul 2023 16:47:11 -0700 Subject: [PATCH 1/3] Amiga info. Adding useful Amiga info to docs and chip selector. --- doc/6-sample/README.md | 2 +- doc/7-systems/amiga.md | 6 ++++++ src/engine/sysDef.cpp | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/6-sample/README.md b/doc/6-sample/README.md index 52e510f4..63788437 100644 --- a/doc/6-sample/README.md +++ b/doc/6-sample/README.md @@ -47,7 +47,7 @@ use of this mode is discouraged in favor of Sample type instruments. due to limitations in some of those sound chips, some restrictions exist: -- Amiga: sample lengths and loop will be set to an even number, and your sample can't be longer than 131070. +- Amiga: maximum frequency is 31,469Hz, but anything over 28,867 will sound glitchy on hardware. sample lengths and loop will be set to an even number, and your sample can't be longer than 131070. - NES: if on DPCM mode, only a limited selection of frequencies is available, and loop position isn't supported (only entire sample). - SegaPCM: your sample can't be longer than 65535, and the maximum frequency is 31.25KHz. - QSound: your sample can't be longer than 65535, and the loop length shall not be greater than 32767. diff --git a/doc/7-systems/amiga.md b/doc/7-systems/amiga.md index 8f49bd12..c27ac40c 100644 --- a/doc/7-systems/amiga.md +++ b/doc/7-systems/amiga.md @@ -15,3 +15,9 @@ imported MOD files use this chip, and will set A-4 tuning to 436. - does not work on the last channel. - `13xx`: **change wave.** - only works when "Mode" is set to "Wavetable" in the instrument. + +# info + +- the maximum rate for sample playback is technically 31,469Hz but anything higher than 28,867Hz will sound glitchy on hardware. +- sample lengths and loop will be set to an even number. +- samples can't be longer than 131070. \ No newline at end of file diff --git a/src/engine/sysDef.cpp b/src/engine/sysDef.cpp index f4d76ceb..6e3c82e1 100644 --- a/src/engine/sysDef.cpp +++ b/src/engine/sysDef.cpp @@ -798,7 +798,7 @@ void DivEngine::registerSystems() { sysDefs[DIV_SYSTEM_AMIGA]=new DivSysDef( "Amiga", NULL, 0x81, 0, 4, false, true, 0, false, 1U< Date: Tue, 11 Jul 2023 17:27:05 -0700 Subject: [PATCH 2/3] Losing the thousands separators. --- doc/7-systems/amiga.md | 2 +- src/engine/sysDef.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/7-systems/amiga.md b/doc/7-systems/amiga.md index c27ac40c..ee197a90 100644 --- a/doc/7-systems/amiga.md +++ b/doc/7-systems/amiga.md @@ -18,6 +18,6 @@ imported MOD files use this chip, and will set A-4 tuning to 436. # info -- the maximum rate for sample playback is technically 31,469Hz but anything higher than 28,867Hz will sound glitchy on hardware. +- the maximum rate for sample playback is technically 31469Hz but anything higher than 28867Hz will sound glitchy on hardware. - sample lengths and loop will be set to an even number. - samples can't be longer than 131070. \ No newline at end of file diff --git a/src/engine/sysDef.cpp b/src/engine/sysDef.cpp index 6e3c82e1..a758bea8 100644 --- a/src/engine/sysDef.cpp +++ b/src/engine/sysDef.cpp @@ -798,7 +798,7 @@ void DivEngine::registerSystems() { sysDefs[DIV_SYSTEM_AMIGA]=new DivSysDef( "Amiga", NULL, 0x81, 0, 4, false, true, 0, false, 1U< Date: Fri, 14 Jul 2023 07:52:54 -0700 Subject: [PATCH 3/3] Removing some detail. Nixing this addition for now; we'll come back to the idea later. --- src/engine/sysDef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/sysDef.cpp b/src/engine/sysDef.cpp index a758bea8..f4d76ceb 100644 --- a/src/engine/sysDef.cpp +++ b/src/engine/sysDef.cpp @@ -798,7 +798,7 @@ void DivEngine::registerSystems() { sysDefs[DIV_SYSTEM_AMIGA]=new DivSysDef( "Amiga", NULL, 0x81, 0, 4, false, true, 0, false, 1U<