denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] A Good Idea


From: Richard Shann
Subject: Re: [Denemo-devel] A Good Idea
Date: Fri, 05 Mar 2010 09:42:10 +0000

On Thu, 2010-03-04 at 18:08 -0600, Jeremiah Benham wrote:
> 
> I would like to take a look at this script so I can better
> understand  
> what it is that needs done. Is it in git?

no - it is trivial and needs to be done in C anyway. It is mostly
converting the format of d-GetMidi to d-OutputMidiBytes like this:

        (let loop  ()
                (if MidiThru::Active 
                        (begin
                          (set! midi (d-GetMidi))
                          (set! velocity (bit-extract midi 16 24))
                          (set! note (bit-extract midi 8 16))
                          (set! command (bit-extract midi 0 8))
                          (set! output (string-append (number->string command) 
" "
                                                      (number->string note) " " 
(number->string velocity)))
                          (d-OutputMidiBytes output)            
                                 (loop)))))))

This won't get you any further on the MIDI recording thing - I'll reply
to the other mail on that.
Richard






reply via email to

[Prev in Thread] Current Thread [Next in Thread]