Coder Social home page Coder Social logo

Comments (5)

davidedc avatar davidedc commented on June 11, 2024

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.

davidedc avatar davidedc commented on June 11, 2024

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.

thebabush avatar thebabush commented on June 11, 2024

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 :)

#322

from livecodelab.

davidedc avatar davidedc commented on June 11, 2024

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.

thebabush avatar thebabush commented on June 11, 2024

Test video

The code was pretty simple. I just added two functions:

  • lps(y, x) that returns the LaunchPad State of the button at the given position
  • lpd(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)

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.