if i fuck up the prec it seems to sound way better
This commit is contained in:
parent
81337b7f4b
commit
7007e66f7c
4 changed files with 4 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
/target
|
||||
push.sh
|
||||
u2c.py
|
||||
version
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
local char, byte, floor, band, rshift = string.char, string.byte, math.floor, bit32.band, bit32.arshift
|
||||
|
||||
|
||||
local PREC = 8
|
||||
local PREC = 10
|
||||
local PREC_POW = 2 ^ PREC
|
||||
local PREC_POW_HALF = 2 ^ (PREC - 1)
|
||||
local STRENGTH_MIN = 2 ^ (PREC - 8 + 1)
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ function ui()
|
|||
end
|
||||
|
||||
local dcode = require "dcode"
|
||||
local make_decoder = dcode.make_dec
|
||||
local make_decoder = dcode.make_truebit_dec
|
||||
|
||||
local ws = http.websocket("ws://vps.sad.ovh:5821/ws")
|
||||
|
||||
|
|
|
|||
|
|
@ -506,7 +506,7 @@ struct DfpwmEncoder {
|
|||
}
|
||||
|
||||
impl DfpwmEncoder {
|
||||
const CONST_PREC: i32 = 10;
|
||||
const CONST_PREC: i32 = 8;
|
||||
|
||||
fn new() -> Self {
|
||||
Self { q: 0, s: 0, lt: -128 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue