Index: trunk/src/scriptbuilder/structures/TimeSlice.java
===================================================================
--- trunk/src/scriptbuilder/structures/TimeSlice.java	(revision 152)
+++ trunk/src/scriptbuilder/structures/TimeSlice.java	(revision 162)
@@ -320,3 +320,38 @@
         }
     }
+    /**
+     * this method removes an audioevent that corresponds to the input I_AudioEvent. NEEDS VERIFICATION
+     */
+    public void removeCorrespondingAudioEvent(I_AudioEvent comparisonEvent){
+        String id = comparisonEvent.getFileName().split("/")[1];
+        for(I_ScriptEvent event : events)
+        {
+            if(event instanceof AudioEvent)
+            {
+                System.out.println("removed an audioevent \n" + ((AudioEvent)event).audioPath.split("/")[2].substring(0,((AudioEvent)event).audioPath.split("/")[2].length() - 4));
+                System.out.println(id);
+                System.out.println(id.equals(((AudioEvent)event).audioPath.split("/")[2].substring(0,((AudioEvent)event).audioPath.split("/")[2].length() - 4)));
+
+                if(id.equals(((AudioEvent)event).audioPath.split("/")[2].substring(0,((AudioEvent)event).audioPath.split("/")[2].length() - 4)))
+                {
+                    System.out.println("the event was deleted");
+                    events.remove(event);
+                }
+                
+            }
+        }
+    }
+    public AudioEvent getCorrespondingAudioEvent(I_AudioEvent compariosonEvent)
+    {
+        String id = compariosonEvent.getFileName();
+        AudioEvent retVal = null;
+        for(I_ScriptEvent event: events)
+        {
+            if(event instanceof AudioEvent && ((AudioEvent)event).audioPath.split("/")[2].equals(id))
+            {
+                retVal = (AudioEvent) event;
+            }
+        }
+        return retVal;
+    }
 }
