bengl / beatsio Goto Github PK
View Code? Open in Web Editor NEWA web-based live-coding environment for CoffeeScript!
Home Page: http://beats.io
A web-based live-coding environment for CoffeeScript!
Home Page: http://beats.io
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.