mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-08 04:56:43 +00:00
this is a space-optimized implementation of cosine. it's about 12k smaller than core lib's "proper" cosine. Gives about 9 bits amplitude resolution, and divides the waveform into 1024 time positions. Good enough for generating tones on a crappy speaker. Later on if anyone needs to "really" do cosine or sine, we'll have a footgun for them, but...let's hope Rust fixes issue https://github.com/rust-lang/rust/issues/105734 before then, and we can deprecate this library in favor of the mathematically accurate and canonical cosine implementation.
8 lines
173 B
TOML
8 lines
173 B
TOML
[package]
|
|
name = "cos_table"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["bunnie <bunnie@kosagi.com>"]
|
|
description = "Space-optimized cosine table lookup"
|
|
|
|
[dependencies]
|