simple-dsp
所属分类:通讯编程
开发工具:Haskell
文件大小:0KB
下载次数:0
上传日期:2023-07-03 16:12:31
上 传 者:
sh-1993
说明: 一个简单的数字信号处理器,
(A simple digital signal processor,)
文件列表:
CHANGELOG.md (0, 2023-09-08)
LICENSE (11357, 2023-09-08)
app/ (0, 2023-09-08)
app/Player.hs (9082, 2023-09-08)
bin/ (0, 2023-09-08)
bin/run-tests (516, 2023-09-08)
bin/weeder.dhall (115, 2023-09-08)
flake.lock (1109, 2023-09-08)
flake.nix (1486, 2023-09-08)
simple-dsp.cabal (1628, 2023-09-08)
src/ (0, 2023-09-08)
src/SimpleDSP/ (0, 2023-09-08)
src/SimpleDSP/GUI.hs (4312, 2023-09-08)
src/SimpleDSP/IIR.hs (2935, 2023-09-08)
src/SimpleDSP/IO.hs (1250, 2023-09-08)
src/SimpleDSP/Samples.hs (346, 2023-09-08)
test/ (0, 2023-09-08)
test/Spec.hs (55, 2023-09-08)
# simple-dsp
This library provides DSP primitives along with a simple audio player.
## Overview and scope
The goal of simple-dsp is to implement IIR filters for sound processing, for example, to remove the low frequencies from an input sound.
Learning resources:
- https://ocw.mit.edu/courses/6-003-signals-and-systems-fall-2011/ (complete)
- https://dspguru.com/dsp/howtos/implement-iir-filters/ (presentation)
- https://en.wikipedia.org/wiki/Digital_biquad_filter (reference)
## Usage
Use the [SimpleDSP.IIR](https://github.com/TristanCacqueray/simple-dsp/blob/master/./src/SimpleDSP/IIR.hs) in your application.
Start the audio player by passing a sound file:
```ShellSession
cabal run -O0 exe:simple-dsp-player -- ~/86quantoc.flac
```
![simple-dsp](https://github.com/TristanCacqueray/simple-dsp/blob/master/https://github.com/TristanCacqueray/simple-dsp/assets/154392/409f1e3d-57db-4e5f-9e08-60aeea9887df)
## SDL_GL_CreateContext error and nix
If the program fails with:
```ShellSession
simple-dsp-player: SDLCallFailed {sdlExceptionCaller = "SDL.Video.glCreateContext", sdlFunction = "SDL_GL_CreateContext", sdlExceptionError = "Invalid window"}
```
You need to use `nixGL`. To install the right version (see hspkgs input to match the nixpkgs pin):
```ShellSession
nix profile install --override-input nixpkgs github:NixOS/nixpkgs/22c5bd85d8478e24874ff2b80875506f5c3711a6 --impure github:guibou/nixGL
```
Then run:
```ShellSession
nixGL cabal run exe:simple-dsp-player -- $SOUND_FILE_PATH
```
近期下载者:
相关文件:
收藏者: