char notes1[] = "cdefgab "; // a space represents a rest
int beats1[] = { 1, 1, 1, 1, 1, 1, 3};
int length1 = 7; // the number of notes
char notes2[] = "cdefgab "; // a space represents a rest
int beats2[] = { 1, 1, 1, 1, 1, 1, 3};
int length2 = 7; // the number of notes
char notes3[] = "ccccc "; // a space represents a rest
int beats3[] = { 1, 1, 1, 1, 1};
int length3 = 5; // the number of notes
char notes4[] = "fffff "; // a space represents a rest
int beats4[] = { 1, 1, 1, 1, 1};
int length4 = 5; // the number of notes
char notes5[] = "CCCCC "; // a space represents a rest
int beats5[] = { 1, 1, 1, 1, 1};
does the robot play music???
okay so.. digitalWrite should all be in the loop() function(i see you have them commented out). You did a good job of commenting the code I posted above somewhat.. but then you get into all the walking.. and stuff that looks like you're using the computer to control it?? And not really commented that well.... think you may need to find something with leg patterns for walking of a quad and implement it.. My 2 cents.. kind of new to robotics. have programmed quite a bit though
looking back at the code... it looks like when its walking you have two of the same functions in a row... possibly try to implement these into one?.. Also where did you get the base for this..