View Issue Details

IDProjectCategoryView StatusLast Update
0001807ardourfeaturespublic2007-08-22 21:17
Reporteroofus Assigned Topaul  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
PlatformCentrino 1.6GHz LaptopOSLinuxOS VersionMandriva 2007
Summary0001807: Allow MMC IDs to be set for both sending and receiving
DescriptionAllow MMC IDs to be set for both sending and receiving. ie independent settings for the ID that Ardour sends MMC messages to and the ID that Ardour responds to when receiving MMC messages.

Should be set to 0x7F (all call) by default.
TagsNo tags attached.

Activities

paul

2007-08-04 14:40

administrator   ~0004228

implemented in branches/2.0-ongoing (and will be ported to trunk). not usefully tested.

oofus

2007-08-04 19:42

developer   ~0004230

Last edited: 2007-08-04 19:59

Excellent, thank for this.

Initially I see that the defaults are '0' in the options editor not '127' ('0x7F')

Will test more fully later.

oofus

2007-08-04 20:00

developer   ~0004231

MMC messages are sent to ID 0x7F regardless of what is set in the options editor. ID so set are not remembered between session re-loads.

oofus

2007-08-07 10:35

developer   ~0004241

Messages are now sent and received to/from the correct set IDs.

Default is still 0 not 127 and the IDs are not saved.

oofus

2007-08-08 09:53

developer   ~0004243

Current state is, messages are sent/received with the correct ID and those IDs appear to be saved and recalled. The display in the options editor, however, always shows 0 for the IDs until the IDs are changed again manualy.

2007-08-10 22:41

 

MMC_Persistant_ID_Display.patch (1,098 bytes)   
Index: option_editor.cc
===================================================================
--- option_editor.cc	(revision 2282)
+++ option_editor.cc	(working copy)
@@ -375,8 +375,10 @@
 	label = (manage (new Label (_("Inbound MMC Device ID")))); 
 	hbox->pack_start (mmc_receive_device_id_spinner, false, false);
 	hbox->pack_start (*label, false, false);
-	midi_packer.pack_start (*hbox, false, false);
+	midi_packer.pack_start (*hbox, false, false); 
 
+	mmc_receive_device_id_spinner.set_value(Config->get_mmc_receive_device_id ());
+
 	hbox = manage (new HBox);
 	hbox->set_border_width (6);
 	hbox->set_spacing (6);
@@ -385,6 +387,8 @@
 	hbox->pack_start (*label, false, false);
 	midi_packer.pack_start (*hbox, false, false);
 
+	mmc_send_device_id_spinner.set_value(Config->get_mmc_send_device_id ());
+
 	add_midi_port_button.signal_clicked().connect (mem_fun (*this, &OptionEditor::add_midi_port));
 }
 
@@ -713,8 +717,6 @@
 {
 	uint8_t id = (uint8_t) mmc_send_device_id_spinner.get_value();
 
-	cerr << "New send ID = " << (int) id << endl;
-
 	Config->set_mmc_send_device_id (id);
 }
 

oofus

2007-08-10 22:43

developer   ~0004262

Last edited: 2007-08-11 10:29

Attached a patch to fix the last little issue, IDs not being shown initially in the options editor.

Hope this is the right way to do. It seems to work !

Patch is against ongoing 2282

2007-08-11 10:36

 

MMC_Persistant_ID_Display2.patch (1,134 bytes)   
Index: gtk2_ardour/option_editor.cc
===================================================================
--- gtk2_ardour/option_editor.cc	(revision 2290)
+++ gtk2_ardour/option_editor.cc	(working copy)
@@ -375,8 +375,10 @@
 	label = (manage (new Label (_("Inbound MMC Device ID")))); 
 	hbox->pack_start (mmc_receive_device_id_spinner, false, false);
 	hbox->pack_start (*label, false, false);
-	midi_packer.pack_start (*hbox, false, false);
+	midi_packer.pack_start (*hbox, false, false); 
 
+	mmc_receive_device_id_spinner.set_value(Config->get_mmc_receive_device_id ());
+
 	hbox = manage (new HBox);
 	hbox->set_border_width (6);
 	hbox->set_spacing (6);
@@ -385,6 +387,8 @@
 	hbox->pack_start (*label, false, false);
 	midi_packer.pack_start (*hbox, false, false);
 
+	mmc_send_device_id_spinner.set_value(Config->get_mmc_send_device_id ());
+
 	add_midi_port_button.signal_clicked().connect (mem_fun (*this, &OptionEditor::add_midi_port));
 }
 
@@ -713,8 +717,6 @@
 {
 	uint8_t id = (uint8_t) mmc_send_device_id_spinner.get_value();
 
-	cerr << "New send ID = " << (int) id << endl;
-
 	Config->set_mmc_send_device_id (id);
 }
 

oofus

2007-08-11 10:37

developer   ~0004263

OK, uploaded the correct patch this time, ending in ...Display2.patch.

Files at the correct levels now.

paul

2007-08-22 14:35

administrator   ~0004282

patch applied to 2.0-ongoing and trunk. commit to follow.

oofus

2007-08-22 21:17

developer   ~0004283

feature implemented.

Issue History

Date Modified Username Field Change
2007-08-03 21:00 oofus New Issue
2007-08-04 14:40 paul Note Added: 0004228
2007-08-04 19:42 oofus Note Added: 0004230
2007-08-04 19:59 oofus Note Edited: 0004230
2007-08-04 20:00 oofus Note Added: 0004231
2007-08-07 10:35 oofus Note Added: 0004241
2007-08-08 09:53 oofus Note Added: 0004243
2007-08-10 22:41 oofus File Added: MMC_Persistant_ID_Display.patch
2007-08-10 22:43 oofus Note Added: 0004262
2007-08-11 10:29 oofus Note Edited: 0004262
2007-08-11 10:36 oofus File Added: MMC_Persistant_ID_Display2.patch
2007-08-11 10:37 oofus Note Added: 0004263
2007-08-22 14:35 paul Status new => resolved
2007-08-22 14:35 paul Resolution open => fixed
2007-08-22 14:35 paul Assigned To => paul
2007-08-22 14:35 paul Note Added: 0004282
2007-08-22 21:17 oofus Status resolved => closed
2007-08-22 21:17 oofus Note Added: 0004283