## Watch your collections
```python
from syne import pprint
linear = 1, 2, 3, 4, 5
double_dim = (
(1, 2, 3, 4, 5),
(1, 3, 2, 4, 5),
(1, 2, 1, 4, 7),
)
map = {
'a': 2,
3: 'b',
4: 'c',
5: 'e',
7: 'c',
}
pprint(linear)
pprint(double_dim)
pprint(map)
```
## Listen to your collections
TODO
## Coloring of sources to detect defects
TODO
A parenthesis is missing ? A syntax error is raised ?
Invoke syne on your source file, and get the syntax errors highlighted :
python -m syne check-source myfile.py
## soundpoints
```python
from syne import soundpoint
def func():
soundpoint()
soundpoint(duration=.5)
soundpoint()
func()
func()
```
Will play two times the three sounds associated to function func, with a longer middle sound.
The sounds are chosen following a note scale, and based on the stacktrace,
meaning that each calls in function `a` will sound differently between them
and will be the same for second call.
You can change the scale with the options:
```python
from syne import soundpoint
soundpoint.setopt(scale='C2 major')
```
See [examples](examples/soundpoint.py) for more.
### soundpoints as an extension of synepoints
In fact, soundpoints are implemented following the standard interface of Synepoint metaclass,
allowing one to define its own way to work on breakpoints.
# Inspiration sources
- The J language, as described [here](https://prog21.dadgum.com/28.html).
- the expression «a signal, it's musical»
- [the new matplotlib colormap justification](https://www.youtube.com/watch?v=xAoljeRJ3lU)
- [the story of the sound-based dial server debugging]()
# Requirements
- [magwitch](https://github.com/aluriak/magwitch)
- [musthe](https://github.com/gciruelos/musthe), for music theory (see soundpoint)
- [midi](https://github.com/vishnubob/python-midi)
- [music21](http://web.mit.edu/music21/), for music theory (alternative to previous two ?)
- [PyAudio](http://people.csail.mit.edu/hubert/pyaudio/), access to audio
- [pyglet](https://bitbucket.org/pyglet/pyglet/wiki/Home), for colored view of collections
- [numpy]() to implement some computation operations
- [pytest](https://pytest.org) for testing
To install them all, `pip install -r requirements.txt`.
Metadata
Release files for syne 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| syne-0.0.1.tar.gz | 5.1 kB | Without provenance | Details for syne-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| syne-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for syne-0.0.1-py3-none-any.whl |
Total release size: 11.2 kB
Release files / syne-0.0.1.tar.gz
| Download URL | syne-0.0.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec965c6144961452434bf4a79fca9a53ef0fe4c514952812b8e85d453fd54f44
|
|
BLAKE2b-256 checksum How to use checksums |
0cbe59409534d26b0c7fb49c3e0fac3a79413e00c0802bcb175b0a09d01e4e94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
|
Release files / syne-0.0.1-py3-none-any.whl
| Download URL | syne-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
529f5cdcb6fa2f6fea877f2617026fe6276ebf3d9d2ad81f29721d14f096cc3d
|
|
BLAKE2b-256 checksum How to use checksums |
aba8beed4c43f10ce9542c57aa9402b9da54416d3b446b740466f6367fddb358
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
|
Security for syne 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.