Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peruibeloko/audiomath
Convert between frequency, pitch, period and digital audio samples.
https://github.com/peruibeloko/audiomath
audio calculator conversion frequency pitch sample-rate utility vue wavelength
Last synced: 9 days ago
JSON representation
Convert between frequency, pitch, period and digital audio samples.
- Host: GitHub
- URL: https://github.com/peruibeloko/audiomath
- Owner: Peruibeloko
- Created: 2021-08-24T21:50:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-29T21:33:17.000Z (6 months ago)
- Last Synced: 2024-06-30T01:07:05.133Z (6 months ago)
- Topics: audio, calculator, conversion, frequency, pitch, sample-rate, utility, vue, wavelength
- Language: Vue
- Homepage: https://peruibeloko.github.io/audiomath/
- Size: 239 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Audiomath
Convert between stuff! Plug one number in and get the others out
- Frequency in Hertz
- Pitch with fine pitch
- Period of a single cycle in milliseconds
- Wavelength of a cycle in meters
- Digital sample count of a single cycle
- **NEW!** Supports different sample rates## Precision Disclaimer
Due to the difference in nature between physical measurements (frequency, wavelength, period and pitch) and digital samples, conversions should take two considerations into account:
1. If your **input** is digital sample count, treat the results as **truncated**. Since there's only a single frequency with a single cycle that perfectly matches an integer sample count, that will be your output frequency.
1. If your **output** is digital sample count, treat the result as **rounded up to the nearest integer**. This is needed to account for the fact that not all single wave cycles fit perfectly inside an integer ammount of digital samples, so it always rounds up to the nearest count that fits.