//
// Created by Christopher Liscio on 4/26/13.
//
// Copyright (c) 2013 SuperMegaUltraGroovy, Inc.
//


#import <Foundation/Foundation.h>

@class CapoNoteEntryStorage;

@interface CapoBeatLocator : NSObject

- (void)updateWithNoteEntryStorage:(CapoNoteEntryStorage *)inNoteEntryStorage;

- (NSUInteger)barIndexOfSample:(uint64_t)inSample;
- (NSIndexPath *)barBeatIndexOfSample:(uint64_t)inSample;
- (uint64_t)closestBarBeatSampleToSample:(uint64_t)inSample;
- (uint64_t)sampleOfBarBeatIndex:(NSIndexPath *)barBeatIndex;

- (BOOL)hasBeatEntries;

@end