Sign In:     


Forum: General Discussion

Topic: Script question - Page: 3

This topic is old and might contain outdated or incorrect information.

Cool - working nice except for those three knobs. First, the time knob I'm still not sure about. Somehow have to tell it to read the LSB?

Heres how it works. Turn one way, codes are...

B0 0D 08
B0 2D 7C
B0 0D 08
B0 2D 7D
B0 0D 08
B0 2D 7E
B0 0D 08
B0 2D 7F
B0 0D 09
B0 2D 00
B0 0D 09
B0 2D 01

I've shown what happens at the crossover point so you can see how the 0D increases by 1 at each 2D 7F cycle. If you twist the knob the other way, it does the same thing backwards, ie would go 00, then 7F, and 0D would go back to 08.

Any ideas?
 

Also toggle doesnt seem to be working. Is this the correct command for a button that you press once and it sends 00 and press it again and it sends 7F? Here is the map so far...

<?xml version="1.0" encoding="UTF-8"?>
<device name="USB_Midi_Cable" author="djcheers.com" type="MIDI" >

"MIDI RECEIVE PIONEER DJM700"

"Channel 1"
<slider cc="02" name="CH1_HIGH"/>
<slider cc="03" name="CH1_MID"/>
<slider cc="04" name="CH1_LOW"/>
<toggle cc="70" name="CH1_CUE"/>
<slider cc="17" name="CH1_FADER" />
<button cc="65" value="00" name="CH1_ASSIGN_LEFT" />
<button cc="65" value="64" name="CH1_ASSIGN_CENTRE" />
<button cc="65" value="127" name="CH1_ASSIGN_RIGHT" />

"Channel 2"
<slider cc="07" name="CH2_HIGH"/>
<slider cc="08" name="CH2_MID"/>
<slider cc="09" name="CH2_LOW"/>
<toggle cc="71" name="CH2_CUE"/>
<slider cc="18" name="CH2_FADER" />
<button cc="66" value="00" name="CH2_ASSIGN_LEFT" />
<button cc="66" value="64" name="CH2_ASSIGN_CENTRE" />
<button cc="66" value="127" name="CH2_ASSIGN_RIGHT" />

"Channel 3"
<slider cc="14" name="CH3_HIGH"/>
<slider cc="15" name="CH3_MID"/>
<slider cc="21" name="CH3_LOW"/>
<toggle cc="72" name="CH3_CUE"/>
<slider cc="19" name="CH3_FADER" />
<button cc="67" value="00" name="CH3_ASSIGN_LEFT" />
<button cc="67" value="64" name="CH3_ASSIGN_CENTRE" />
<button cc="67" value="127" name="CH3_ASSIGN_RIGHT" />

"Channel 4"
<slider cc="81" name="CH4_HIGH"/>
<slider cc="92" name="CH4_MID"/>
<slider cc="82" name="CH4_LOW"/>
<toggle cc="73" name="CH4_CUE"/>
<slider cc="20" name="CH4_FADER" />
<button cc="68" value="00" name="CH4_ASSIGN_LEFT" />
<button cc="68" value="64" name="CH4_ASSIGN_CENTRE" />
<button cc="68" value="127" name="CH4_ASSIGN_RIGHT" />

"Crossfader"
<slider cc="11" name="CROSSFADER"/>

"Fader Curve"
<button cc="94" name="CH_CURVE" />
<button cc="95" name="CROSS_CURVE" />

"Master"
<slider cc="24" name="MASTER_LEVEL" />
<toggle cc="74" name="MASTER_CUE" />
<slider cc="23" name="BALANCE" />

"Booth"
<slider cc="25" name="BOOTH_MONITOR"/>

"Filter"
<toggle cc="84" name="FILTER"/>
<slider cc="05" name="FREQUENCY"/>

"Effect"
<button cc="76" name="BEAT_LEFT"/>
<button cc="77" name="BEAT_RIGHT"/>
<toggle cc="69" name="AUTO_TAP"/>
<button cc="78" name="TAP"/>
<toggle cc="75" name="EFFECT_CUE"/>
<encoder cc="13" name="TIME"/>
<slider cc="91" name="LEVEL_DEPTH"/>
<toggle cc="64" name="EFFECT_OFF_ON"/>

"Mic"
<slider cc="30" name="MIC_HIGH"/>
<slider cc="31" name="MIC_LOW"/>
<toggle cc="88" name="FADER_START_1"/>
<toggle cc="89" name="FADER_START_2"/>
<slider cc="27" name="HPHONE_MIX"/>
<slider cc="28" name="HPHONE_LEVEL"/>

"End"

</device>

 

just make all the <toggle> elements <button> ... see if that works.

As for the knob, is it an endless knob ? Or does it stop at some point going right and left ?
 

Yes its an endless rotary knob.

The problem with making it a button is it only works on every second push.

Just thinking about it, that is probably how it should work really. Is there any way I can get it to work on every press, ie to activate a browser window for example, but I dont want to press it twice, or am I being a bit difficult ;)

Thanks for all your help with this.
 

A button is defined by a <button> element, with the following properties:
- note: the MIDI note

change the cc="##" to note="##"


As for the knob ... change the cc="13" to cc="45" .. and see how it works. The CC13 only indicates left/right .. the CC45 indicated full rotation 00-7F and 7f-00 ... so use it.
 

Of course - sorry, its obvious when you say it.
 

No problem .. I am glad you are having the patience to learn it ... it really does open the door for things that were not possible before ... glad to help.
 

The note option didnt really work how I wanted so I set two button lines with different values of 00 and 7F and programmed them both to do the same thing in the script. Just allows a bit more fllexibility if someone wants to program it to do different functions for the on and off.

The time knob is being a bit difficult. If I set it to encoder cc45 and browser_scroll in the script, when the knob is turned either way, it jumps to the top of the list and wont move. Want it to scroll up and down the list one place with each click. Any ideas?

 

Here is the device file so far. Doesnt have the time, effect select, or channel assign set but everything else should be sweet.


<?xml version="1.0" encoding="UTF-8"?>
<device name="USB_Midi_Cable" author="djcheers.com" type="MIDI" >

"MIDI RECEIVE PIONEER DJM700"

"Channel 1"
<slider cc="02" name="CH1_HIGH"/>
<slider cc="03" name="CH1_MID"/>
<slider cc="04" name="CH1_LOW"/>
<button cc="70" value="00" name="CH1_CUE_OFF"/>
<button cc="70" value="127" name="CH1_CUE_ON"/>
<slider cc="17" name="CH1_FADER"/>
<button cc="65" value="00" name="CH1_ASSIGN_LEFT"/>
<button cc="65" value="64" name="CH1_ASSIGN_CENTRE"/>
<button cc="65" value="127" name="CH1_ASSIGN_RIGHT"/>

"Channel 2"
<slider cc="07" name="CH2_HIGH"/>
<slider cc="08" name="CH2_MID"/>
<slider cc="09" name="CH2_LOW"/>
<button cc="71" value="00" name="CH2_CUE_OFF"/>
<button cc="71" value="127" name="CH2_CUE_ON"/>
<slider cc="18" name="CH2_FADER"/>
<button cc="66" value="00" name="CH2_ASSIGN_LEFT"/>
<button cc="66" value="64" name="CH2_ASSIGN_CENTRE"/>
<button cc="66" value="127" name="CH2_ASSIGN_RIGHT"/>

"Channel 3"
<slider cc="14" name="CH3_HIGH"/>
<slider cc="15" name="CH3_MID"/>
<slider cc="21" name="CH3_LOW"/>
<button cc="72" value="00" name="CH3_CUE_OFF"/>
<button cc="72" value="127" name="CH3_CUE_ON"/>
<slider cc="19" name="CH3_FADER"/>
<button cc="67" value="00" name="CH3_ASSIGN_LEFT"/>
<button cc="67" value="64" name="CH3_ASSIGN_CENTRE"/>
<button cc="67" value="127" name="CH3_ASSIGN_RIGHT"/>

"Channel 4"
<slider cc="81" name="CH4_HIGH"/>
<slider cc="92" name="CH4_MID"/>
<slider cc="82" name="CH4_LOW"/>
<button cc="73" value="00" name="CH4_CUE_OFF"/>
<button cc="73" value="127" name="CH4_CUE_ON"/>
<slider cc="20" name="CH4_FADER"/>
<button cc="68" value="00" name="CH4_ASSIGN_LEFT"/>
<button cc="68" value="64" name="CH4_ASSIGN_CENTRE"/>
<button cc="68" value="127" name="CH4_ASSIGN_RIGHT"/>

"Crossfader"
<slider cc="11" name="CROSSFADER"/>

"Fader Curve"
<button cc="94" value="00" name="CH_CURVE_LEFT"/>
<button cc="94" value="127" name="CH_CURVE_RIGHT"/>
<button cc="95" value="00" name="CROSS_CURVE_LEFT"/>
<button cc="95" value="64" name="CROSS_CURVE_CENTRE"/>
<button cc="95" value="127" name="CROSS_CURVE_RIGHT"/>

"Master"
<slider cc="24" name="MASTER_LEVEL"/>
<button cc="74" value="00" name="MASTER_CUE_OFF"/>
<button cc="74" value="127" name="MASTER_CUE_ON"/>
<slider cc="23" name="BALANCE"/>

"Booth"
<slider cc="25" name="BOOTH_MONITOR"/>

"Filter"
<button cc="84" name="FILTER"/>
<slider cc="05" name="FREQUENCY"/>

"Effect"
<button cc="76" name="BEAT_LEFT"/>
<button cc="77" name="BEAT_RIGHT"/>
<button cc="69" name="AUTO_TAP"/>
<button cc="78" name="TAP"/>
<button cc="75" name="EFFECT_CUE"/>
<encoder cc="45" name="TIME"/>
<slider cc="91" name="LEVEL_DEPTH"/>
<button cc="64" name="EFFECT_OFF_ON"/>

"Mic"
<slider cc="30" name="MIC_HIGH"/>
<slider cc="31" name="MIC_LOW"/>
<button cc="88" name="FADER_START_1"/>
<button cc="89" name="FADER_START_2"/>
<slider cc="27" name="HPHONE_MIX"/>
<slider cc="28" name="HPHONE_LEVEL"/>

"End"

</device>

 

Few little extra fixes...

<?xml version="1.0" encoding="UTF-8"?>
<device name="USB_Midi_Cable" author="djcheers.com" type="MIDI" >

"MIDI RECEIVE PIONEER DJM700"

"Channel 1"
<slider cc="02" name="CH1_HIGH"/>
<slider cc="03" name="CH1_MID"/>
<slider cc="04" name="CH1_LOW"/>
<button cc="70" value="00" name="CH1_CUE_OFF"/>
<button cc="70" value="127" name="CH1_CUE_ON"/>
<slider cc="17" name="CH1_FADER"/>
<button cc="65" value="00" name="CH1_ASSIGN_LEFT"/>
<button cc="65" value="64" name="CH1_ASSIGN_CENTRE"/>
<button cc="65" value="127" name="CH1_ASSIGN_RIGHT"/>

"Channel 2"
<slider cc="07" name="CH2_HIGH"/>
<slider cc="08" name="CH2_MID"/>
<slider cc="09" name="CH2_LOW"/>
<button cc="71" value="00" name="CH2_CUE_OFF"/>
<button cc="71" value="127" name="CH2_CUE_ON"/>
<slider cc="18" name="CH2_FADER"/>
<button cc="66" value="00" name="CH2_ASSIGN_LEFT"/>
<button cc="66" value="64" name="CH2_ASSIGN_CENTRE"/>
<button cc="66" value="127" name="CH2_ASSIGN_RIGHT"/>

"Channel 3"
<slider cc="14" name="CH3_HIGH"/>
<slider cc="15" name="CH3_MID"/>
<slider cc="21" name="CH3_LOW"/>
<button cc="72" value="00" name="CH3_CUE_OFF"/>
<button cc="72" value="127" name="CH3_CUE_ON"/>
<slider cc="19" name="CH3_FADER"/>
<button cc="67" value="00" name="CH3_ASSIGN_LEFT"/>
<button cc="67" value="64" name="CH3_ASSIGN_CENTRE"/>
<button cc="67" value="127" name="CH3_ASSIGN_RIGHT"/>

"Channel 4"
<slider cc="81" name="CH4_HIGH"/>
<slider cc="92" name="CH4_MID"/>
<slider cc="82" name="CH4_LOW"/>
<button cc="73" value="00" name="CH4_CUE_OFF"/>
<button cc="73" value="127" name="CH4_CUE_ON"/>
<slider cc="20" name="CH4_FADER"/>
<button cc="68" value="00" name="CH4_ASSIGN_LEFT"/>
<button cc="68" value="64" name="CH4_ASSIGN_CENTRE"/>
<button cc="68" value="127" name="CH4_ASSIGN_RIGHT"/>

"Crossfader"
<slider cc="11" name="CROSSFADER"/>

"Fader Curve"
<button cc="94" value="00" name="CH_CURVE_LEFT"/>
<button cc="94" value="127" name="CH_CURVE_RIGHT"/>
<button cc="95" value="00" name="CROSS_CURVE_LEFT"/>
<button cc="95" value="64" name="CROSS_CURVE_CENTRE"/>
<button cc="95" value="127" name="CROSS_CURVE_RIGHT"/>

"Master"
<slider cc="24" name="MASTER_LEVEL"/>
<button cc="74" value="00" name="MASTER_CUE_OFF"/>
<button cc="74" value="127" name="MASTER_CUE_ON"/>
<slider cc="23" name="BALANCE"/>

"Booth"
<slider cc="25" name="BOOTH_MONITOR"/>

"Filter"
<button cc="84" name="FILTER"/>
<slider cc="05" name="FREQUENCY"/>

"Effect"
<button cc="76" name="BEAT_LEFT"/>
<button cc="77" name="BEAT_RIGHT"/>
<button cc="69" value="00" name="AUTO_TAP_OFF"/>
<button cc="69" value="127" name="AUTO_TAP_ON"/>
<button cc="78" name="TAP"/>
<button cc="75" value="00" name="EFFECT_CUE_OFF"/>
<button cc="75" value="127" name="EFFECT_CUE_ON"/>
<slider cc="91" name="LEVEL_DEPTH"/>
<button cc="64" value="00" name="EFFECT_OFF"/>
<button cc="64" value="127" name="EFFECT_ON"/>

"Mic"
<slider cc="30" name="MIC_HIGH"/>
<slider cc="31" name="MIC_LOW"/>
<button cc="88" value="00" name="FADER_START_1_OFF"/>
<button cc="88" value="127" name="FADER_START_1_ON"/>
<button cc="89" value="00" name="FADER_START_2_OFF"/>
<button cc="89" value="127" name="FADER_START_2_ON"/>
<slider cc="27" name="HPHONE_MIX"/>
<slider cc="28" name="HPHONE_LEVEL"/>

"End"

</device>

 

cstoll wrote :
In MIDI OX ... make sure the device is selected for IN and OUT ... goto Options and make sure the "Pass Sysex" is checked ...
Then under Actions select Send > SysEx File
Then in the Send File dialog select Command Window > Load File ...
Browse to the C:\Program Files\MidiOX\Syx folder and select the Universal Device Inquiry.syx file [Click Open]
You should see F0 7E 7F 06 01 F7 in the top box ...
Go to menu Command Window and select "Send/Receive SysEx"
In the Display Window are you should get a string similar to this back-> F0 7E 7F 06 02 00 20 08 4D 14 71 01 20 31 32 35 F7 (This is for a X-session, your result will be way different values)

But highlight, right-click and copy then paste the values back here ...


 

wow, I learned a lot.Im trying to use a usb to midi cable to hook up a casio piano keyboard to assign keys to the samples and loops and Visualations.Any advice is fantastic. For some reason Midi Ox wouldnt find the they keyboard. Anyone, thankyou ahead of time. Stretch
 



(Old topics and forums are automatically closed)