Giter Site home page Giter Site logo

dronecaster's Introduction

dronecaster

Latest Release

dronecaster

Installation

  1. Install via maiden or clone/download the repo to dust/code.
  2. Restart norns to pickup the SuperCollider Dronecaster engine.
  3. Drone!

Contribute

We need more SynthDefs! Join the discussion on lines: https://l.llllllll.co/dronecaster

dronecaster's People

Contributors

21echoes avatar ambv avatar catfact avatar cfdrake avatar moonblind avatar ryanlaws avatar schollz avatar sixolet avatar synthi avatar taubaland avatar tyleretters avatar wooky avatar xoliul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dronecaster's Issues

'Ruins' leaks resources

in PR #37 , the Routine created in _meta_Ruins.scd is never halted or freed.

the supercollider interpreter environment on norns is not reset between scripts or engine changes. (we like it that way for a couple reasons; e.g. it allows well-behaved scripts/engines to acheive aural continuity.)

therefore it is very important that engines clean up all their allocated resources in their cleanup method. this does not just mean scsynth resources like buffers, groups etc, but also sclang objects that you've created at the top-level scope, or which outlive their scope. (this Routine is both.)

to illustrate the issue, ive created this branch, and added a seed value and a counter to the routine:
https://github.com/catfact/dronecaster/blob/test-leaked-routine/engine/drones/_meta_Ruins.scd#L129-L138

this exposes the issue in the REPL output: every time the dronecaster script is launched, a new instance of the Routine is constructed, which will never be halted or freed until norns undergoes a restart/shutdown. that's not great (yes, in itself the routine does not use a lot of resources, but we dont want an unbounded number of them anyway, and actually OSC traffic bandwidth is a system bottleneck.)

@ambv you have a couple options for fixing this:

  • combine all this stuff into one synthdef. it is doable. Demand is your friend.
  • figure out a mechanism by which your Routine and whatever else in this category is registered with the engine class when your drone starts, so it can be cleaned up when the script is cleared.

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.