From 79a36407fa9235f85a3c77f8565682a74de647aa Mon Sep 17 00:00:00 2001 From: Ryan Suchocki Date: Wed, 21 Dec 2022 23:40:22 +0000 Subject: [PATCH] Untrack panpi.cfg --- .gitignore | 1 + README.md | 5 +++-- panpi.cfg => panpi.cfg.template | 9 ++++---- src/template.cfg | 37 --------------------------------- 4 files changed, 9 insertions(+), 43 deletions(-) rename panpi.cfg => panpi.cfg.template (93%) delete mode 100644 src/template.cfg diff --git a/.gitignore b/.gitignore index 2af972e..9ae7e25 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ panpi_sim .vscode gmon.out prof_output +panpi.cfg *.d *.o diff --git a/README.md b/README.md index e74b6ab..ae176ad 100644 --- a/README.md +++ b/README.md @@ -97,8 +97,9 @@ After rebooting, I was able to verify that the display driver was loaded by disp 1. `$ git clone git@github.com:ryansuchocki/panpi.git --recurse-submodules` 2. `$ cd panpi` 3. `$ make` -4. Customise `panpi.cfg` (see below) -5. `$ ./panpi` +4. `$ cp panpi.cfg.template panpi.cfg` +5. Customise `panpi.cfg` (see below) +6. `$ ./panpi` ## Configuration diff --git a/panpi.cfg b/panpi.cfg.template similarity index 93% rename from panpi.cfg rename to panpi.cfg.template index 5ab07b1..0e4be97 100644 --- a/panpi.cfg +++ b/panpi.cfg.template @@ -2,6 +2,7 @@ # Source type selection. Should be 'soundcard' or 'file' source: soundcard +# source: file # Device selection (only applies if the source type is 'soundcard') # May be an ALSA identifier string (such as 'hw:1,0' or 'default) @@ -10,14 +11,14 @@ source: soundcard # device: auto # Source file path (only applies if the source type is 'file') -file: test/1min.dat +file: /dev/urandom # Capture sample rate sample_rate: 96000 # Set to 'true' to render to an X11 window rather than direct # to the framebuffer -# x_window: true +x_window: true # Capture gain level capture_gain: 1.0 @@ -27,8 +28,8 @@ dc_alpha: 0.999 # Upper and lower reference levels for the spectrogram and # waterfall display. Use this to "zoom in/out" vertically. -refl: 8.0 -refh: 18.0 +refh: -20 +refl: -120 # Smoothing factors for the spectrogram display sgam_spread: 1 diff --git a/src/template.cfg b/src/template.cfg deleted file mode 100644 index f6a62a9..0000000 --- a/src/template.cfg +++ /dev/null @@ -1,37 +0,0 @@ - -x_window: true -# Source type selection. Should be 'soundcard' or 'file' -# source: soundcard -source: file - -# Device selection (only applies if the source type is 'soundcard') -# May be an ALSA identifier string (such as 'hw:1,0' or 'default) -# or the word 'auto', in which case PanPI tries to select the first -# available sound card which looks like an external (USB) one. -# device: auto - -# Source file path (only applies if the source type is 'file') -file: test/1min.dat - -# Capture sample rate -sample_rate: 96000 - -# Capture gain level -capture_gain: 1.0 - -# Sharpness parameter for the DSP "DC offset" removal filter -dc_alpha: 0.999 - -# Upper and lower reference levels for the spectrogram and -# waterfall display. Use this to "zoom in/out" vertically. -refl: 8.0 -refh: 18.0 - -# Smoothing factors for the spectrogram display -sgam_spread: 1 -sgam_drag: 0.9 - -# Vertical scrolling speed divisor for the waterfall display -# The larger this number, the slower the waterfall moves and -# thus the larger the time period on display at once. -wfall_zoom: 5