Crystal clean PCM 8bit samples on the poor PSG

Page 12/12
5 | 6 | 7 | 8 | 9 | 10 | 11 |

By thegeps

Paladin (1020)

thegeps's picture

25-01-2022, 13:34

Ok, thanks. I'll do this evening when back home from work

By Grauw

Ascended (10565)

Grauw's picture

25-01-2022, 14:33

thegeps wrote:

the player can't be assembled with Glass (after removing the macros I've obtained an "out of range" error

Hey thegeps, I have removed the range check from Glass after the 0.5 release, so I recommend to use the development version of Glass to get rid of that error.

By thegeps

Paladin (1020)

thegeps's picture

25-01-2022, 14:38

Thanks Grauw. I remember that I had the same problem when coding Freedom Fighter and then that time I've downloaded a newer Glass version to get rid of the problem. It seemed me strange that it has happened again. How I may know the Glass version? (Anyway I'll download this new version as soon as I will be at home)

By Grauw

Ascended (10565)

Grauw's picture

25-01-2022, 14:49

Unfortunately I don’t track versions for development builds, however the removal of this out of range error was already done in 2018. Maybe you downloaded the 0.5 release version instead of the development version. I should really make a proper 0.6 release, there have been only a few user-facing changes but some of them (like this one) are important to just get out there properly.

By chrisborn

Supporter (15)

chrisborn's picture

15-03-2022, 02:43

Hello ,
I did learn a bit off C and could find the source off my problem
I dont know yet if it FULLY works but after all the changes where adding

#include "stdint.h"        //https://stackoverflow.com/questions/40663918/uint32-t-does-not-name-a-type
#include "cstdint"

BTW how can i switch off html tags? '<'

to the files
pcmenc.pcc, resample.c st.h

AND i added '-m32' to the compile line
https://www.geeksforgeeks.org/compile-32-bit-program-64-bit-...
g++ -m32 pcmenc.cpp resample.c -o pcmenc -O2 -Wall

the first result after compiling is

./pcmenc -cpuf 3546900 -p 0 -dt1 97 -dt2 97 -dt3 175 -a 115 -rto 1 -c 2 -i 2 54321_8.wav

Encoding PSG samples at 9612Hz
Resampling input wave from 44100Hz to 9612Hz
Viterbi SNR optimization:
   1 input samples per PSG tripplet output
   dt1 = 97  (Normalized: 0.263)
   dt2 = 97  (Normalized: 0.263)
   dt3 = 175  (Normalized: 0.474)
   Resampling using Lagrange interpolation on 11 points
   Using cost function: L2
Processing 100.00%
The cost metric in Viterbi is about 3.044
SNR is about 21.19
Encoding samples for original player

Now i can try the proposed changes for the minimum length!!
i hope i am through now!

:hannibal:

By ericb59

Paragon (1070)

ericb59's picture

26-03-2022, 10:45

Hello,

Is someone was able to compile the encoder on MacOS ?
It compile (with warning), the program seems to work, but it refuse any .WAV file I want to encode. While the same files works on windows pcmenc version.

Any help, or binary share welcome Wink

Page 12/12
5 | 6 | 7 | 8 | 9 | 10 | 11 |