(forwarding my misdirected reply to list)<br><div class="gmail_quote"><br><br><div class="gmail_quote"><div class="Ih2E3d">On Tue, Jun 3, 2008 at 1:14 PM, gabor papp <<a href="mailto:gabor.lists@mndl.hu" target="_blank">gabor.lists@mndl.hu</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
i'm not sure if anyone is interested in this, but i started to work on a fluxus midi module. the first basic version is available here:<br>
<br>
<a href="http://fluxus.mndl.hu/fluxus-midi/fluxus-midi-080603.tar.gz" target="_blank">http://fluxus.mndl.hu/fluxus-midi/fluxus-midi-080603.tar.gz</a><br>
<br>
the simplest way to install it is to extract the contents in the modules directory, add fluxus-midi to the dirs in modules/SConscript and run scons.<br>
<br>
works in linux and osx.<br>
<br>
<br>
commands:<br>
<br>
(midi-info) - returns the available midi hardware list<br>
(midi-init n) - initialises hw n<br>
(midi-cc c n) - returns value of controller n at channel c (0-127)<br>
(midi-ccn c n) - normalised value of controller n (0-1)<br>
<br>
<br>
example:<br>
<br>
(require fluxus-015/fluxus-midi)<br>
<br>
(display (midi-info))(newline)<br>
<br>
(midi-init 1)<br>
<br>
(define (midi-test)<br>
(with-state<br>
(scale (vector (midi-ccn 0 1) (midi-ccn 0 2) (midi-ccn 0 3)))<br>
(draw-cube)))<br>
<br>
(every-frame (midi-test))<br>
</blockquote></div><div><br>this example works well for me together with SC. the only output I get in the shell is:<br><br>~/dev/fluxus$ fluxus-0.15 temp.scm<br>Welcome to fluxus.<br>Type (help) for info.<br><br>RtMidiIn::cancelCallback: no callback function was set!<br>
<br>((0 . Midi Through Port-0) (1 . out0))<br>ALSA lib seq.c:4014:(snd_seq_event_input_feed) poll: Interrupted system call<br>RtMidiIn::alsaMidiHandler: unknown MIDI input error!<br>ALSA lib seq.c:4014:(snd_seq_event_input_feed) poll: Interrupted system call<br>
RtMidiIn::alsaMidiHandler: unknown MIDI input error!<br>ALSA lib seq.c:4014:(snd_seq_event_input_feed) poll: Interrupted system call<br>RtMidiIn::alsaMidiHandler: unknown MIDI input error!<br>ALSA lib seq.c:4014:(snd_seq_event_input_feed) poll: Interrupted system call<br>
RtMidiIn::alsaMidiHandler: unknown MIDI input error!<br>ALSA lib seq.c:4014:(snd_seq_event_input_feed) poll: Interrupted system call<br>RtMidiIn::alsaMidiHandler: unknown MIDI input error!<br><br>let me know if I should turn on debugging for more detailed information.<br>
<br><br></div></div>
</div><br>