2021-02-16 22:44:31 +01:00
|
|
|
// definitions for the FFT
|
|
|
|
pub const BLOCK_LEN: usize = 512;
|
|
|
|
pub const SAMP_RATE: f32 = 48000.0;
|
2021-02-19 23:26:28 +01:00
|
|
|
|
|
|
|
// samples read from stdin per update
|
|
|
|
pub const SAMPLES_PER_UPDATE: usize = BLOCK_LEN/2;
|
2021-02-19 23:29:52 +01:00
|
|
|
|
|
|
|
// LED configuration
|
|
|
|
pub const NUM_STRIPS: usize = 8;
|
|
|
|
pub const NUM_LEDS_PER_STRIP: usize = 16;
|
|
|
|
|
|
|
|
pub const NUM_LEDS_TOTAL: usize = NUM_STRIPS * NUM_LEDS_PER_STRIP;
|
2021-02-22 23:24:32 +01:00
|
|
|
|
|
|
|
// network configuration
|
|
|
|
pub const UDP_SERVER_ADDR: &str = "192.168.23.118:2703";
|
2021-04-09 17:38:42 +02:00
|
|
|
|
|
|
|
pub const FPS_ANIMATION: f32 = SAMP_RATE / SAMPLES_PER_UPDATE as f32;
|
|
|
|
pub const FPS_LEDS: f32 = 60.0;
|