If you're talking about the sound editor I posted recently, look inside [pd codey-code] for [pd file] and [pd copy].
That should get you on your way.
Basically you need to read from one array and write the values to another array.
So if have your 8 channel sample player + editor, and want to edit and save sample1 then edit sample4, it would go like this.
1.Check how many values sample1 array has.
2.Resize editor array to match sample1 array.
3.Read the values from sample1 array, and write them into editor array.
4.Edit sample.
5.Check how long edit array is, after editing.
6.Resize sample1 array to match editor array.
7.Read values into sample1 from editor.
8.Check how many values sample4 array has.
9.Resize editor array to match sample4 array.
10.Read the values from sample4 array, and write them into editor array.
11.Edit sample.
12 .............etc.
Hope that makes it clear.
Good Luck!