Apparently some of the old MIDI configuration files already had
hexadecimal values, so here is a simple patch to skip translation of
the midino and midichan values in this case. This should help with
converting the Hercules files, now that they released a DKMS driver.
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-- C+++(++++)$ UL+++$ P+ L+++>++++ E W++ N o?
K- w++(---) O? M-- V PS+++ PE-(--) Y+(++) PGP t(+) 5(+) X++
R b+>++ DI+ D+ G e h-(--) r y+
------END GEEK CODE BLOCK------
Index: convertToXMLSchemaV1.php
===================================================================
--- convertToXMLSchemaV1.php (revision 2639)
+++ convertToXMLSchemaV1.php (working copy)
@@ -67,7 +67,7 @@
$control = $controls->addChild("control");
foreach($oldControl->children() as $k => $v) {
- if (($k == "midino") || ($k == "midichan"))
+ if ((($k == "midino") || ($k == "midichan")) && !preg_match('/0x\d*/', $v))
$v = sprintf("0x%02x", (integer)$v);
$control->addChild($k, $v);
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel