-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nullsound: new NSS opcode to simulate auto-envelope
Furnace has a feature that reconfigures the SSG envelope based on the current note's frequency and a configurable quotient numerator/denominator. This maps into the YM2610's envelope register. We don't want to do math on the Z80 at runtime, so we have to simulate this feature by precomputing the quotient prior to playing the note at runtime. Add a new opcode SSG_ENV_PERIOD that is inserted automatically by nsstool.py in a new compilation pass. This requires nsstool to know the autoenv configuration for the instrument in use, so make nsstool parse the instrument section of the Furnace module before generating NSS data.
- Loading branch information
Showing
3 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,6 +200,7 @@ nss_opcodes: | |
.dw ssg_note_off | ||
.dw ssg_vol | ||
.dw fm_vol | ||
.dw ssg_env_period | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters