MusicEventIteratorSeek(_:_:)
Positions a music event iterator at a specified timestamp, in beats.
Declaration
func MusicEventIteratorSeek(_ inIterator: MusicEventIterator, _ inTimeStamp: MusicTimeStamp) -> OSStatusParameters
- inIterator:
The music event iterator that you want to position along a music track.
- inTimeStamp:
The new position for the music event iterator, in beats.
If there is no music event at the specified time, on output the iterator points to the first event after that time.
To position the iterator immediately beyond the final event of a music track, specify Kmusictimestamp_endoftrack for this parameter. You can then call the Musiceventiteratorpreviousevent(_:) to backtrack to the final event of the music track.
To position the iterator at the first event of a music track, specify a value of 0 for this parameter.
Return Value
A result code.
See Also
Iterating Over Music Events
NewMusicEventIterator(_:_:)DisposeMusicEventIterator(_:)MusicEventIteratorNextEvent(_:)MusicEventIteratorDeleteEvent(_:)MusicEventIteratorGetEventInfo(_:_:_:_:_:)MusicEventIteratorHasCurrentEvent(_:_:)MusicEventIteratorHasNextEvent(_:_:)MusicEventIteratorHasPreviousEvent(_:_:)MusicEventIteratorPreviousEvent(_:)MusicEventIteratorSetEventInfo(_:_:_:)MusicEventIteratorSetEventTime(_:_:)MusicEventIteratorMusicEventTypeExtendedNoteOnEventExtendedTempoEvent