SceneStateModel

final class SceneStateModel

The observable scene state for Chord Provider

Song View options

  • Bool to show the editor or not

    Declaration

    Swift

    var showEditor: Bool = false
  • Bool that some animation is ongoing

    Note

    Used to hide the SongView during animation because of performance

    Declaration

    Swift

    var isAnimating: Bool = false

Editor stuff

Export Stuff

  • The temporary directory URL for processing files

    Note

    In its own directory so easier to debug

    Declaration

    Swift

    let temporaryDirectoryURL = URL(fileURLWithPath: NSTemporaryDirectory(), isDirectory: true)
        .appendingPathComponent("ChordProviderTMP", isDirectory: true)
  • The URL of the export PDF

    Declaration

    Swift

    var exportURL: URL
  • Export the song to a PDF

    Declaration

    Swift

    func exportSongToPDF() async throws -> Data
  • Get the optional media stored next to a song file

    Declaration

    Swift

    func getMedia()

ChordPro CLI integration

Init

Chords Menu

Show Chords Button

Chords As Diagram Toggle

Song Paging Picker

Chords Position Picker

Root Picker

Quality Picker

Base Fret Picker

Bass Picker

Frets Picker

Fingers Picker

Scale Slider

Editor Button

Clean Source Button

Transpose Buttons

Transpose Menu

Instrument Picker