Deep-Symmetry / beat-link-trigger

Trigger events and automate shows in response to events on Pioneer CDJs
Eclipse Public License 2.0
438 stars 37 forks source link

Problem compiling show beat expressions #137

Closed brunchboy closed 2 years ago

brunchboy commented 2 years ago

Describe the bug Daniel Golle reports: Turns out something is wrong with midi-output for Phrase Beat Triggers in a show, because even just

(midi/midi-note-on midi-output 0 0 0) gives me an Error: Unable to use Beat Expression.

Exceptions and Stack Traces

2022-Jun-24 18:58:08 ERROR [beat-link-trigger.editors:1142] - Problem parsing Beat Expression
                                               java.awt.EventDispatchThread.run     EventDispatchThread.java:   90
                                        java.awt.EventDispatchThread.pumpEvents     EventDispatchThread.java:  101
                                        java.awt.EventDispatchThread.pumpEvents     EventDispatchThread.java:  109
                            java.awt.EventDispatchThread.pumpEventsForHierarchy     EventDispatchThread.java:  113
                               java.awt.EventDispatchThread.pumpEventsForFilter     EventDispatchThread.java:  124
                            java.awt.EventDispatchThread.pumpOneEventForFilters     EventDispatchThread.java:  203
                                              java.awt.EventQueue.dispatchEvent              EventQueue.java:  744
  java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege        ProtectionDomain.java:   86
                                    java.security.AccessController.doPrivileged        AccessController.java:  399
                                                      java.awt.EventQueue$5.run              EventQueue.java:  745
                                                      java.awt.EventQueue$5.run              EventQueue.java:  747
  java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege        ProtectionDomain.java:   97
  java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege        ProtectionDomain.java:   86
                                    java.security.AccessController.doPrivileged        AccessController.java:  399
                                                      java.awt.EventQueue$4.run              EventQueue.java:  714
                                                      java.awt.EventQueue$4.run              EventQueue.java:  720
                                          java.awt.EventQueue.dispatchEventImpl              EventQueue.java:  775
                                               java.awt.Component.dispatchEvent               Component.java: 4823
                                              java.awt.Window.dispatchEventImpl                  Window.java: 2780
                                           java.awt.Container.dispatchEventImpl               Container.java: 2310
                                   java.awt.LightweightDispatcher.dispatchEvent               Container.java: 4516
                               java.awt.LightweightDispatcher.processMouseEvent               Container.java: 4575
                              java.awt.LightweightDispatcher.retargetMouseEvent               Container.java: 4948
                                               java.awt.Component.dispatchEvent               Component.java: 4823
                                           java.awt.Container.dispatchEventImpl               Container.java: 2324
                                           java.awt.Component.dispatchEventImpl               Component.java: 4991
                                                java.awt.Container.processEvent               Container.java: 2266
                                                java.awt.Component.processEvent               Component.java: 6381
                                       javax.swing.JComponent.processMouseEvent              JComponent.java: 3398
                                           java.awt.Component.processMouseEvent               Component.java: 6616
org.pushingpixels.substance.internal.utils.RolloverButtonListener.mouseReleased  RolloverButtonListener.java:  108
                       javax.swing.plaf.basic.BasicButtonListener.mouseReleased     BasicButtonListener.java:  279
                                      javax.swing.DefaultButtonModel.setPressed      DefaultButtonModel.java:  262
                             javax.swing.DefaultButtonModel.fireActionPerformed      DefaultButtonModel.java:  405
                             javax.swing.AbstractButton$Handler.actionPerformed          AbstractButton.java: 2313
                                 javax.swing.AbstractButton.fireActionPerformed          AbstractButton.java: 1972
        seesaw.action.proxy$javax.swing.AbstractAction$ff19274a.actionPerformed
                                                        seesaw.action/action/fn                   action.clj:   90
                               beat-link-trigger.editors/build-update-action/fn                  editors.clj: 1459
                    beat-link-trigger.editors/create-show-editor-window/save-fn                  editors.clj: 1629
                               beat-link-trigger.editors/update-show-expression                  editors.clj: 1106
                            beat-link-trigger.editors/update-show-expression/fn                  editors.clj: 1110
                            beat-link-trigger.expressions/build-user-expression              expressions.clj:  454
                                                              clojure.core/eval                     core.clj: 3215
                                                                            ...
             java.lang.RuntimeException: Unable to resolve symbol: show in this context
clojure.lang.Compiler$CompilerException: Syntax error compiling at (416:25).
    data: {:clojure.error/phase :compile-syntax-check,
           :clojure.error/line 416,
           :clojure.error/column 25,
           :clojure.error/source "NO_SOURCE_PATH"}