This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
from typing import NamedTuple, cast | |
from typing_extensions import Self | |
import enum | |
import io | |
import subprocess | |
import shlex | |
from fractions import Fraction | |
from contextlib import contextmanager |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double NINF = Double.NEGATIVE_INFINITY; | |
class AudioMeter { | |
double[] rmsDbfs, rmsDbu, peakDbfs, peakDbu, peakAmp; | |
int sampleRate, nChannels, blockSize, stride; | |
float avgTime = .1; | |
int[] bufferLength; | |
//float[] ticks = {0, -6, -12, -18, -24, -36, -48, -60, -90, -140}; | |
float[] ticks = {0, -10, -20, -30, -40, -50, -60, -70}; | |
float maxTick = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
ipython = "*" | |
numpy = "*" | |
pyrtlsdr = {ref = "rtlsdrlib-integration", git = "https://github.com/pyrtlsdr/pyrtlsdr.git"} | |
pyrtlsdrlib = {ref = "main", git = "https://github.com/pyrtlsdr/pyrtlsdrlib.git"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import typing as tp | |
import enum | |
from dataclasses import dataclass | |
import json | |
from bs4 import BeautifulSoup | |
import requests | |
import click |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
"""Utilities for parsing and manipulating Primitive Root Diffuser results from | |
http://www.oliverprime.com/prd/ | |
""" | |
import argparse | |
from pathlib import Path | |
import dataclasses | |
from dataclasses import dataclass, field | |
from typing import Union, List, Tuple, Dict, Optional | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
from loguru import logger | |
import os | |
from pathlib import Path | |
import shlex | |
import subprocess | |
import tempfile | |
import shutil | |
import argparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib | |
# matplotlib.use('Qt5Agg') | |
import matplotlib.pyplot as plt | |
from matplotlib.widgets import MultiCursor as _MultiCursor | |
class MultiCursor(_MultiCursor): | |
"""MultiCursor widget subclass that snaps to plot data | |
Snaps to the nearest x-axis value on mouse-movement. The horizontal lines of |
NewerOlder