Giter Club home page Giter Club logo

pywave's People

Contributors

ronaldkunenborg avatar zuzu-typ avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pywave's Issues

seek function does not update self.data_position

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"

Question

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.