PDA

View Full Version : .syx for terminals 8-13 for analog input (and LDR wiring)


gram0phone
11-30-2010, 01:45 AM
Hey, I may have misposted this in my reply to a previous thread, but basically what i intend to do is send 5 LDRs to terminals 8-13 for ambient light sensors and convert them to CCs, I'd love any help in putting together the .syx code to configure the MIDI CPU (having tried with the firmware manual- no luck).

Thanks so much everyone!!

Best,

gram0phone

John
11-30-2010, 02:27 PM
Here's the sysex for analog input, CC output on CT 8-13.


// Fixed Header
F0 00 01 5D 04 01
// Layer 00h
00

// CT 8, CC 0
08 00 04 00 00 0F

// CT 9, CC 1
09 00 04 00 01 0D

// CT 10, CC 2
0A 00 04 00 02 0B

// CT 11, CC 3
0B 00 04 00 03 0C

// CT 12, CC 4
0C 00 04 00 04 0E

// CT 13, CC 5
0D 00 04 00 05 10

// Footer
F7


The last byte in each line can be confusing--for an explanation, see the description of mode 04h (Analog Input: Control Change [CC]) and the section titled "Analog Input Data" in the firmware manual.

Here's a simple example showing how to wire a LDR to the MIDI CPU:

http://highlyliquid.com/support/img/midi-cpu/midi-cpu-photocell-analog-input.png

John
12-01-2010, 01:16 AM
A little more detail about how this works can be found here:

http://forum.highlyliquid.com/showthread.php?t=441

gram0phone
12-03-2010, 02:07 AM
this is so awesome

thx so much john

if anyone has the sysex for changing terminals 17-23 into analog inputs i'd love to be able to add more sensors!!

wow

John
12-03-2010, 10:01 PM
this is so awesome

thx so much john

if anyone has the sysex for changing terminals 17-23 into analog inputs i'd love to be able to add more sensors!!

wow

So...you got the first 6 sensors working? :)

If you like the CC generation, I strongly suggest you try out the "continuous note" mode so that you can build a MIDI photo-theremin.

Anyway, here's the sysex code for sending CC from analog input to control terminals 16-23:

// Fixed Header
F0 00 01 5D 04 01
// Layer 00h
00

// CT 16, CC 6
10 00 04 00 06 03

// CT 17, CC 7
11 00 04 00 07 04

// CT 18, CC 8
12 00 04 00 08 05

// CT 19, CC 9
13 00 04 00 09 06

// CT 20, CC 10
14 00 04 00 0A 07

// CT 21, CC 11
15 00 04 00 0B 08

// CT 22, CC 12
16 00 04 00 0C 09

// CT 23, CC 13
17 00 04 00 0D 0A

// Footer
F7

spunky
12-11-2010, 06:37 PM
ldr's work great with the cpu.. you can also inverse the response by inversing the wiring from the diagram. tweak the right resistor values and you're set.

john mentioned having a note programmed for every two notes to smooth the response on continous note.. i have also tried adding a bit of portamento and setting the receiving synth for mono legato mode which helps to smooth the quality of the "midi theremin" also helps to maybe have one or two buttons momentaries wired to latching type switch. this way you can articulate without so much of the "theremin" effect. you can also try other programming tricks like having a different porta-rate for layered voices giving the illusion of polyphony.. the code below illustrates terminal 0 and terminals 12 used for the note start/stop. terminal 0 is a latching button and terminal 12 is for the analog input for the ldr..

00 00 68 00 12 00
00 01 69 00 12 00
12 00 00 00 00 7F

i've yet to document some of the improvements i've made with the programming (always a work in progress i think) but i'm tracking a few midi cpu projects over at
http://www.spunkytoofers.com