I have attached a simple patch that increases the number of controller
rotaries in the IPB that the controller editor can configure.
In more detail, I am using a Fantom XR external synth with Rosegarden,
and this has many MIDI controllers, 17 of which can usefully be
controlled from the Instrument Parameters box. However, although the
Rosegarden's IPB doesn't restrict the number of controller rotaries
that can be instantiated and displayed there, the controller editor
only allows rotary positions from 0 to 15 to be configured. These are
the numbers in a drop-down combo-box menu, and I have verified that by
modifying the code to add more numbers to this menu (by increasing a
loop bound in controleditor.cpp), I can use the editor to set up more
than the previous maximum of 16 controllers, and the additional
controllers work, and are saved and restored correctly to and from
Rosegarden files.
Martin Shepherd ([EMAIL PROTECTED])
Index: gui/controleditor.cpp
===================================================================
--- gui/controleditor.cpp (revision 7314)
+++ gui/controleditor.cpp (working copy)
@@ -556,7 +556,7 @@
// Populate IPB position combo
//
m_ipbPosition->insertItem(notShowing);
- for (unsigned int i = 0; i < 16; i++)
+ for (unsigned int i = 0; i < 32; i++)
m_ipbPosition->insertItem(QString("%1").arg(i));
if (m_control->getType() == Rosegarden::Controller::EventType)
_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel