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

Synth.Shared.Note

Description

The Note type and support.

Synopsis

Documentation

data Note Source #

IR for im. These are the inputs for im synthesizers.

Constructors

Note 

Fields

Instances

Instances details
Show Note Source # 
Instance details

Defined in Synth.Shared.Note

Methods

showsPrec :: Int -> Note -> ShowS #

show :: Note -> String #

showList :: [Note] -> ShowS #

Eq Note Source # 
Instance details

Defined in Synth.Shared.Note

Methods

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

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

Pretty.Pretty Note Source # 
Instance details

Defined in Synth.Shared.Note

Pretty.Pretty ImPerformance Source # 
Instance details

Defined in Ui.UiConfig

Serialize.Serialize Note Source # 
Instance details

Defined in Synth.Shared.Note

type PatchName = Text Source #

Unique identifier for a patch.

note :: PatchName -> ScoreT.Instrument -> RealTime -> RealTime -> Note Source #

Make a Note for testing.

serialize

hash

newtype Hash Source #

The Hash is the MD5 digest of the note.

I used to use CRC32, but got a collision right away: > 2861715819 & 157939100 = 1544801946 > 1257719070 & 3909935593 = 1544801946

Instances

Instances details
Monoid Hash Source # 
Instance details

Defined in Synth.Shared.Note

Methods

mempty :: Hash #

mappend :: Hash -> Hash -> Hash #

mconcat :: [Hash] -> Hash #

Semigroup Hash Source # 
Instance details

Defined in Synth.Shared.Note

Methods

(<>) :: Hash -> Hash -> Hash #

sconcat :: NonEmpty Hash -> Hash #

stimes :: Integral b => b -> Hash -> Hash #

Show Hash Source # 
Instance details

Defined in Synth.Shared.Note

Methods

showsPrec :: Int -> Hash -> ShowS #

show :: Hash -> String #

showList :: [Hash] -> ShowS #

Eq Hash Source # 
Instance details

Defined in Synth.Shared.Note

Methods

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

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

Ord Hash Source # 
Instance details

Defined in Synth.Shared.Note

Methods

compare :: Hash -> Hash -> Ordering #

(<) :: Hash -> Hash -> Bool #

(<=) :: Hash -> Hash -> Bool #

(>) :: Hash -> Hash -> Bool #

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

max :: Hash -> Hash -> Hash #

min :: Hash -> Hash -> Hash #

Pretty.Pretty Hash Source # 
Instance details

Defined in Synth.Shared.Note

Serialize.Serialize Hash Source # 
Instance details

Defined in Synth.Shared.Note

encodeHash :: Hash -> String Source #

Encode to a short string which I can stick in a filename.