samplerate 0.2.0__cp38-cp38-macosx_12_0_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,25 @@
1
+ The MIT License (MIT)
2
+ =====================
3
+
4
+ Copyright © 2017 Tino Wagner
5
+
6
+ Permission is hereby granted, free of charge, to any person
7
+ obtaining a copy of this software and associated documentation
8
+ files (the "Software"), to deal in the Software without
9
+ restriction, including without limitation the rights to use,
10
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the
12
+ Software is furnished to do so, subject to the following
13
+ conditions:
14
+
15
+ The above copyright notice and this permission notice shall be
16
+ included in all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
20
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25
+ OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,123 @@
1
+ Metadata-Version: 2.1
2
+ Name: samplerate
3
+ Version: 0.2.0
4
+ Summary: Monolithic python wrapper for libsamplerate based on pybind11 and NumPy
5
+ Author-email: Robin Scheibler <fakufaku@gmail.com>, Tino Wagner <ich@tinowagner.com>
6
+ License: MIT
7
+ Keywords: samplerate,converter,signal processing,audio
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Environment :: Console
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Scientific/Engineering
16
+ Classifier: Topic :: Multimedia :: Sound/Audio
17
+ Requires-Python: >=3.7
18
+ Description-Content-Type: text/x-rst
19
+ License-File: LICENSE.rst
20
+ Requires-Dist: numpy
21
+
22
+ python-samplerate
23
+ =================
24
+
25
+ .. image:: https://img.shields.io/pypi/v/samplerate.svg
26
+ :target: https://pypi.python.org/pypi/samplerate
27
+
28
+ .. image:: https://img.shields.io/pypi/l/samplerate.svg
29
+ :target: https://pypi.python.org/pypi/samplerate
30
+
31
+ .. image:: https://img.shields.io/pypi/wheel/samplerate.svg
32
+ :target: https://pypi.python.org/pypi/samplerate
33
+
34
+ .. image:: https://img.shields.io/pypi/pyversions/samplerate.svg
35
+ :target: https://pypi.python.org/pypi/samplerate
36
+
37
+ .. image:: https://readthedocs.org/projects/python-samplerate/badge/?version=latest
38
+ :target: http://python-samplerate.readthedocs.io/en/latest/?badge=latest
39
+ :alt: Documentation Status
40
+
41
+
42
+ This is a wrapper around Erik de Castro Lopo's `libsamplerate`_ (aka Secret
43
+ Rabbit Code) for high-quality sample rate conversion.
44
+
45
+ It implements all three `APIs
46
+ <http://www.mega-nerd.com/libsamplerate/api.html>`_ available in
47
+ `libsamplerate`_:
48
+
49
+ * **Simple API**: for resampling a large chunk of data with a single library
50
+ call
51
+ * **Full API**: for obtaining the resampled signal from successive chunks of
52
+ data
53
+ * **Callback API**: like Full API, but input samples are provided by a callback
54
+ function
55
+
56
+ The `libsamplerate`_ library is statically built together with the python bindings
57
+ using `pybind11 <https://github.com/pybind/pybind11/>`_.
58
+
59
+
60
+ Installation
61
+ ------------
62
+
63
+ $ pip install samplerate
64
+
65
+ Binary wheels of `libsamplerate`_ for macOS and Windows (64 bit) are available.
66
+ For other systems, a C++ 14 or above compiler is required to build the package.
67
+
68
+
69
+ Usage
70
+ -----
71
+
72
+ .. code-block:: python
73
+
74
+ import numpy as np
75
+ import samplerate
76
+
77
+ # Synthesize data
78
+ fs = 1000.
79
+ t = np.arange(fs * 2) / fs
80
+ input_data = np.sin(2 * np.pi * 5 * t)
81
+
82
+ # Simple API
83
+ ratio = 1.5
84
+ converter = 'sinc_best' # or 'sinc_fastest', ...
85
+ output_data_simple = samplerate.resample(input_data, ratio, converter)
86
+
87
+ # Full API
88
+ resampler = samplerate.Resampler(converter, channels=1)
89
+ output_data_full = resampler.process(input_data, ratio, end_of_input=True)
90
+
91
+ # The result is the same for both APIs.
92
+ assert np.allclose(output_data_simple, output_data_full)
93
+
94
+ # See `samplerate.CallbackResampler` for the Callback API, or
95
+ # `examples/play_modulation.py` for an example.
96
+
97
+ See ``samplerate.resample``, ``samplerate.Resampler``, and
98
+ ``samplerate.CallbackResampler`` in the API documentation for details.
99
+
100
+
101
+ See also
102
+ --------
103
+
104
+ * `scikits.samplerate <https://pypi.python.org/pypi/scikits.samplerate>`_
105
+ implements only the Simple API and uses `Cython <http://cython.org/>`_ for
106
+ extern calls. The `resample` function of `scikits.samplerate` and this package
107
+ share the same function signature for compatiblity.
108
+
109
+ * `resampy <https://github.com/bmcfee/resampy>`_: sample rate conversion in
110
+ Python + Cython.
111
+
112
+
113
+ License
114
+ -------
115
+
116
+ This project is licensed under the `MIT license
117
+ <https://opensource.org/licenses/MIT>`_.
118
+
119
+ As of version 0.1.9, `libsamplerate`_ is licensed under the `2-clause BSD
120
+ license <https://opensource.org/licenses/BSD-2-Clause>`_.
121
+
122
+
123
+ .. _libsamplerate: http://www.mega-nerd.com/libsamplerate/
@@ -0,0 +1,6 @@
1
+ samplerate.cpython-38-darwin.so,sha256=QXJrdDBvDXEwy0x1AkqE-DlbVeG6G0RxtTUT63mRB88,1741160
2
+ samplerate-0.2.0.dist-info/LICENSE.rst,sha256=Mkl9WQVGlvUEMLz4SQJQAoSHeEyWPG1riOE4nqsmUMs,1099
3
+ samplerate-0.2.0.dist-info/METADATA,sha256=sd8r50CJITuSevawa16pbj6kmcpv_zgaigdyz3A8ADQ,3910
4
+ samplerate-0.2.0.dist-info/WHEEL,sha256=UkJU7GAEhyIKVwGX1j1L5OGjUFT--MirwyCseqfCpZU,109
5
+ samplerate-0.2.0.dist-info/top_level.txt,sha256=D98x79TWV9Q1_HNr1nlmtMWQJTYZfEgMgy76u0CbJxs,11
6
+ samplerate-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.42.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp38-cp38-macosx_12_0_x86_64
5
+
@@ -0,0 +1 @@
1
+ samplerate
Binary file