Subversion Repositories svn.mios32

Compare Revisions

Ignore whitespace Rev 2556 → Rev 2557

/trunk/apps/controllers/midibox_ng_v1/cfg/tests/diocfg_1.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/diocfg_2.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/diocfg_2.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/diocfg_2.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/diocfg_2.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/mf_multi.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/mf_multi.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/mf_multi.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/mf_multi.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/rgbled_1.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/rgbled_1.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/rgbled_1.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/rgbled_1.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/ain_sw.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/ain_sw.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/ain_sw.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/ain_sw.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr1.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr1.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr1.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr1.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/conev_5.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/conev_5.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/conev_5.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/conev_5.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr2.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr2.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr2.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr2.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/multimcu.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/multimcu.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/multimcu.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/multimcu.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr3.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr3.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr3.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr3.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr5.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr5.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr5.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr5.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/multi_lc.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/multi_lc.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/multi_lc.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/multi_lc.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr5.ngl
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr5.ngl (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr5.ngl (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr5.ngl
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/ainserhq.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/ainserhq.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/ainserhq.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/ainserhq.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr1.ngr
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr1.ngr (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr1.ngr (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr1.ngr
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr2.ngr
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr2.ngr (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr2.ngr (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr2.ngr
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr3.ngr
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr3.ngr (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr3.ngr (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr3.ngr
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/max72xx.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/max72xx.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/max72xx.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/max72xx.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr5.ngr
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr5.ngr (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr5.ngr (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/runscr5.ngr
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/syxtxt.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/syxtxt.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/syxtxt.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/syxtxt.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/multibnk.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/multibnk.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/multibnk.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/multibnk.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/multibnk.ngr
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/multibnk.ngr (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/multibnk.ngr (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/multibnk.ngr
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/ainser8.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/ainser8.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/ainser8.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/ainser8.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/mf_banks.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/mf_banks.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/mf_banks.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/mf_banks.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/ain_fsr.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/ain_fsr.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/ain_fsr.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/ain_fsr.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/syxlabel.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/syxlabel.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/syxlabel.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/syxlabel.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/tpd.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/tpd.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/tpd.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/tpd.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/rgb_4.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/rgb_4.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/rgb_4.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/rgb_4.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/cvtransp.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/cvtransp.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/cvtransp.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/cvtransp.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/mbseqrm.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/mbseqrm.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/mbseqrm.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/mbseqrm.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/leddig1.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/leddig1.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/leddig1.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/leddig1.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/leddig2.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/leddig2.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/leddig2.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/leddig2.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/dimled_m.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/dimled_m.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/dimled_m.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/dimled_m.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/emu_enc.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/emu_enc.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/emu_enc.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/emu_enc.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/midiclk.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/midiclk.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/midiclk.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/midiclk.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/kb_5.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/kb_5.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/kb_5.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/kb_5.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/kb_6.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/kb_6.ngc (revision 0)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/kb_6.ngc (revision 2557)
@@ -0,0 +1,42 @@
+RESET_HW
+
+# reduce number of SRs for faster scan
+# with 2 SRs the scan takes ca. 500 uS instead of 2.5 mS
+SRIO num_sr=2
+
+# keyboard configuration
+KEYBOARD n=1 rows=8 dout_sr1=1 dout_sr2=2 din_sr1=1 din_sr2=2 \
+ din_inverted=0 break_inverted=0 din_key_offset=32 \
+ scan_velocity=1 scan_optimized=0 note_offset=28 \
+ delay_fastest=5 delay_fastest_black_keys=0 delay_slowest=100
+
+EVENT_KB id=1 type=NoteOn chn=1 key=any use_key_number=1 range=0:127 kb_velocity_map=map1 kb_transpose=0 lcd_pos=1:1:1 label="Note %n"
+
+
+# Use soft keys to set a specific velocity map
+# Use encoder to change transpose value
+# See the appr. sections in the kb_6.ngr script!
+
+SCS soft1_button_emu_id=2000 \
+ soft2_button_emu_id=2001 \
+ soft3_button_emu_id=2002 \
+ soft4_button_emu_id=2003 \
+ shift_button_emu_id=2004 \
+ enc_emu_id=2000
+
+EVENT_BUTTON id=2000 type=Meta meta=RunSection:1 button_mode=OnOnly
+EVENT_BUTTON id=2001 type=Meta meta=RunSection:2 button_mode=OnOnly
+EVENT_BUTTON id=2002 type=Meta meta=RunSection:3 button_mode=OnOnly
+EVENT_BUTTON id=2003 type=Meta meta=RunSection:4 button_mode=OnOnly
+EVENT_BUTTON id=2004 type=Meta meta=RunSection:5 button_mode=OnOnly
+
+# allow to transpose between -12 and +12
+EVENT_ENC id=2000 type=Meta meta=RunSection:10 enc_mode=Absolute range=-12:12
+
+# velocity maps
+# using an interpolation map to define the velocity curve
+MAP1/BYTEI 0:0 127:127
+MAP2/BYTEI 0:0 64:30 96:80 127:127
+MAP3/BYTEI 0:0 10:40 64:80 127:127
+MAP4/BYTEI 0:0 10:40 60:80 90: 120 127:127
+
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/kb_6.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/ainser8n.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/ainser8n.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/ainser8n.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/ainser8n.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/kb_6.ngr
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/kb_6.ngr (revision 0)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/kb_6.ngr (revision 2557)
@@ -0,0 +1,47 @@
+# This run script is used in conjunction with kb_6.ngc to control the keyboard velocity map and transpose
+
+#################################################################################
+if ^section == 0
+ lcd "%CNote C-1 Map: 1@(1:1:2)Transpose: 0"
+endif
+
+#################################################################################
+if ^section == 1
+ log "Velocity Map #1 selected"
+ lcd "@(1:15:1)1"
+ set_kb_velocity_map KB:1 1
+endif
+
+#################################################################################
+if ^section == 2
+ log "Velocity Map #2 selected"
+ lcd "@(1:15:1)2"
+ set_kb_velocity_map KB:1 2
+endif
+
+#################################################################################
+if ^section == 3
+ log "Velocity Map #3 selected"
+ lcd "@(1:15:1)3"
+ set_kb_velocity_map KB:1 3
+endif
+
+#################################################################################
+if ^section == 4
+ log "Velocity Map #4 selected"
+ lcd "@(1:15:1)4"
+ set_kb_velocity_map KB:1 4
+endif
+
+#################################################################################
+if ^section == 5
+ log "Shift button not assigned to any function!"
+endif
+
+#################################################################################
+if ^section == 10
+ log "Change Transpose"
+
+ set_kb_transpose KB:1 ^value
+ lcd "@(1:13:2)%3d"
+endif
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/kb_6.ngr
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/metalrn.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/metalrn.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/metalrn.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/metalrn.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/cfg/tests/ebnkpart.ngc
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/cfg/tests/ebnkpart.ngc (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/cfg/tests/ebnkpart.ngc (revision 2557)
/trunk/apps/controllers/midibox_ng_v1/cfg/tests/ebnkpart.ngc
Property changes:
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/apps/controllers/midibox_ng_v1/CHANGELOG.txt
===================================================================
--- trunk/apps/controllers/midibox_ng_v1/CHANGELOG.txt (revision 2556)
+++ trunk/apps/controllers/midibox_ng_v1/CHANGELOG.txt (revision 2557)
@@ -16,7 +16,14 @@
o new LCD format character '%L' allows to display logic control digits
(MTC and status digits)
+ o added new .NGR commands SET_KB_TRANSPOSE and SET_KB_VELOCITY_MAP.
+ The configuration example can be found under cfg/tests/kb_6.ng*
+ o encoder absolute mode: negative ranges are now handled correctly
+
+ o .NGR LCD command: %d outputs the ^value
+
+
MIDIbox NG V1.035
~~~~~~~~~~~~~~~~~
/trunk/apps/controllers/midibox_ng_v1/src/mbng_file_r.c
104,6 → 104,8
TOKEN_SET_NO_DUMP = 0x10, // followed by 3 bytes (TOKEN_VALUE_*) + operation (x bytes)
TOKEN_SET_MIN = 0x11, // followed by 3 bytes (TOKEN_VALUE_*) + operation (x bytes)
TOKEN_SET_MAX = 0x12, // followed by 3 bytes (TOKEN_VALUE_*) + operation (x bytes)
TOKEN_SET_KB_TRANSPOSE = 0x13, // followed by 3 bytes (TOKEN_VALUE_*) + operation (x bytes)
TOKEN_SET_KB_VELOCITY_MAP = 0x14, // followed by 3 bytes (TOKEN_VALUE_*) + operation (x bytes)
 
TOKEN_IF = 0x80, // +2 bytes for jump offset
TOKEN_ELSE = 0x81, // +2 bytes for jump offset
1779,7 → 1781,19
return MBNG_EVENT_ItemModify(item);
}
 
static s32 execSET_KB_TRANSPOSE(mbng_event_item_t *item, s32 value)
{
item->custom_flags.KB.kb_transpose = value;
return MBNG_EVENT_ItemModify(item);
}
 
static s32 execSET_KB_VELOCITY_MAP(mbng_event_item_t *item, s32 value)
{
item->custom_flags.KB.kb_velocity_map = value;
return MBNG_EVENT_ItemModify(item);
}
 
 
/////////////////////////////////////////////////////////////////////////////
//! help function which SETs a value based on a token
/////////////////////////////////////////////////////////////////////////////
2403,7 → 2417,10
mbng_event_item_t item;
MBNG_EVENT_ItemInit(&item, MBNG_EVENT_CONTROLLER_DISABLED);
item.label = str;
item.value = vars.value;
MUTEX_LCD_TAKE;
MBNG_LCD_PrintItemLabel(&item, NULL, 0);
MUTEX_LCD_GIVE;
}
}
} else if( strcasecmp(parameter, "LOG") == 0 ) {
2458,6 → 2475,10
parseCommand(line, parameter, &brkt, tokenize_req, TOKEN_SET_MIN, execSET_MIN, NULL);
} else if( strcasecmp(parameter, "SET_MAX") == 0 ) {
parseCommand(line, parameter, &brkt, tokenize_req, TOKEN_SET_MAX, execSET_MAX, NULL);
} else if( strcasecmp(parameter, "SET_KB_TRANSPOSE") == 0 ) {
parseCommand(line, parameter, &brkt, tokenize_req, TOKEN_SET_KB_TRANSPOSE, execSET_KB_TRANSPOSE, NULL);
} else if( strcasecmp(parameter, "SET_KB_VELOCITY_MAP") == 0 ) {
parseCommand(line, parameter, &brkt, tokenize_req, TOKEN_SET_KB_VELOCITY_MAP, execSET_KB_VELOCITY_MAP, NULL);
} else if( strcasecmp(parameter, "TRIGGER") == 0 ) {
parseCommand(line, parameter, &brkt, tokenize_req, TOKEN_TRIGGER, execTRIGGER, NULL);
} else if( strcasecmp(parameter, "DELAY_MS") == 0 ) {
2635,6 → 2656,7
mbng_event_item_t item;
MBNG_EVENT_ItemInit(&item, MBNG_EVENT_CONTROLLER_DISABLED);
item.label = (char *)&ngr_token_mem[ngr_token_mem_run_pos];
item.value = vars.value;
MUTEX_LCD_TAKE;
MBNG_LCD_PrintItemLabel(&item, NULL, 0);
MUTEX_LCD_GIVE;
2763,6 → 2785,8
case TOKEN_SET_NO_DUMP: execToken(command_token, if_condition_matching, execSET_NO_DUMP, NULL); break;
case TOKEN_SET_MIN: execToken(command_token, if_condition_matching, execSET_MIN, NULL); break;
case TOKEN_SET_MAX: execToken(command_token, if_condition_matching, execSET_MAX, NULL); break;
case TOKEN_SET_KB_TRANSPOSE: execToken(command_token, if_condition_matching, execSET_KB_TRANSPOSE, NULL); break;
case TOKEN_SET_KB_VELOCITY_MAP: execToken(command_token, if_condition_matching, execSET_KB_VELOCITY_MAP, NULL); break;
 
/////////////////////////////////////////////////////////////////////////
default:
/trunk/apps/controllers/midibox_ng_v1/src/mios32_config.h
13,7 → 13,7
// The boot message which is print during startup and returned on a SysEx query
#define MIOS32_LCD_BOOT_MSG_DELAY 0 // we delay the boot and print a message inside the app
#define MIOS32_LCD_BOOT_MSG_LINE1 "MIDIbox NG V1.036"
#define MIOS32_LCD_BOOT_MSG_LINE2 "(C) 2016 T.Klose"
#define MIOS32_LCD_BOOT_MSG_LINE2 "(C) 2018 T.Klose"
 
// define a unique VID/PID for this application
#define MIOS32_USB_PRODUCT_STR "MIDIbox NG"
/trunk/apps/controllers/midibox_ng_v1/src/mbng_enc.c
226,11 → 226,11
 
default: { // MBNG_EVENT_ENC_MODE_ABSOLUTE
s32 ix_updated;
s32 prev_value = item.value;
s16 prev_value = item.value;
if( (ix_updated=MBNG_EVENT_MapItemValueInc(item.map, &item, event_incrementer, 0)) >= 0 ) {
dont_send = (prev_value == item.value) && !ix_updated;
} else {
s32 value = item.value;
s16 value = item.value;
if( item.min <= item.max ) {
value += event_incrementer;
if( value < item.min )
242,7 → 242,7
value -= event_incrementer;
if( value < item.max )
value = item.max;
else if( value > item.min )
else if( value > (s32)item.min )
value = item.min;
}
 
/trunk/apps/controllers/midibox_ng_v1/src/mbng_lcd.c
575,16 → 575,19
char *format_type = &format[format_len-1];
 
switch( *format_type ) {
case 'd': // value in various formats
case 'x':
case 'd': {
MBNG_LCD_PRINT_FORMATTED_STRING(format, (s16)item->value + item->offset);
} break;
 
case 'x': // value in various unsigned formats
case 'X':
case 'u':
case 'c': {
MBNG_LCD_PRINT_FORMATTED_STRING(format, (int)item->value + item->offset);
MBNG_LCD_PRINT_FORMATTED_STRING(format, item->value + item->offset);
} break;
 
case 'L': { // logic digits
u8 value = (int)item->value + item->offset;
u8 value = (s16)item->value + item->offset;
value = (value & 0x3f);
if( value < 0x20 )
value += 0x40;