Comments (5)
Ciao Paolo (sono Italiano anch'io),
there is already some midi-related code and comments here: https://github.com/davidedc/livecodelab/search?q=midi&unscoped_q=midi
I think the approach there was to go through... a server of some sort? I don't remember, but the code is there (I never used midi to control tempo, I don't have any MIDI devices).
Honestly I don't know much about midi, but I guess the idea is to use some special variables from inside the program, like MIDI_1 MIDI_2, etc., that you can change via MIDI? I'm guessing.
Give it a try and we'll gladly take a look!
from livecodelab.
P.S. I forgot - the video is very cool, I watched it a couple of times with headphones and I found it to be very well made!
from livecodelab.
Ciao :) grazie. Comunque LCL e' una figata, props.
Anyway, I made a simple launchpad PoC using
launchpad-webmidi.
I'm not a web guy by any means, so I just hacked together some js.
This also includes an additional dependency so probably you don't want to upstream it.
Anyway, I opened a PR just in case.
Any feedback is very welcome :)
from livecodelab.
thanks 🙏 !
if I had one of these and I had a consistent practice then I'd merge this and make sure it keeps working over time...
please let us know in here when you make a video and show us how it works!
from livecodelab.
The code was pretty simple. I just added two functions:
lps(y, x)
that returns the LaunchPad State of the button at the given positionlpd(y, x)
that returns 0/1 if the button is currently down
the difference between the two is that one is stateful and the other is not. In other words, lpd
gives the current value, while lps
alternates between 0 and 1 at every button-down event.
I integrated it with my previous box thingie and it works nice imho :)
EDIT: using (y, x)
coordinates was dumb given how LCL works, but I'll fix it.
from livecodelab.
Related Issues (20)
- backgroundViaCanvas in BackgroundPainter HOT 5
- animation loop, request animation frame and forcing timeouts HOT 6
- Use a monospaced font HOT 2
- axes HOT 2
- Implementing thick lines (and renaming "stroke" to skeleton?) HOT 4
- labels HOT 5
- documentation HOT 14
- Syntax for inlining of function calls HOT 2
- bpm without arguments sends audio system in crazy spin
- Build problems... 'Local Npm module "grunt-contrib-copy" (and others) not found.' HOT 7
- comments in live lang V2
- Investigate Electron for building an LCL desktop app HOT 3
- Switch from coffee script to ES2015?
- Stroke Size broken on IE11 HOT 1
- offline version (at least for Chrome)
- Chrome app (for chromebooks)
- Syntax highlighting of trailing comments backtrack to first slash of line HOT 2
- Add audio beat detection
- Feature request: volume parameter for audio samples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livecodelab.