mirror of
https://github.com/irmen/prog8.git
synced 2026-04-21 02:16:41 +00:00
psg module: the envelope handler no longer writes to vera PSG voices that haven't been enabled
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
Prog8 compiler v11.2 by Irmen de Jong (irmen@razorvine.net)
|
||||
Prog8 compiler v11.3-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
|
||||
Prerelease version from git commit 8e31b622 in branch master
|
||||
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
||||
|
||||
Compiling program import-all-c128.p8
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
Prog8 compiler v11.2 by Irmen de Jong (irmen@razorvine.net)
|
||||
Prog8 compiler v11.3-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
|
||||
Prerelease version from git commit 8e31b622 in branch master
|
||||
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
||||
|
||||
Compiling program import-all-c64.p8
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
Prog8 compiler v11.2 by Irmen de Jong (irmen@razorvine.net)
|
||||
Prog8 compiler v11.3-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
|
||||
Prerelease version from git commit 8e31b622 in branch master
|
||||
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
||||
|
||||
Compiling program import-all-cx16.p8
|
||||
@@ -586,6 +587,7 @@ LIBRARY MODULE NAME: psg
|
||||
------------------------
|
||||
|
||||
psg {
|
||||
const ubyte DISABLED
|
||||
const ubyte LEFT
|
||||
const ubyte NOISE
|
||||
const ubyte PULSE
|
||||
@@ -598,9 +600,11 @@ psg {
|
||||
ubyte[] envelope_states
|
||||
ubyte[] envelope_sustains
|
||||
uword[] envelope_volumes
|
||||
bool[] voice_enabled
|
||||
envelope (ubyte voice_num, ubyte maxvolume, ubyte attack, ubyte sustain, ubyte release)
|
||||
envelopes_irq () -> bool
|
||||
freq (ubyte voice_num, uword vera_freq)
|
||||
init ()
|
||||
pulse_width (ubyte voice_num, ubyte pw)
|
||||
silent ()
|
||||
voice (ubyte voice_num, ubyte channel, ubyte vol, ubyte waveform, ubyte pulsewidth)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
Prog8 compiler v11.2 by Irmen de Jong (irmen@razorvine.net)
|
||||
Prog8 compiler v11.3-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
|
||||
Prerelease version from git commit 8e31b622 in branch master
|
||||
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
||||
|
||||
Compiling program import-all-pet32.p8
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
Prog8 compiler v11.2 by Irmen de Jong (irmen@razorvine.net)
|
||||
Prog8 compiler v11.3-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
|
||||
Prerelease version from git commit 8e31b622 in branch master
|
||||
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
||||
|
||||
Compiling program import-all-virtual.p8
|
||||
@@ -293,6 +294,7 @@ strings {
|
||||
lstripped (str s) -> str
|
||||
ltrim (str s)
|
||||
ltrimmed (str s) -> str
|
||||
ncompare (str st1, str st2, ubyte length) -> byte
|
||||
rfind (uword stringptr, ubyte character) -> ubyte
|
||||
right (str source, ubyte slen, str target)
|
||||
rstrip (str s)
|
||||
|
||||
@@ -9,6 +9,7 @@ TODO
|
||||
Future Things and Ideas
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
- in unit test helpers: replace own temp file name creation by kotest tempfile()/tempdir() , instead of using Thread.currentThread().id, which is deprecated in newer Java versions
|
||||
- allow integer range as when choice? because 1,2,3,4,5 is already allowed, so perhaps 1 to 5 should be allowed too? However, [1,2,3,4,5] usually is the desugared equivalent of 1 to 5 and choice values can't be arrays.
|
||||
- const values should always either be of type long or float, this is how they were usually treated in const expression evaluation already anyway
|
||||
- Kotlin: can we use inline value classes in certain spots?
|
||||
|
||||
Reference in New Issue
Block a user