mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2025-12-31 17:00:41 +00:00
Nudge version
This commit is contained in:
104
demo.md
104
demo.md
@@ -1,104 +0,0 @@
|
|||||||
|
|
||||||
# `wavinfo` Demonstration
|
|
||||||
|
|
||||||
The entry point for wavinfo is the WavInfoReader class.
|
|
||||||
|
|
||||||
|
|
||||||
```python
|
|
||||||
from wavinfo import WavInfoReader
|
|
||||||
|
|
||||||
path = '../tests/test_files/A101_1.WAV'
|
|
||||||
|
|
||||||
info = WavInfoReader(path)
|
|
||||||
```
|
|
||||||
|
|
||||||
## Basic WAV Data
|
|
||||||
|
|
||||||
The length of the file in frames (interleaved samples) and bytes is available, as is the contents of the format chunk.
|
|
||||||
|
|
||||||
|
|
||||||
```python
|
|
||||||
(info.data.frame_count, info.data.byte_count)
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(240239, 1441434)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```python
|
|
||||||
(info.fmt.sample_rate, info.fmt.channel_count, info.fmt.block_align, info.fmt.bits_per_sample)
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(48000, 2, 6, 24)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Broadcast WAV Extension
|
|
||||||
|
|
||||||
|
|
||||||
```python
|
|
||||||
print(info.bext.description)
|
|
||||||
print("----------")
|
|
||||||
print("Originator:", info.bext.originator)
|
|
||||||
print("Originator Ref:", info.bext.originator_ref)
|
|
||||||
print("Originator Date:", info.bext.originator_date)
|
|
||||||
print("Originator Time:", info.bext.originator_time)
|
|
||||||
print("Time Reference:", info.bext.time_reference)
|
|
||||||
print(info.bext.coding_history)
|
|
||||||
```
|
|
||||||
|
|
||||||
sSPEED=023.976-ND
|
|
||||||
sTAKE=1
|
|
||||||
sUBITS=$12311801
|
|
||||||
sSWVER=2.67
|
|
||||||
sPROJECT=BMH
|
|
||||||
sSCENE=A101
|
|
||||||
sFILENAME=A101_1.WAV
|
|
||||||
sTAPE=18Y12M31
|
|
||||||
sTRK1=MKH516 A
|
|
||||||
sTRK2=Boom
|
|
||||||
sNOTE=
|
|
||||||
|
|
||||||
----------
|
|
||||||
Originator: Sound Dev: 702T S#GR1112089007
|
|
||||||
Originator Ref: USSDVGR1112089007124001008206301
|
|
||||||
Originator Date: 2018-12-31
|
|
||||||
Originator Time: 12:40:00
|
|
||||||
Time Reference: 2190940753
|
|
||||||
A=PCM,F=48000,W=24,M=stereo,R=48000,T=2 Ch
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## iXML Production Recorder Metadata
|
|
||||||
|
|
||||||
|
|
||||||
```python
|
|
||||||
print("iXML Project:", info.ixml.project)
|
|
||||||
print("iXML Scene:", info.ixml.scene)
|
|
||||||
print("iXML Take:", info.ixml.take)
|
|
||||||
print("iXML Tape:", info.ixml.tape)
|
|
||||||
print("iXML File Family Name:", info.ixml.family_name)
|
|
||||||
print("iXML File Family UID:", info.ixml.family_uid)
|
|
||||||
```
|
|
||||||
|
|
||||||
iXML Project: BMH
|
|
||||||
iXML Scene: A101
|
|
||||||
iXML Take: 1
|
|
||||||
iXML Tape: 18Y12M31
|
|
||||||
iXML File Family Name: None
|
|
||||||
iXML File Family UID: USSDVGR1112089007124001008206300
|
|
||||||
A=PCM,F=48000,W=24,M=stereo,R=48000,T=2 Ch
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```python
|
|
||||||
|
|
||||||
```
|
|
||||||
2
pypi_upload.sh
Executable file
2
pypi_upload.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
|
||||||
10
setup.py
10
setup.py
@@ -4,15 +4,19 @@ with open("README.md", "r") as fh:
|
|||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
setup(name='wavinfo',
|
setup(name='wavinfo',
|
||||||
version='0.1',
|
version='0.2',
|
||||||
author='Jamie Hardt',
|
author='Jamie Hardt',
|
||||||
author_email='jamiehardt@me.com',
|
author_email='jamiehardt@me.com',
|
||||||
description='WAVE sound file metadata parser.',
|
description='WAVE sound file metadata parser.',
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
url='https://github.com/iluvcapra/wavinfo',
|
url='https://github.com/iluvcapra/wavinfo',
|
||||||
classifiers=['Development Status :: 2 - Pre-Alpha',
|
classifiers=['Development Status :: 4 - Beta',
|
||||||
'License :: OSI Approved :: MIT License',
|
'License :: OSI Approved :: MIT License',
|
||||||
'Topic :: Multimedia',
|
'Topic :: Multimedia',
|
||||||
'Topic :: Multimedia :: Sound/Audio'],
|
'Topic :: Multimedia :: Sound/Audio',
|
||||||
|
"Programming Language :: Python :: 3.4",
|
||||||
|
"Programming Language :: Python :: 3.5",
|
||||||
|
"Programming Language :: Python :: 3.6",
|
||||||
|
"Programming Language :: Python :: 3.7"],
|
||||||
packages=['wavinfo'])
|
packages=['wavinfo'])
|
||||||
|
|||||||
Reference in New Issue
Block a user