Versions in this module Expand all Collapse all v1 v1.2.0 Nov 24, 2023 v1.1.0 Nov 18, 2023 Changes in this version type DetailedScale + FifthGeneratorRootDegree int v1.0.0 Nov 5, 2023 Changes in this version + var ErrChordNotFound = errors.New("chord not found") + var ErrChordQualityNotFound = errors.New("chord quality not found") + var ErrKeyNotFound = errors.New("key not found") + var ErrPitchNotFound = errors.New("pitch not found") + var ErrScaleNotFound = errors.New("scale not found") + type ChordFilter struct + Cardinality int + ChordQualityID int64 + RingNumber int + RootID int64 + ZeitlerNumber int + type DetailedChord struct + ID int64 + Name string + Quality SimplifiedChordQuality + RingNumber int + Root SimplifiedPitch + ZeitlerNumber int + type DetailedChordQuality struct + Cardinality int + ID int64 + IntervalPattern SliceInt + Name string + PitchClass SliceInt + RingNumber int + ZeitlerNumber int + type DetailedKey struct + Balanced bool + CenterX float64 + CenterY float64 + ID int + Name string + RingNumber int + Scale SimplifiedScale + Tonic SimplifiedPitch + ZeitlerNumber int + type DetailedPitch struct + Frequency float64 + ID int64 + Name string + RingNumber int + ZeitlerNumber int + type DetailedScale struct + Balanced bool + Cardinality int + ID int64 + Imperfection int + IntervalPattern SliceInt + Name string + Palindromic bool + Perfection int + PitchClass SliceInt + ReflectionalSymmetric bool + ReflectionalSymmetryAxes SliceInt + RingNumber int + RotationalSymmetric bool + RotationalSymmetryLevel int + ZeitlerNumber int + type Handler interface + InstallEndpoints func(router *mux.Router) + func NewHandler(logger *zap.Logger, service Service) Handler + type KeyFilter struct + Balanced *bool + Cardinality int + Imperfection *int + Palindromic *bool + Perfection *int + ReflectionalSymmetric *bool + RingNumber int + RotationalSymmetric *bool + RotationalSymmetryLevel int + ScaleID int64 + TonicID int64 + ZeitlerNumber int + type Repository interface + func NewRepository(logger *zap.Logger, db *sqlx.DB) Repository + type ScaleFilter struct + Balanced *bool + Cardinality int + Imperfection *int + Palindromic *bool + Perfection *int + ReflectionalSymmetric *bool + RingNumber int + RotationalSymmetric *bool + RotationalSymmetryLevel int + TonicID int64 + ZeitlerNumber int + type Service interface + func NewService(logger *zap.Logger, repository Repository) Service + type SimplifiedChord struct + ID int64 + Name string + type SimplifiedChordQuality struct + ID int64 + Name string + type SimplifiedKey struct + ID int64 + Name string + type SimplifiedPitch struct + ID int64 + Name string + type SimplifiedScale struct + ID int64 + Name string + type SliceInt []int + func (s *SliceInt) Scan(value interface{}) error