Giter Site home page Giter Site logo

beatsio's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

beatsio's Issues

make it easy to play a sequence of chords with different durations and volumes

This is a rather big suggestion, but it would be nice if it were easier to enter familiar music patterns and then add elements on top of them. To do this, you would need objects or data structures for holding those patterns, and helper functions for playing them.

Each chord might be specified as [[frequencies], duration, volume], or perhaps an object containing those values as properties. Omitted values would have defaults, so it might reduce to the current syntax in the simple case – frequency is like [[frequency], 1, 1]. Rough sketch of example use:

my_seq = bseq_advanced(['C4', 'A3', ['C4', 0.5], ['D4', 0.5, 0.75], [['G3','B3']]])
player = (chord, duration, volume) ->
  for note in chord
    bcon(bsimple_advanced(note, duration, volume))
bplay_advanced my_seq, player

For example, the third “chord” in my_seq is a single note “C4”, lasting for duration 0.5 (half of normal), with volume 1 (normal volume). Normal duration might be the duration of a quarter note at 120 BPM. Normal volume would not be the maximum volume; it would leave room in the scale for higher volumes.

bsimple_advanced would make the tone last just for the given duration, and play it at the given volume. A graph of the volume envelope of a 5-unit-long note might be “▅███▅”.

The given player variable seems general enough that perhaps bplay_advanced would supply it as a default if no function were given.

allow live collaboration using ShareJS

Copying jbaudanza’s suggestion here, where it can be officially addressed.

I love this! It would be cool to see this integrated with something like share.js so people could collaborate.

http://sharejs.org/

It looks like using ShareJS would require running a Node.js server program on the server – beats.io would not be solely client-side anymore, complicating hosting.

It would also require allowing URLs for “rooms” so people can use Beats.io without messing up someone else’s work. So the main URL would be http://beats.io/##code, and a room URL would be http://beats.io/x3gga/##code. One would have to decide whether the main page would be collaborative or private, and how to get from the main page to the other kind of room.

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.