Replies: 6 comments 8 replies
-
Ok, thank you do much this will be really useful! |
Beta Was this translation helpful? Give feedback.
-
Hi, when using inspect, I realised it loads a script called index.6976356c.js (https://launchchess.com/index.6976356c.js). I have remade all the code that needed docker to no longer need it but just wanted to know how I could still make it generate that file. Thanks in advance, |
Beta Was this translation helpful? Give feedback.
-
Hi @mrharpo, I have just finished rewriting the oauth for the backend and the parceljs is still giving me errors. The local mode and online mode both have the issue. Parceljs is not bundling it correctly for some reason and gives the error:
I know that it is something that I have done wrong as if I just copy the bundled files you are using it all works. Thanks in advance, |
Beta Was this translation helpful? Give feedback.
-
@mrharpo ^ |
Beta Was this translation helpful? Give feedback.
-
Hi, @mrharpo Yes, I have installed all dependencies and I rewrote the code in NodeJS so it no longer uses docker. I know the issue is with chess.js and when I look at its src it defines SQUARES but then it is undefined. Here is the version that I rewrote (This could take up to 15secs to load the page as I am using replit): https://launchchess-1.crazyh.repl.co |
Beta Was this translation helpful? Give feedback.
-
This is what i saw when looking in console: Where it has chess: $75c179ea5d911d9c$export$a4d6ea685c300d39 is the chess.js class which doesn't seem to have SQUARES but it exports the value in the src it exported but not in the class chess so I know how to fix it but just wondering which way to. I could edit the module or I could edit the frontend js
|
Beta Was this translation helpful? Give feedback.
-
Launchpad
The Novation Launchpad is a USB class compliant MIDI device, just like a digital piano, or drum pad, but with lights and some fancy features under the hood.
Versions
There are 3 generations of Launchpads, the earlier ones do not have as many features as the later ones, but they all share the same basic protocol for sending and receiving data, and they can all be used for this project.
Earliest versions (original Launchpad, LaunchpadS) have a very reduced feature set, but still communicate in the same general way.
Language
Python
The simplest approach is sending the MIDI commands with Python.
For a simple, but fully fledged example, see launchchess-python.
I also use Launchpads for music control. A more complicated example of Launchpad operation can be found in the Holophonor project.
Javascript
In order to make a MIDI webapp (like launchchess.com), the control logic needs to run in a browser, which can only run Javascript.
This repository is designed as a simple webapp (served by Python), to allow a browser to interact with the Launchpad as a chess board, using most modern browsers.
Protocol
The best way to become familiar with the features and protocols of any Launchpad is with its Programmer's Reference Guide for your specific device.
These are available at https://downloads.novationmusic.com/novation
Beta Was this translation helpful? Give feedback.
All reactions