Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 11 03:19

    brunchboy on master

    Update to link to netlify hoste… (compare)

  • Jun 11 03:01

    brunchboy on master

    Update doc readme to reflect us… (compare)

  • Jun 10 21:40

    brunchboy on master

    Fix typo in function name. (compare)

  • Jun 10 21:18

    brunchboy on master

    Remove insecure HTTP link, than… Try simplifying API doc path, u… (compare)

  • Jun 10 20:48

    brunchboy on master

    Working on netlify doc build. (compare)

  • Jun 10 20:27

    brunchboy on master

    Update Clojure version. Update Codox version. Try setting up Netlify build fo… (compare)

  • May 27 18:14
    brunchboy edited #70
  • May 27 18:12
    brunchboy edited #70
  • May 27 18:12
    brunchboy labeled #70
  • May 27 18:12
    brunchboy opened #70
  • May 22 05:21
    brunchboy closed #69
  • May 22 05:21

    brunchboy on master

    Update jquery.mincolors color p… Start wedding reception show. (compare)

  • May 22 01:44
    brunchboy opened #69
  • May 22 01:42
    brunchboy closed #23
  • May 22 01:41
    brunchboy closed #65
  • Apr 29 21:08

    brunchboy on master

    Fix more broken images due to w… (compare)

  • Apr 29 21:03

    brunchboy on master

    Fix more broken images due to w… (compare)

  • Apr 29 20:56

    brunchboy on master

    Try without line break? (Older … (compare)

  • Apr 29 20:53

    brunchboy on master

    Fix image macro with comma in a… (compare)

  • Apr 29 07:07

    brunchboy on master

    Make guide base URL independent… (compare)

Benjamin Gudehus
@hastebrot
Nice, I'll check it out tomorrow. It's very late here (my timezone is europe/berlin).
James Elliott
@brunchboy
Yes, I had noticed you were in Germany. Are you actually in Berlin? I have visited that city a few times, but too briefly.
Benjamin Gudehus
@hastebrot
I live 300 kilometers west of Berlin in Hannover.
James Elliott
@brunchboy
(My timezone is US/Chicago, I am in Madison, a medium-sized University town and the capital of Wisconsin. Many German influences here, and the countryside reminds me a lot of East Germany.)
I have not visited Hannover, but would like to someday. For now, good night!
Benjamin Gudehus
@hastebrot
See you.
James Elliott
@brunchboy
All right, since your Mk2 has already arrived, I stayed up late tonight to try implementing support for it. As I hoped, it was very much a mix between the Mini and Pro, with Mini-style round buttons, and Pro-style LED colors. There were a few other differences, but it was not that difficult, especially since I have done so many of these recently.
James Elliott
@brunchboy

I have not updated the documentation yet (other than the generated API docs), but once you have called (use-sample-show) you should be able to:

(require '[afterglow.controllers.launchpad-mk2 :as mk2])
(def mk2-watcher (mk2/auto-bind *show*))

And then whenever you connect your Mk2 after that (or if it was already connected), Afterglow should see it and start up the interface on it. To shut down the watcher as well as the controller binding:

(mk2/deactivate mk2-watcher)

Since I could not test this, chances are quite high I messed something up, but we should be able to debug it jointly, hopefully fairly quickly!

I don't know if there are labels (or stickers) for the top row of round buttons, but they are mapped as (↑) (↓) (←) (→) (tap-tempo) (shift) (user) (stop)

Benjamin Gudehus
@hastebrot
It showed the animation and ended with three round buttons lit (user1, user2, mixer).
So you reuse the Pro keymap and set (stop) for the "Mixer" button?
Benjamin Gudehus
@hastebrot
Ahh, I see they are defined in (def control-buttons ...).
Benjamin Gudehus
@hastebrot
Does mk2-watcher contain the :controller key I need for instance for mk2/show-round-buttons and mk2/set-pad-color?
Benjamin Gudehus
@hastebrot
I tried this:
(mk2/set-pad-color (mk2-watcher :controller) 1 2 (create-color 128))
James Elliott
@brunchboy
It sounds like you don’t have any cues present, which (use-sample-show) should have set up for you, there should be four pages of them to scroll through. I can’t quite use the Pro map, because some of those buttons are down the left side, which don’t exist on the Mk2.
The watcher does contain the controller object, but while the controller is running, you won’t be able to visibly affect the pad colors, because they are getting updated with current cue status fifteen times per second.
Benjamin Gudehus
@hastebrot
Do I understand correctly, I should have a list of selectable cues when I run auto-bind *show*?
James Elliott
@brunchboy
Sorry! I am running between events and misinformed you. Call (make-cues) to create them. I almost always call use-push which does that for me.
Home soon with better connectivity.
James Elliott
@brunchboy
The function make-cues in the examples namespace creates a bunch of example cues in the sample show. They should show up on your Launchpad, and verify that the cue coloring and control features are working. You can see the corresponding cues in the web UI if you call (core/start-web-server 16000 true) and click on the Sample Show link, and you should be able to tie the web interface to your Launchpad so they scroll each other using the Linked controller menu which appears below the web cue grid when your Mk2 binding is active.
The cues and the sample show themselves won’t be much use to you beyond examples and early testing; when you want to start working with your actual lights, we’ll need to work on creating fixture definitions for them, put them into your own show that works with an OLA universe you set up, and create cues that work with those. At that point, you will probably want to create your own Leiningen project which uses Afterglow as a dependency, rather than working in the checkout of Afterglow itself. This is described in the Getting Started section of the online documentation. But for testing whether the Mk2 mapping works, the Afterglow checkout, sample show, and make-cues are great.
Benjamin Gudehus
@hastebrot
So there is a lot wrong with the led positions.
James Elliott
@brunchboy
That will be easy to fix, can you describe what is wrong?
(And you are up late again! :grin: )
Benjamin Gudehus
@hastebrot
Using 1:1 as top-left and 8:8 as bottom right. Row 3 is empty, but 3:8 is cyan.
James Elliott
@brunchboy
Hmm, none of the rows should be empty, unless it has scrolled. Do you have the web page up to compare? For reference, in Afterglow, [0,0] is at the bottom left, and cues go up and to the right.
Are there any errors in logs/afterglow.log?
(Not sure if you can also access it without Google account)
This is better (was missing the function buttons): https://drive.google.com/file/d/0B3BCleLtO5vHeVhlMDctb19iTDQ/view?usp=sharing
James Elliott
@brunchboy
I do have a Google account, but don’t know if that was necessary. Anyway, thanks, that is very helpful. And strange.
Those colors are definitely wrong. Let me take another look at the programmer reference.
Do the arrows work to scroll you around?
Benjamin Gudehus
@hastebrot
Yes, I can scroll one page up and right.
James Elliott
@brunchboy
And given that your function buttons actually have dedicated labels, I probably want to move some of my mappings to the right side.
Cool, so that is working at least.
None of the colors are right.
Benjamin Gudehus
@hastebrot
All buttons in row 8 flicker. Which is wrong. Rows 2 and 7 are right with flickering.
James Elliott
@brunchboy
All of them? Or just the first six? Those are supposed to strobe twice per beat, like the web UI does, to reflect the fact that they are strobes.
Oh!
Found one problem, the SysEx starts differently. Pushing a fix momentarily.
Benjamin Gudehus
@hastebrot

Are there any errors in logs/afterglow.log?

I'll delete all old logs and restart the show.

James Elliott
@brunchboy
No need to restart.
Deleting the log is enough, it will be recreated if something happens.
Oh, if you start the show (by pressing Start in the web UI or the Stop button on the controller) and don’t have a Universe 1 configured in OLA (and olad running), there will be a ton of errors about that.
Benjamin Gudehus
@hastebrot
The first six in row 2 flickr (similar to the webpage).
James Elliott
@brunchboy
Rats, I was wrong about what I thought was an error, I was just looking at the wrong line in the manual. The SysEx seems to be what the manual says it should be.
(This is line 88 in launchpad_mk2.clj and the middle of Page 12 in the Programmer Reference.)
Benjamin Gudehus
@hastebrot

Pressing "Start" in the web UI results in showing this error:

Unable to write UpdateDmxData message to OLA: Cannot connect, is it running?

I've installed OLA, but I think it doesn't run.
James Elliott
@brunchboy
You may be right. We can troubleshoot that another time.