                                                   "/js/audio/midi_note_node.js")]}}))
 
 (def midi-cc-node-type
-  (NodeType. {:device {:type :accessor
-                       :name "device"
-                       :default nil
-                       :title "Device"
-                       :data-type :midi-device
-                       :serializable false}
-              :channel {:type :constant
-                        :name "channel"
-                        :default 0
-                        :data-type :number
-                        :range [0 127]
-                        :title "Channel"}}
-             {:value {:type :node
-                      :index 0
-                      :title "Value"
-                      :data-type :param}}
+  (NodeType. {:device (midi-device-accessor-in "device" "Device")
+              :channel (number-constant-in "channel" "Channel" 0 [0 127])}
+             {:value (param-out 0 "Value")}
              {:inspector-fields [:midi-cc-learn]}
              false
              "MIDI CC"

             {:constructor "context.createBiquadFilter()"}))

(def const-source-node-type
  (NodeType. {:value {:type :accessor
                      :name "value"
                      :default 1
                      :title "Value"
                      :data-type :number}}
             {:signal {:type :node
                       :index 0
                       :title "Signal out"
                       :data-type :signal}}
             nil
             false
             "Const"


(def input-node-type
  (NodeType. {}
             {:signal-out (null-out 0 "Signal out")}
             nil
             false
             "Input"
