Commit 7d3e4971 authored by Brandon Invergo's avatar Brandon Invergo

Remove unnecessary "midi" prefix to variables and function

names in preference to adding prefixes via the module system as necessary.
parent b7817bd7
......@@ -14,10 +14,10 @@
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
(define-module (librekontrol midi)
:export (midi-notes
midi-note->number
midi-controls
midi-control->number))
:export (notes
note->number
controls
control->number))
(use-modules (rnrs enums))
(define notes '("c" "c#" "d" "d#" "e" "f" "f#" "g" "g#" "a" "a#" "b"))
......@@ -36,8 +36,8 @@
(cons (construct-note-name i)
(construct-note-names (+ i 1))))))
(define midi-notes (make-enumeration (construct-note-names 0)))
(define midi-note->number (enum-set-indexer midi-notes))
(define notes (make-enumeration (construct-note-names 0)))
(define note->number (enum-set-indexer notes))
(define controls '(bank-select
mod-wheel
......@@ -167,5 +167,5 @@
omni-mode-on
mono-mode-on
poly-mode-on))
(define midi-controls (make-enumeration controls))
(define midi-control->number (enum-set-indexer midi-controls))
(define controls (make-enumeration controls))
(define control->number (enum-set-indexer controls))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment