Git Product home page Git Product logo

beet.js's People

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

beet.js's Issues

Error when creating a layer

I started experimenting with beet to create a non-euclidean rhythm generator. I'm using the npm version of it inside my vuejs project. And whenever I create a layer from a pattern (as the docs say) I get this error.

Uncaught (in promise) TypeError: can't convert undefined to object
    webworkify beet_js.js:4256
    Metro wa-metro.js:21
    Layer layer.js:10
    js beet_js.js:4549

My code:

import Beet from 'beet.js'

const context = new AudioContext();

const beet = new Beet({
  context: context,
  tempo: 120
});

let pattern = beet.pattern(3, 7);
let layer = beet.layer(pattern, (t) => console.log(t));

Play/Pause beet layer

Hi, first of all thank you for this awesome project <3
There is a way to toggle layer playback?

Using Beet with ReactJS

Hi ... Perhaps this is super obvious, but I'm stuck for sure. Do you have guidelines on how to use Beet.js with React?

Thanks!

Ability to add multiple layers in one call in beet.add

At the moment if you have multiple layers, you will need to call beet.add multiple times.
It would be nice if I could do something like this:

var layer1 = beet.layer(pattern1, cb);
var layer2 = beet.layer(pattern2, cb2);

beet.add(layer1, layer2);
//or
beet.add([layer1, layer2]);

Unexpected behavior

Hi, I don't know if this is a bug, but I found a unexpected behavior
in comparison with other implementations of euclidean rhythm like
https://dbkaplun.github.io/euclidean-rhythm/

When I add two layers A (5,13) and B(3,8), they start and stop in the
same moment. Given the amount of step, they should start together but
while they playing they should "desync", like two cogs with different
sizes, that start together but not aways finish in same time?

Once more thank you for this amazing library.

PS: sorry for my english is not my first language

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.