Git Product home page Git Product logo

Comments (4)

markcosmic avatar markcosmic commented on September 17, 2024

No takers? Oh well thanks anyway

from minim.

ddf avatar ddf commented on September 17, 2024

Hi, apologies for not responding sooner, I am not really actively maintaining Minim right now, so I don't often check in here. With questions like these you might get a faster response from the community by posting in the Processing forum.

That said, I looked into the code and I believe what's going on is that the version of createRecorder that you are using results in a "streaming" recording being created that records directly to a file that is opened when the recorder is created. The only way to close that file stream is to call save() on the recorder (and you'll also want to call close() on the recording returned from save(). So you'd need to do that before deleting the file. This code is not well written (my fault) and lots of people have had issues with it over the years.

Another option would be to use the version of createRecorder that takes a boolean buffered argument. If buffered is true, then you'll get back a recorder that records into an in-memory array and doesn't actually write to disk until you call save(). So, in that case, if you discard the recorder without ever saving, you won't wind up with open file handles or extra files on disk that you want to delete. But this buffered version may not be appropriate if you are making longer recordings. In particular, the longer that you record, the slower it gets, which is why the streaming version is the default.

from minim.

markcosmic avatar markcosmic commented on September 17, 2024

from minim.

ddf avatar ddf commented on September 17, 2024

Many years ago I had aspirations to do that, but never got around to it.

from minim.

Related Issues (20)

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.