Home

Awesome

zazate.js

Zazate.js is music theory and notation package or module for Javascript, can be used by programmers, musicians, composers and researchers to make and investigate music. Zazate.js is integrated with a big numbers of functions related to find notes, chords and intervals.

Features

Installation

via npm:

$ npm install zazate.js

Usage

var zazate = require('zazate.js');
var result = zazate.notes.augment('C');
console.log(result); // print 'C#'

Use this syntax

var zazate = require('zazate.js');
zazate.<library>.<function>(arg1, arg2...);

In zazatz.js, there are the following libraries:

See functions of each library in documentation below.

Documentation

Index

More documentation is coming soon!!

<a name="notes" /> ### notes --------------------------------------- <a name="notes_fifths" /> #### fifths Just a list(array): ['F', 'C', 'G', 'D', 'A', 'E', 'B']
<a name="notes_augment" /> #### augment(note) Augments the given note ```js zazate.notes.augment('C'); // return 'C#' zazate.notes.augment('Cb'); // return 'C' ```
<a name="notes_diminish" /> #### diminish(note) Diminishes the given note ```js zazate.notes.diminish('C'); // return 'Cb' zazate.notes.diminish('C#'); // return 'C' ```
<a name="notes_is_enharmonic" /> #### is_enharmonic(note1, note2) Test whether note1 and note2 are enharmonic, ie. they sound the same
<a name="notes_is_valid_note" /> #### is_valid_note(note) Returns true if note is in a recognised format. false if not
<a name="notes_note_to_int" /> #### note_to_int(note) Converts notes in the form of C, C#, Cb, C##, etc. to an integer in the range of 0-11. Throws an Error exception if the note format is not recognised.
<a name="notes_int_to_note" /> #### int_to_note(note_int) Converts integers in the range of 0-11 to notes in the form of C or C# (no Cb). You can use int_to_note in diatonic_key to do theoretically correct conversions that bear the key in mind. Throws a Error exception if the note_int is not in range(0,12).
<a name="notes_remove_redundant_accidentals" /> #### remove_redundant_accidentals(note) Removes redundant #'s and b's from the given note. For example: C##b becomes C#, Eb##b becomes E, etc.
<a name="notes_to_major" /> #### to_major(note) Returns the major of note. ```js zazate.notes.to_major('A'); // return 'C' ```
<a name="notes_to_minor" /> #### to_minor(note) Returns the minor of note. ```js zazate.notes.to_minor('C'); // return 'A' ```
<a name="diatonic" /> ### diatonic --------------------------------------- <a name="diatonic_basic_keys" /> #### basic_keys Just a list(array): ['Gb', 'Db', 'Ab', 'Eb', 'Bb', 'F', 'C', 'G', 'D', 'A', 'E', 'B', 'F#', 'C#', 'G#', 'D#', 'A#']
<a name="diatonic_get_notes" /> #### get_notes(key) Returns an ordered list of the notes in this key. For example: if the key is set to 'F', this function will return ['F', 'G', 'A', 'Bb', 'C', 'D', 'E']. Exotic or ridiculous keys like 'C####' or even 'Gbb##bb#b##' will work; Note however that the latter example will also get cleaned up to 'G'. This function will raise an Error if the key isn't recognised
<a name="diatonic_int_to_note" /> #### int_to_note(note_int, key) A better implementation of int_to_note found in the [notes](#notes) module. This version bears the key in mind and thus creates theoretically correct notes. Will throw an Error if note_int is not in range(0,12)
<a name="diatonic_interval" /> #### interval(key, start_note, interval) Returns the note found at the interval starting from start_note in the given key. For example interval('C', 'D', 1) will return 'E'. Will raise an Error if the start_note is not a valid note.
<a name="intervals" /> ### intervals --------------------------------------- <a name="intervals_determine" /> #### determine(note1, note2, shorthand) * **Default values**: shorthand = false * Names the interval between note1 and note2.
zazate.intervals.determine("C", "E"); // return 'major third'
zazate.intervals.determine("C", "Eb"); // return 'minor third'
zazate.intervals.determine("C", "E#"); // return 'augmented third'
zazate.intervals.determine("C", "Ebb"); // return 'diminished third'
zazate.intervals.determine("C", "G"); // return 'perfect fifth'
zazate.intervals.determine("C", "F"); // return 'perfect fourth'

<a name="intervals_fifth" /> #### fifth(note, key) Take the diatonic fifth of note in key. ```js zazate.intervals.fifth("E", "C"); // return 'B' zazate.intervals.fifth("E", "F"); // return 'Bb' ```
<a name="intervals_fourth" /> #### fourth(note, key) Take the diatonic fourth of note in key. ```js zazate.intervals.fourth("E", "C"); // return 'A' zazate.intervals.fourth("E", "B"); // return 'A#' ```
<a name="intervals_from_shorthand" /> #### from_shorthand(note, interval, up) * **Default values**: up = true * Returns the note on interval up or down.
zazate.intervals.from_shorthand("A", "b3"); // return 'C'
zazate.intervals.from_shorthand("D", "2"); // return 'A'
zazate.intervals.from_shorthand("E", "2", false); // return 'D'

<a name="intervals_get_interval" /> #### get_interval(note, interval, key) * **Default values**: key = 'C' * Gets the note an interval (in half notes) away from the given note. This will produce mostly theoretical sound results, but you should use the minor and major functions to work around the corner cases.
<a name="intervals_invert" /> #### invert(interval) Invert an interval represented as [note1, note2]. ```js zazate.intervals.invert(["C", "E"]); // return ["E", "C"] ```
<a name="intervals_is_consonant" /> #### is_consonant(note1, note2, include_fourths) * **Default values**: include_fourths = true * A consonance is a harmony, chord, or interval considered stable, as opposed to a dissonance (see is_dissonant). This function tests whether the given interval is consonant. This basically means that it checks whether the interval is (or sounds like) a unison, third, sixth, perfect fourth or perfect fifth. In classical music the fourth is considered dissonant when used contrapuntal, which is why you can choose to exclude it.
<a name="intervals_is_dissonant" /> #### is_dissonant(note1, note2, include_fourths) * **Default values**: include_fourths = true * Tests whether an interval is considered unstable, dissonant. In the default case perfect fourths are considered consonant, but this can be changed with the exclude_fourths flag.
<a name="intervals_is_imperfect_consonant" /> #### is_imperfect_consonant(note1, note2) Imperfect consonances are either minor or major thirds or minor or major sixths.
<a name="intervals_is_perfect_consonant" /> #### is_perfect_consonant(note1, note2, include_fourths) * **Default values**: include_fourths = true * Perfect consonances are either unisons, perfect fourths or fifths, or octaves (which is the same as a unison in this model; see the container.Note class for more). Perfect fourths are usually included as well, but are considered dissonant when used contrapuntal, which is why you can exclude them.
<a name="intervals_measure" /> #### measure(note1, note2) Returns an integer in the range of 0-11, determining the half note steps between note1 and note2. ```js zazate.intervals.measure("C", "D"); // return 2 zazate.intervals.measure("D", "C"); // return 10 ```
<a name="intervals_second" /> #### second(note, key) Take the diatonic second of note in key. ```js zazate.intervals.second("E", "C"); // return 'F' zazate.intervals.second("E", "D"); // return 'F#' ```
<a name="intervals_seventh" /> #### seventh(note, key) Take the diatonic seventh of note in key. ```js zazate.intervals.seventh("E", "C"); // return 'D' zazate.intervals.seventh("E", "B"); // return 'D#' ```
<a name="intervals_sixth" /> #### sixth(note, key) Take the diatonic sixth of note in key. ```js zazate.intervals.sixth("E", "C"); // return 'C' zazate.intervals.sixth("E", "B"); // return 'C#' ```
<a name="intervals_third" /> #### third(note, key) Take the diatonic third of note in key. ```js zazate.intervals.third("E", "C"); // return 'G' zazate.intervals.third("E", "E"); // return 'G#' ```
<a name="intervals_from_shorthand" /> #### unison(note, key) * **Default values**: key = null * One of the most useless methods ever written, which returns the unison of note. The key is not at all important, but is here for consistency reasons only.
zazate.intervals.unison("C"); // return 'C'

<a name="chords" /> ### chords --------------------------------------- <a name="chords_augmented_major_seventh" /> #### augmented_major_seventh(note) Builds an augmented major seventh chord on note. ```js zazate.chords.augmented_major_seventh("C") // ["C", "E", "G#", "B"] ```
<a name="chords_augmented_minor_seventh" /> #### augmented_minor_seventh(note) Builds an augmented minor seventh chord on note. ```js zazate.chords.augmented_minor_seventh("C") // ["C", "E", "G#", "Bb"] ```
<a name="chords_augmented_triad" /> #### augmented_triad(note) Builds an augmented triad on note. ```js zazate.chords.augmented_triad("C") // ["C", "E", "G#"] ```
<a name="chords_determine" /> #### determine(chord, shorthand, no_inversions, no_polychords) * **Default values**: shorthand = false, no_inversions = false, no_polychords = false * Names a chord. Can determine almost every chord, from a simple triad to a fourteen note polychord.
<a name="chords_determine_extended_chord5" /> #### determine_extended_chord5(chord, shorthand, no_inversions, no_polychords) * **Default values**: shorthand = false, no_inversions = false, no_polychords = false * Determines the names of an extended chord
<a name="chords_determine_extended_chord6" /> #### determine_extended_chord6(chord, shorthand, no_inversions, no_polychords) * **Default values**: shorthand = false, no_inversions = false, no_polychords = false * Determines the names of an 6 note chord
<a name="chords_determine_extended_chord7" /> #### determine_extended_chord7(chord, shorthand, no_inversions, no_polychords) * **Default values**: shorthand = false, no_inversions = false, no_polychords = false * Determines the names of an 7 note chord
<a name="chords_determine_polychords" /> #### determine_polychords(chord, shorthand) * **Default values**: shorthand = false * Determines the polychords in chord. Can handle anything from polychords based on two triads to 6 note extended chords.
<a name="chords_determine_seventh" /> #### determine_seventh(seventh, shorthand, no_inversion, no_polychords) * **Default values**: shorthand = false, no_inversion = false, no_polychords = false * Determines the type of seventh chord. Returns the results in a lists, ordered on inversions. Expects seventh to be a list of 4 notes. If shorthand is set to true, results will be returned in chord shorthand ('Cmin7', etc.) - inversions will be dropped in that case. ```js zazate.chords.determine_seventh(['C', 'E', 'G', 'B']) // ['C major seventh'] ```
<a name="chords_determine_triad" /> #### determine_triad(triad, shorthand, no_inversions, placeholder) * **Default values**: shorthand = false, no_inversions = false, placeholder = None * Names the triad. Returns answers in a list. The third argument should not be given. If shorthand is true the answers will be in abbreviated form.

Can determine major, minor, diminished and suspended triads. Also knows about invertions.

zazate.chords.determine_triad(["A", "C", "E"]) // 'A minor triad'
zazate.chords.determine_triad(["C", "E", "A"]) // 'A minor triad, first inversion'
zazate.chordsdetermine_triad(["A", "C", "E"], true) // 'Am'

<a name="chords_diminished_seventh" /> #### diminished_seventh(note) Builds a diminished seventh chord on note. ```js zazate.chords.diminished_seventh("C") // ["C", "Eb", "Gb", "Bbb"] ```
<a name="chords_diminished_triad" /> #### diminished_triad(note) Builds a diminished triad on note. ```js zazate.chords.diminished_triad("C") // ["C", "Eb", "Gb"] ```
<a name="chords_dominant" /> #### dominant(key) Returns the dominant chord in key. ```js zazate.chords.dominant("C") // ["G", "B", "D"] ```
<a name="chords_dominant7" /> #### dominant7(key) Same as [dominant(key)](#chords_dominant), but returns seventh chord
<a name="chords_dominant_flat_five" /> #### dominant_flat_five(note) Builds a dominant flat five chord on note. ```js zazate.chords.dominant_flat_five("C") // ['C', 'E', 'Gb', 'Bb'] ```
<a name="chords_dominant_flat_ninth" /> #### dominant_flat_ninth(note) Builds a dominant flat ninth chord on note. ```js zazate.chords.dominant_flat_ninth("C") // ['C', 'E', 'G', 'Bb', 'Db'] ```
<a name="chords_dominant_ninth" /> #### dominant_ninth(note) Builds a dominant ninth chord on note. ```js zazate.chords.dominant_ninth("C") // ['C', 'E', 'G', 'Bb', 'D'] ```
<a name="chords_dominant_seventh" /> #### dominant_seventh(note) Builds a dominant seventh chord on note. ```js zazate.chords.dominant_seventh("C") // ["C", "E", "G", "Bb"] ```
<a name="chords_dominant_ninth" /> #### dominant_sharp_ninth(note) Builds a dominant sharp ninth chord on note. ```js zazate.chords.dominant_sharp_ninth("C") // ['C', 'E', 'G', 'Bb', 'D#'] ```
<a name="chords_dominant_sixth" /> #### dominant_sixth(note) Builds the altered chord 6/7 on note. ```js zazate.chords.dominant_sixth("C") // ['C', 'E', 'G', 'A', 'Bb'] ```
<a name="chords_dominant_thirteenth" /> #### dominant_thirteenth(note) Builds a dominant thirteenth chord on note. ```js zazate.chords.dominant_thirteenth('C') // ['C', 'E', 'G', 'Bb', 'D', 'A'] ```
<a name="chords_eleventh" /> #### eleventh(note) Builds an eleventh chord on note. ```js zazate.chords.eleventh("C") // ['C', 'G', 'Bb', 'F'] ```
<a name="chords_first_inversion" /> #### first_inversion(chord) The first inversion of a chord
<a name="chords_from_shorthand" /> #### from_shorthand(shorthand_string, slash) * **Default values**: slash = false * Takes a chord written in shorthand and returns the notes in the chord. The function can recognize triads, sevenths, sixths, ninths, elevenths, thirteenths, slashed chords and a number of altered chords. The second argument should not be given and is only used for a recursive call when a slashed chord or polychord is found. See [Wikibooks](http://en.wikibooks.org/wiki/Music_Theory/Complete_List_of_Chord_Patterns) for a nice overview of chord patterns.
zazate.chords.from_shorthand("Amin") // ["A", "C", "E"]
zazate.chords.from_shorthand("Am/M7") // ["F", "Ab", "C", "E"]
zazate.chords.from_shorthand("A") // ["A", "C#", "E"]
zazate.chords.from_shorthand("A/G") // ["G", "A", "C#", "E"]
zazate.chords.from_shorthand("Dm|G") // ["G", "B", "D", "F", "A"]

Recognised abbreviations: the letters m and M in the following abbreviations can always be substituted by respectively min, mi or - and maj or ma (eg. from_shorthand("Amin7") == from_shorthand("Am7"), etc.).


<a name="chords_half_diminished_seventh" /> #### half_diminished_seventh(note) Builds a half diminished seventh (=minor seventh flat five) chord on note. ```js zazate.chords.half_diminished_seventh("C") // ["C", "Eb", "Gb", "Bb"] ```
<a name="chords_hendrix_chord" /> #### hendrix_chord(note) Builds the famous Hendrix chord (7b12). ```js zazate.chords.hendrix_chord('C') // ['C', 'E', 'G', 'Bb', 'Eb'] ```
<a name="chords_int_desc" /> #### int_desc(tries) Helper function that returns the inversion of the triad in a string.
<a name="chords_invert" /> #### invert(chord) Inverts a given chord one time.
<a name="chords_lydian_dominant_seventh" /> #### lydian_dominant_seventh(note) Builds the lydian dominant seventh (7#11) on note. ```js zazate.chords.lydian_dominant_seventh('C') // ['C', 'E', 'G', 'Bb', 'F#'] ```
<a name="chords_major_ninth" /> #### major_ninth(note) Builds a major ninth chord on note. ```js zazate.chords.major_ninth("C") // ['C', 'E', 'G', 'B', 'D'] ```
<a name="chords_major_seventh" /> #### major_seventh(note) Builds a major seventh chord on note. ```js zazate.chords.major_seventh("C") // ["C", "E", "G", "B"] ```
<a name="chords_major_sixth" /> #### major_sixth(note) Builds a major sixth chord on note. ```js zazate.chords.major_sixth("C") // ['C', 'E', 'G', 'A'] ```
<a name="chords_major_thirteenth" /> #### major_thirteenth(note) Builds a major thirteenth chord on note. ```js zazate.chords.major_thirteenth("C") // ['C', 'E', 'G', 'B', 'D', 'A'] ```
<a name="chords_major_triad" /> #### major_triad(note) Builds a major triad chord on note. ```js zazate.chords.major_triad("C") // ["C", "E", "G"] ```
<a name="chords_mediant" /> #### mediant(key) Returns the mediant chord in key. ```js zazate.chords.mediant("C") // ["E", "G", "B"] ```
<a name="chords_mediant7" /> #### mediant7(key) Same as mediant(key), but returns seventh chord
<a name="chords_minor_major_seventh" /> #### minor_major_seventh(note) Builds a minor major seventh chord on note. ```js zazate.chords.minor_major_seventh("C") // ["C", "Eb", "G", "B"] ```
<a name="chords_minor_ninth" /> #### minor_ninth(note) Builds a minor ninth chord on note. ```js zazate.chords.minor_ninth("C") // ['C', 'Eb', 'G', 'Bb', 'D'] ```
<a name="chords_minor_seventh" /> #### minor_seventh(note) Builds a minor seventh chord on note. ```js zazate.chords.minor_seventh("C") // ["C", "Eb", "G", "Bb"] ```
<a name="chords_minor_seventh_flat_five" /> #### minor_seventh_flat_five(note) See half_diminished_seventh(note) for docs
<a name="chords_minor_sixth" /> #### minor_sixth(note) Builds a minor sixth chord on note. ```js zazate.chords.minor_sixth("C") // ['C', 'Eb', 'G', 'A'] ```
<a name="chords_minor_thirteenth" /> #### minor_thirteenth(note) Builds a minor thirteenth chord on note. ```js zazate.chords.minor_thirteenth("C") // ['C', 'Eb', 'G', 'Bb', 'D', 'A'] ```
<a name="chords_minor_triad" /> #### minor_triad(note) Builds a minor triad chord on note. ```js zazate.chords.minor_triad("C") // ["C", "Eb", "G"] ```
<a name="chords_second_inversion" /> #### second_inversion(chord) Returns the second inversion of chord.
<a name="chords_seventh" /> #### seventh(note, key) Returns the seventh chord on note in key. ```js zazate.chords.seventh("C", "C") // ["C", "E", "G", "B"] ```
<a name="chords_sevenths" /> #### sevenths(key) Returns all the sevenths chords in key in a list.
<a name="chords_sixth_ninth" /> #### sixth_ninth(note) Returns the sixth/ninth chord on note in key. ```js zazate.chords.sixth_ninth('C') // ['C', 'E', 'G', 'A', 'D'] ```
<a name="chords_subdominant" /> #### subdominant(key) Returns the subdominant chord in key. ```js zazate.chords.subdominant('C') // ["F", "A", "C"] ```
<a name="chords_subdominant7" /> #### subdominant7(key) Same as subdominant(key), but returns seventh chord.
<a name="chords_submediant" /> #### submediant(key) Returns the submediant chord in key. ```js zazate.chords.submediant('C') // ["A", "C", "E"] ```
<a name="chords_submediant7" /> #### submediant7(key) Same as submediant(key), but returns seventh chord.
<a name="chords_subtonic" /> #### subtonic(key) Returns the subtonic chord in key. ```js zazate.chords.subtonic('C') // ['B', 'D', 'F'] ```
<a name="chords_subtonic7" /> #### subtonic7(key) Same as subtonic(key), but returns seventh chord
<a name="chords_supertonic" /> #### supertonic(key) Returns the supertonic chord in key. ```js zazate.chords.supertonic('C') // ["D", "F", "A"] ```
<a name="chords_supertonic7" /> #### supertonic7(key) Same as supertonic(key), but returns seventh chord.
<a name="chords_suspended_fourth_ninth" /> #### suspended_fourth_ninth(note) Builds a suspended fourth flat ninth chord on note. ```js zazate.chords.suspended_fourth_ninth('C') // ['C', 'F', 'G', 'Db'] ```
<a name="chords_suspended_fourth_triad" /> #### suspended_fourth_triad(note) Builds a suspended fourth triad on note. ```js zazate.chords.suspended_fourth_triad('C') // ["C", "F", "G"] ```
<a name="chords_suspended_second_triad" /> #### suspended_second_triad(note) Builds a suspended second triad on note. ```js zazate.chords.suspended_second_triad('C') // ["C", "D", "G"] ```
<a name="chords_suspended_seventh" /> #### suspended_seventh(note) Builds a suspended (flat) seventh chord on note. ```js zazate.chords.suspended_seventh('C') // ["C", "F", "G", "Bb"] ```
<a name="chords_suspended_triad" /> #### suspended_triad(note) An alias for suspended_fourth_triad
<a name="chords_third_inversion" /> #### third_inversion(chord) Returns the third inversion of chord.
<a name="chords_tonic" /> #### tonic(key) Returns the tonic chord in key. ```js zazate.chords.tonic('C') // ["C", "E", "G"] ```
<a name="chords_tonic7" /> #### tonic7(key) Same as tonic(key), but returns seventh chord instead
<a name="chords_triad" /> #### triad(note, key) Returns the triad on note in key as an array. ```js zazate.chords.triad("E", "C") // ["E", "G", "B"] zazate.chords.triad("E", "B") // ["E", "G#", "B"] ```
<a name="chords_triads" /> #### triads(key) Returns all the triads in key. Implemented using a cache.
<a name="scales" /> ### scales --------------------------------------- <a name="scales_aeolian" /> #### aeolian(note) Returns the aeolian mode scale starting on note. ```js zazate.scales.aeolian("A") // ["A", "B", "C", "D", "E", "F", "G"] ```
<a name="scales_determine" /> #### determine(scale) Determines the kind of scale. Can recognize all the diatonic modes and the minor scales. ```js zazate.scales.determine(["C", "D", "E", "F", "G", "A", "B"]) // 'C ionian' ```
<a name="scales_diatonic" /> #### diatonic(note) Returns the diatonic mode scale starting on note. ```js zazate.scales.diatonic("C") // ["C", "D", "E", "F", "G", "A", "B"] ```
<a name="scales_diminished" /> #### diminished(note) Returns the diminished mode scale starting on note. ```js zazate.scales.diminished("C") // ['C', 'D', 'Eb', 'F', 'Gb', 'Ab', 'A', 'B'] ```
<a name="scales_dorian" /> #### dorian(note) Returns the dorian mode scale starting on note. ```js zazate.scales.dorian("D") // ["D", "E", "F", "G", "A", "B", "C"] ```
<a name="scales_get_notes" /> #### get_notes(key) Returns an ordered array of the notes in this key. For example: if the key is set to 'F', this function will return ['F', 'G', 'A', 'Bb', 'C', 'D', 'E']. Exotic or ridiculous keys like 'C####' or even 'Gbb##bb#b##' will work; Note however that the latter example will also get cleaned up to 'G'. This function will raise an NoteFormatError if the key isn't recognised
<a name="scales_harmonic_minor" /> #### harmonic_minor(note) Returns the harmonic minor mode scale starting on note. ```js zazate.scales.harmonic_minor("A") // ["A", "B", "C", "D", "E", "F", "G#"] ```
<a name="scales_ionian" /> #### ionian(note) Returns the ionian mode scale starting on note. ```js zazate.scales.ionian("C") // ["C", "D", "E", "F", "G", "A", "B"] ```
<a name="scales_locrian" /> #### locrian(note) Returns the locrian mode scale starting on note. ```js zazate.scales.locrian("B") // ["B", "C", "D", "E", "F", "G", "A"] ```
<a name="scales_lydian" /> #### lydian(note) Returns the lydian mode scale starting on note. ```js zazate.scales.lydian("F") // ["F", "G", "A", "B", "C", "D", "E"] ```
<a name="scales_melodic_minor" /> #### lydian(note) Returns the melodic minor mode scale starting on note. ```js zazate.scales.melodic_minor("A") // ["A", "B", "C", "D", "E", "F#", "G#"] ```
<a name="scales_mixolydian" /> #### mixolydian(note) Returns the mixolydian mode scale starting on note. ```js zazate.scales.mixolydian("G") // ["G", "A", "B", "C", "D", "E", "F"] ```
<a name="scales_natural_minor" /> #### natural_minor(note) Returns the natural minor mode scale starting on note. ```js zazate.scales.natural_minor("A") // ["A", "B", "C", "D", "E", "F", "G"] ```
<a name="scales_phrygian" /> #### phrygian(note) Returns the phrygian mode scale starting on note. ```js zazate.scales.phrygian("E") // ["E", "F", "G", "A", "B", "C", "D"] ```
<a name="scales_whole_note" /> #### whole_note(note) Returns the whole note mode scale starting on note. ```js zazate.scales.whole_note("E") // ["C", "D", "E", "F#", "G#", "A#"] ```
<a name="meter" /> ### meter A meter is represented by a array. 4/4 time would look like [4,4], 3/4 like [3,4], etc.
<a name="meter_common_time" /> #### common_time A meter (array) with value: [4,4]
<a name="meter_cut_time" /> #### cut_time A meter (array) with value: [2,2]
<a name="meter_is_asymmetrical" /> #### is_asymmetrical(meter)

Returns true if meter is an asymmetrical meter, false otherwise.

zazate.meter.is_asymmetrical([3,4]) // true
zazate.meter.is_asymmetrical([3,4]) // false

<a name="meter_is_compound" /> #### is_compound(meter) Returns true if meter is a compund meter, false otherwise. ```js zazate.meter.is_compound([3,4]) // true zazate.meter.is_compound([3,4]) // false ```
<a name="meter_is_simple" /> #### is_simple(meter) Returns true if meter is a simple meter, false otherwise. ```js zazate.meter.is_simple([3,4]) // true zazate.meter.is_simple([3,4]) // true ```
<a name="meter_is_valid" /> #### is_valid(meter) Returns true if meter is a valid tuple representation of a meter. Examples for meters are [3,4] for 3/4, [4,4] for 4/4, etc.
<a name="meter_valid_beat_duration" /> #### valid_beat_duration(duration) Returns true when log2(duration) is an integer.