Metadata-Version: 2.2
Name: minBlepy
Version: 43
Summary: MinBLEPs library including fast naive waveform conversion
Home-page: https://github.com/combatopera/minBlepy
Author: Andrzej Cichocki and contributors
Author-email: 3613868+combatopera@users.noreply.github.com
Description-Content-Type: text/markdown
License-File: COPYING
Requires-Dist: lagoon>=21
Requires-Dist: numpy>=2.2.6
Requires-Dist: pyrbo>=19
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: summary

# 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

<a id="minBlepy"></a>

### minBlepy

<a id="minBlepy.floatdtype"></a>

###### floatdtype

Common data type of naive values and digital audio sample points, effectively about 24 bits.

<a id="minBlepy.minblep"></a>

### minBlepy.minblep

<a id="minBlepy.minblep.MinBleps"></a>

#### MinBleps Objects

```python
class MinBleps()
```

<a id="minBlepy.minblep.MinBleps.paste"></a>

###### 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.

