Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Ui.Track

Description

The Track type and supporting functions.

Synopsis

track

data Track Source #

An event track, which contains some configuration, and the actual events that make up the score.

Constructors

Track 

Fields

Instances

Instances details
Show Track Source # 
Instance details

Defined in Ui.Track

Methods

showsPrec :: Int -> Track -> ShowS #

show :: Track -> String #

showList :: [Track] -> ShowS #

DeepSeq.NFData Track Source # 
Instance details

Defined in Ui.Track

Methods

rnf :: Track -> () #

Eq Track Source # 
Instance details

Defined in Ui.Track

Methods

(==) :: Track -> Track -> Bool #

(/=) :: Track -> Track -> Bool #

Pretty.Pretty Track Source # 
Instance details

Defined in Ui.Track

Serialize Track Source # 
Instance details

Defined in Cmd.Serialize

track :: Text -> Events.Events -> Track Source #

Construct a new Track.

data SetStyleHigh Source #

High level SetStyle, with information provided automatically.

It's a bit awkward to have two SetStyles, but some information can only be supplied by Ui.Sync.

Constructors

SetStyleHigh 

Fields

track signal

data RenderStyle Source #

RenderStyles can take an optional source which says which control the signal comes from. This is only for note tracks, and will extract the final signal from the events and display that.

Non-note tracks will ignore the RenderSource, and note tracks will ignore a RenderStyle without a RenderSource.

This has no effect on the actual rendering, since it just draws a signal and doesn't know where it came from, but is configuration for the code that goes and looks for that signal.

Instances

Instances details
Show RenderStyle Source # 
Instance details

Defined in Ui.Track

Eq RenderStyle Source # 
Instance details

Defined in Ui.Track

Pretty.Pretty RenderStyle Source # 
Instance details

Defined in Ui.Track

Serialize RenderStyle Source # 
Instance details

Defined in Cmd.Serialize

type TrackSignals = Map (Id.BlockId, Id.TrackId) TrackSignal Source #

Each (BlockId, TrackId) pair can have a TrackSignal associated with it.

There's no particular reason a ruler couldn't also have a signal in it, except that it might look a little crowded. But RulerId isn't supported. If there's ever a need I can add it.

data TrackSignal Source #

Similar to Derive.TrackWarp, the signal generated by signal tracks is stashed away in TrackSignals during derivation so it can be sent to the UI for display.

Signals are in real time, but the UI wants to display them in score time. If the block happens to have a linear warp then the mapping is trivial, and I don't have to bother generating another signal just for display. However, if there is a non-trivial warp, the signal will have to be unwarped back to ScoreTime.

Instances

Instances details
Show TrackSignal Source # 
Instance details

Defined in Ui.Track

CStorable TrackSignal Source # 
Instance details

Defined in Ui.TrackC

DeepSeq.NFData TrackSignal Source # 
Instance details

Defined in Ui.Track

Methods

rnf :: TrackSignal -> () #

Eq TrackSignal Source # 
Instance details

Defined in Ui.Track

Pretty.Pretty TrackSignal Source # 
Instance details

Defined in Ui.Track

waveform

data WaveformChunk Source #

Draw one chunk of waveform on the track. Corresponds to PeakCache::Params.

Constructors

WaveformChunk 

Fields

Instances

Instances details
Show WaveformChunk Source # 
Instance details

Defined in Ui.Track

Pretty.Pretty WaveformChunk Source # 
Instance details

Defined in Ui.Track