Skip to content

SuperAuguste/dct-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

dct-zig

Calculate those coefficients ๐Ÿ˜Ž๐Ÿ˜Ž

Simply get yourself a headerless signed 8-bit PCM file (Audacity can export to that format ๐Ÿ˜‡), rename it to dct.raw (I didn't include a default dct.raw because the one I have on-hand is copyrighted and also 200kbs), put it in your current working directory (here), and zig build run!

The program will return a list of DCT coefficients! Then, head to this convenient Desmos graph I created and paste the coefficients into the brackets of the K = [ ] line and you should see a snazzy audio signature. You can change the amplitude scale by changing that 100 at the bottom!

About

Discrete Cosine Transform coeff calculation in Zig!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages