Giter Club home page Giter Club logo

Comments (3)

TheWispy avatar TheWispy commented on August 9, 2024

You could write a method within the editor which can do it for you. Something like these may do?

mute = (i) => {
  buffers = [o0, o1, o2, o3];
  solid(0,0,0).out(buffers[i]);
}

hush = () => {
  buffers = [o0, o1, o2, o3];
  buffers.map((b) => solid(0,0,0).out(b));
}

If you alt+Enter to initialise them, you can then call them with hush() or mute(2).

from hydra.

ojack avatar ojack commented on August 9, 2024

yes @TheWispy this is great and would be great to add to hydra-synth if you want to send a pull request!
the only thing would be to use the internal array of output buffers in case there are more or less than four.
Another thing I have been wondering is whether it makes sense to add other resets (such as deactivating source buffers and resetting audio settings) within this function or create another one. there should probably be another function that "restarts" hydra... whereas mute or hush is just for blacking out the screen. What do you think?

from hydra.

rfpuyana avatar rfpuyana commented on August 9, 2024

hush() is already implemented.

from hydra.

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.