From 8e91c8dcd48bee7b53c302ca960e0cd0149ec792 Mon Sep 17 00:00:00 2001 From: gursi26 Date: Wed, 13 Mar 2024 21:12:59 -0400 Subject: [PATCH 1/3] update main, cargo.toml --- Cargo.toml | 5 +++-- src/main.rs | 7 +++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index de50b5a..350a2e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,9 +25,10 @@ serde_yaml = "0.9.32" spectrum-analyzer = "1.5.0" stopwatch = "0.0.7" -# [profile.release] +[profile.release] +strip = true +opt-level = 3 # lto = true -# opt-level = 3 # codegen-units = 1 # incremental = false diff --git a/src/main.rs b/src/main.rs index 8fc37bb..1117500 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,10 +33,9 @@ use std::io::BufReader; use std::path::PathBuf; use std::time::Duration; -// TODO : Add to other package managers -// TODO : Add yaml config file for changing default settings -// TODO : Add a button to gui to write current state to config file -// TODO : Add a button to gui to reset to default +// TODO: Add to other package managers +// TODO: Remove fft_fps and other deprecated configs from readme +// TODO: Add intensity rescaling and other options to yaml // Constants const RENDERING_FPS: u32 = 60; From 4783b5e225a406a9d182ae6530b69b16cf892b3d Mon Sep 17 00:00:00 2001 From: gursi26 Date: Wed, 13 Mar 2024 21:14:18 -0400 Subject: [PATCH 2/3] update readme --- README.md | 51 ++++++++++++++++----------------------------------- 1 file changed, 16 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 9f3f38b..45abe61 100644 --- a/README.md +++ b/README.md @@ -42,40 +42,21 @@ Arguments: File path to Audio file Options: - --fft-fps - Temporal resolution for FFT calculation (rendering always occurs at 60 fps with interpolation) [default: 12] - --smoothness - Smoothing factor for spatial interpolation between bars [default: 1] - --freq-resolution - Number of individual frequencies detected by the FFT [default: 90] - --min-freq - Maximum frequency detected by FFT [default: 0] - --max-freq - Minimum frequency detected by FFT [default: 5000] - --volume - Volume [default: 0.7] - --width - Window width [default: 1000] - --height - Window height [default: 700] - --border-size - Border size for each bar [default: 1] - --border-color - Border color for each bar (in hex) [default: 000000] - --bar-color - Color for each bar (in hex) [default: FF0000] - --track-name - Use if you want track name to be printed - --display-gui - Use if you want the gui to be open when launched - --text-color - Color for currently playing text (in hex) [default: FFFFFF] - --font-size - Font size of currently playing label [default: 25] + --smoothness Smoothing factor for spatial interpolation between bars + --freq-resolution Number of individual frequencies detected by the FFT + --min-freq Maximum frequency detected by FFT + --max-freq Minimum frequency detected by FFT + --volume Volume + --width Window width + --height Window height + --border-size Border size for each bar + --border-color Border color for each bar (in hex) + --bar-color Color for each bar (in hex) + --track-name Use if you want track name to be printed + --display-gui Use if you want the gui to be open when launched + --text-color Color for currently playing text (in hex) + --font-size Font size of currently playing label --background-color - [default: 000000] - -h, --help - Print help - -V, --version - Print version + -h, --help Print help + -V, --version Print version ``` From be44cabc0060eee6da45edaf35a29f809d913e8f Mon Sep 17 00:00:00 2001 From: gursi26 <75204369+gursi26@users.noreply.github.com> Date: Wed, 13 Mar 2024 22:15:06 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 45abe61..33dc6b5 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # fftviz A lightweight, customizable FFT visualizer for audio files. Built with Rust + Bevy. -![Screenshot-2024-03-04-at-24620AM](https://github.com/gursi26/fftviz/assets/75204369/9c2d919c-c28c-4021-84dd-64e86d57ae2f) +![Presentation1](https://github.com/gursi26/fftviz/assets/75204369/590f0021-1aa3-44a1-9396-c0daf4af4080) + +![demo](https://github.com/gursi26/fftviz/assets/75204369/9f78622f-705e-499f-a981-7aa110f0b2ca) -![demo](https://github.com/gursi26/fftviz/assets/75204369/93b28c8f-d989-49c0-9ec3-dc3fbf7bb2ca) # Installation