[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Denemo-devel] Scheme question
From: |
Andreas Schneider |
Subject: |
[Denemo-devel] Scheme question |
Date: |
Sat, 25 Oct 2014 20:53:23 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.1.2 |
Trying to write an input filter for my master keyboard, I use the angry
delete as template and, as a first step, want to display the incoming
midi events. This is what I have:
;;; Master keyboard filter
(let ((midi 0)
(command 0)
(bank 0)
(note 0)
(velocity 0)
(loop 0))
(d-InputFilterNames (_ "Master Keyboard MIDI Filter"))
(d-SetMidiCapture #t)
(set! loop (lambda ()
(begin
(set! midi (d-GetMidi))
(set! velocity (bit-extract midi 16 24))
(set! command (bit-extract midi 0 4))
(set! bank (bit-extract midi 4 8))
(display "command " command ", bank " bank ", velocity "
velocity)
(if (= command 0)
(display "Filter stopping")
(loop)))))
(loop))
(d-SetMidiCapture #f)
It gives the error
(#f Wrong number of arguments to ~A (#<procedure display (_ #:optional
_)>) #f)
What do I do wrong?
Thanks
Andreas
- [Denemo-devel] Scheme question,
Andreas Schneider <=
- Re: [Denemo-devel] Scheme question, Richard Shann, 2014/10/25
- Re: [Denemo-devel] Scheme question, Andreas Schneider, 2014/10/25
- Re: [Denemo-devel] Scheme question, Richard Shann, 2014/10/25
- Re: [Denemo-devel] Scheme question, Andreas Schneider, 2014/10/26
- Re: [Denemo-devel] Scheme question, Richard Shann, 2014/10/26
- Re: [Denemo-devel] Scheme question, Andreas Schneider, 2014/10/26
- Re: [Denemo-devel] Scheme question, Richard Shann, 2014/10/29