John Hansen - 2012-11-03

The best way to do this is like this:

int song[][] = {{500, 100}, {555, 100}, {500, 100}, {525, 100}, ... };

where you would replace "..." with the rest of your pitch and duration arrays. You might consider making it an array of Tone structs. See

http://bricxcc.sourceforge.net/nbc/nxcdoc/nxcapi/group___sound_module_functions_ga343ce8b1180f1083e6216f6d26dd1150.html

(google NXC PlayTones)

http://bricxcc.sourceforge.net/nbc/nxcdoc/nxcapi/ex_playtones_8nxc-example.html