zuzu-typ / pywave Goto Github PK
View Code? Open in Web Editor NEWOpen and read Wave files
License: zlib License
Open and read Wave files
License: zlib License
Hi Zuzu-Typ,
Can I ask what your plans are with this mod? There is also a WavFile reader and writer in SciPy (https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.wavfile.read.html) that does part of this. They have a rather large community but change requests can take years. They're also focused on just reading/writing and less on metadata support.
I'd like to add some stuff, notably ChannelMask and speaker layouts, 24-bit support, and normalization support (the latter taken from SciPy.wavfile). My main interest is that I can: read all current formats I have on my harddisk (96Khz/24 bit, 32 bit floating point, 8-32 bit fixed), read and copy all metadata if required for a 100% accurate copy, and display normalized data on a (real time) plot.
If you don't want that, it's cool. But if you agree, I'll add a few pull requests here and there over the coming weeks.
Cheers,
Ronald.
While the seek function does seem to work to navigate around a file, it does not seem to update the data_position pointer. As such PyWave.Tell() provides an incorrect file position.
To recreate..
rb = pw.open(inWav,'r') #open a read only wav file
print("pos = " + str(rb.tell())) # displays "Pos = 0"; good
dat1 = rb.read_samples(10) #read 10 samples
print("pos = " + str(rb.tell())) # displays "Pos = 10"; good
rb.seek(10,1) #skip forward 10 samples
print("pos = " + str(rb.tell())) # displays "Pos = 10"; should display "Pos = 20"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.