def frame_to_midi(frame, ignore_graces=True):
	"""
	:param list frame: Frame of data from :obj:`~decitala.utils.get_object_indices`.
	:return: A numpy array holding the pitches within the frame.
	:rtype: numpy.array

	>>> from music21 import note
	>>> my_frame = [
	...     (note.Note("B-", quarterLength=0.125), (4.125, 4.25)),
	...		(note.Note("A", quarterLength=0.25), (4.25, 4.5)),
	...		(note.Note("B", quarterLength=0.125), (4.5, 4.625)),
	...		(note.Note("B-", quarterLength=0.125), (4.625, 4.75)),
	...		(note.Note("A", quarterLength=0.25), (4.75, 5.0)),
	...		(note.Note("G", quarterLength=0.25), (5.0, 5.25)),
	...		(note.Note("G", quarterLength=0.25), (5.25, 5.5)),
	...	]
	>>> frame_to_midi(my_frame)
	[(70,), (69,), (71,), (70,), (69,), (67,), (67,)]
	"""
	midi_out = []
	for this_obj, this_range in frame:
		if not(ignore_graces):
			fpitches = this_obj.pitches
			midi_out.append(tuple([x.midi for x in fpitches]))
		else:
			if this_obj.quarterLength == 0.0:
				pass
			else:
				fpitches = this_obj.pitches
				midi_out.append(tuple([x.midi for x in fpitches]))

	return midi_out