#File for Q1 of A2, spliceSimpler.py
#Do not delete any comments already in this file.
#You may insert lines as needed. The size of the gap does
#not indicate the size of the specification.
#Begin writing your specification here.

#Finish writing your specification by here. Do not change anything below this
#point.
def spliceSimpler()
  file=getMediaPath("preamble10.wav")
  source=makeSound(file)
  target=makeSound(file) #The newly spliced sound
  targetIndex= 17408 #target index starts just after "We the"
  for sourceIndex in range(33414,40052): #Copy United
    setSampleValueAt(target,targetIndex,getSampleValueAt(source, sourceIndex))
    targetIndex = targetIndex + 1
  #hear and return the result
  play(target)
  return target

