denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Scheme question


From: Andreas Schneider
Subject: Re: [Denemo-devel] Scheme question
Date: Sun, 26 Oct 2014 13:32:58 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.1.2

Am 26.10.2014 um 09:42 schrieb Richard Shann:
> On Sun, 2014-10-26 at 08:20 +0100, Andreas Schneider wrote:
>> I see, the traditional form of d-GetMidi sets the bank to 0. As I use
>> the new form of d-GetMidi, is there also an option to use d-PutMidi with
>> the byte array returned by (d-GetMidi #f)?
> 
> I didn't add that (yet), looking at the code I notice there are two
> commands
> 
> (d-PutMidi value)
> and 
> (d-OutputMidi value)
> the second of these directly outputs the MIDI event value to the MIDI
> out, the first does something trickier:
>       1) it turns off any MIDI filter
>       2) simulates the arrival of the value as if it came from the MIDI in
> device
>       3) turns back on any MIDI filter that was active.

That is good to know. So I can use d-OutputMidi to send a message to my
master keyboard (e.g. to toggle LEDs). d-PutMidi is the right command if
NoteOn or NoteOff messages come in (as done in AngryDelete). Now I have
to figure out how to use them with a byte array.

Andreas



reply via email to

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