Skip to content

Commit

Permalink
Add public track lookup API
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgehog1029 committed Feb 19, 2023
1 parent 8491541 commit 11ec9fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions BaboonAPI/BaboonAPI.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<Compile Include="patch\SaverLoaderPatch.fs" />
<Compile Include="patch\InitializerPatch.fs" />
<Compile Include="patch\TrackScorePatch.fs" />
<Compile Include="api-post\TrackLookup.fs" />
<Compile Include="Library.fs" />
</ItemGroup>

Expand Down
8 changes: 8 additions & 0 deletions BaboonAPI/api-post/TrackLookup.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// Public hooks to look up registered tracks
module BaboonAPI.Hooks.Tracks.TrackLookup

open BaboonAPI.Internal

/// Look up a track by trackref
let public lookup (trackref: string): TromboneTrack =
TrackAccessor.fetchTrack trackref

0 comments on commit 11ec9fd

Please sign in to comment.