interval

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2016 License: MIT Imports: 1 Imported by: 0

README

Interval

GoDoc Coverage

An opinionated model of a musical interval.

An interval is the difference between two pitches.

Author: Charney Kaye

Documentation

Overview

An interval is the difference between two pitches.

Index

Constants

View Source
const (
	I1  = Interval(1)
	I2  = Interval(2)
	I3  = Interval(3)
	I4  = Interval(4)
	I5  = Interval(5)
	I6  = Interval(6)
	I7  = Interval(7)
	I8  = Interval(8)
	I9  = Interval(9)
	I10 = Interval(10)
	I11 = Interval(11)
	I12 = Interval(12)
	I13 = Interval(13)
	I14 = Interval(14)
	I15 = Interval(15)
	I16 = Interval(15)
)

Interval between notes.

Variables

View Source
var Order = []Interval{
	I1,
	I2,
	I3,
	I4,
	I5,
	I6,
	I7,
	I8,
	I9,
	I10,
	I11,
	I12,
	I13,
	I14,
	I15,
	I16,
}

Order of all the intervals, e.g. for stepping from the root of a chord outward to its other tones.

Functions

func ForAllIn

func ForAllIn(setIntervals map[Interval]note.Class, callback ClassIteratorFunc)

Types

type ClassIteratorFunc

type ClassIteratorFunc func(class note.Class)

type Interval

type Interval int

Interval between notes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL