word-notes-datatype-0.1.0.0: General datatypes for music creation for one instrument
Copyright(c) OleksandrZhabenko 2024
LicenseMIT
Maintaineroleksandr.zhabenko@yahoo.com
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

Composition.Sound.Datatype

Description

Inspired by the video by the link: https://www.youtube.com/watch?v=rhgt3lZ1RUU

Synopsis

Documentation

data Instrument a b c d e f g Source #

A most general datatype that is intended to represent an excerpt of a part of a musical instrument through the entire work. The values with equal group belong to the one music phrase. freepars are used to classify musical work and to provide general creative intentions for it. Usually it is a complex datatype with some inner structure so that it can be used efficiently and creatively enough.

Constructors

Ins 

Fields

Instances

Instances details
(Read a, Read b, Read c, Read d, Read e, Read f, Read g) => Read (Instrument a b c d e f g) Source # 
Instance details

Defined in Composition.Sound.Datatype

Methods

readsPrec :: Int -> ReadS (Instrument a b c d e f g) #

readList :: ReadS [Instrument a b c d e f g] #

readPrec :: ReadPrec (Instrument a b c d e f g) #

readListPrec :: ReadPrec [Instrument a b c d e f g] #

(Show a, Show b, Show c, Show d, Show e, Show f, Show g) => Show (Instrument a b c d e f g) Source # 
Instance details

Defined in Composition.Sound.Datatype

Methods

showsPrec :: Int -> Instrument a b c d e f g -> ShowS #

show :: Instrument a b c d e f g -> String #

showList :: [Instrument a b c d e f g] -> ShowS #

(Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g) => Eq (Instrument a b c d e f g) Source # 
Instance details

Defined in Composition.Sound.Datatype

Methods

(==) :: Instrument a b c d e f g -> Instrument a b c d e f g -> Bool #

(/=) :: Instrument a b c d e f g -> Instrument a b c d e f g -> Bool #

data Notedata a Source #

Is intended to be generally used as notedata from the Instrument.

Constructors

Note a 
Inter a a 
Chord a a a 
Chord7 a a a a 
Chord9 a a a a a 
Chord11 a a a a a a 

Instances

Instances details
Read a => Read (Notedata a) Source # 
Instance details

Defined in Composition.Sound.Datatype

Show a => Show (Notedata a) Source # 
Instance details

Defined in Composition.Sound.Datatype

Methods

showsPrec :: Int -> Notedata a -> ShowS #

show :: Notedata a -> String #

showList :: [Notedata a] -> ShowS #

Eq a => Eq (Notedata a) Source # 
Instance details

Defined in Composition.Sound.Datatype

Methods

(==) :: Notedata a -> Notedata a -> Bool #

(/=) :: Notedata a -> Notedata a -> Bool #

data ParallelClassic a Source #

Is intended to be generally used as parallel from the Instrument e. g. for the solo piano musical work.

Constructors

LeftPar a 
RightPar a 
LeftSeq a 
RightSeq a