https://github.com/combatopera/minblepy
MinBLEPs library including fast naive waveform conversion
https://github.com/combatopera/minblepy
Last synced: about 1 year ago
JSON representation
MinBLEPs library including fast naive waveform conversion
- Host: GitHub
- URL: https://github.com/combatopera/minblepy
- Owner: combatopera
- License: gpl-3.0
- Created: 2018-03-02T00:56:49.000Z (over 8 years ago)
- Default Branch: trunk
- Last Pushed: 2025-01-28T22:10:56.000Z (over 1 year ago)
- Last Synced: 2025-04-15T05:35:24.192Z (about 1 year ago)
- Language: Python
- Size: 62.5 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# minBlepy
MinBLEPs library including fast naive waveform conversion.
## Install
These are generic installation instructions.
### To use, disposably
Install the current release from PyPI to a virtual environment:
```
python3 -m venv venvname
venvname/bin/pip install -U pip
venvname/bin/pip install minBlepy
. venvname/bin/activate
```
### To use, permanently
```
pip3 install --break-system-packages --user minBlepy
```
See `~/.local/bin` for executables.
### To develop
First install venvpool to get the `motivate` command:
```
pip3 install --break-system-packages --user venvpool
```
Get codebase and install executables:
```
git clone git@github.com:combatopera/minBlepy.git
motivate minBlepy
```
Requirements will be satisfied just in time, using sibling projects with matching .egg-info if any.
## API
### minBlepy
###### floatdtype
Common data type of naive values and digital audio sample points, effectively about 24 bits.
### minBlepy.minblep
#### MinBleps Objects
```python
class MinBleps()
```
###### paste
```python
def paste(naivex, diffbuf, outbuf)
```
Add minBLEPs to `outbuf` for the differentiated naive signal block in `diffbuf`.
The first element of `diffbuf` should be the first naive value in the current block minus the last naive value of the previous block.
The `naivex` is the index of the first naive value, modulo `naiverate`.
The `outbuf` must have enough space for overflow of the last possible minBLEP, and should be initialised to the overflow section of the previous `outbuf` and otherwise zero.