Skip to content

henrilhos/music-theory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Music Theory

Problem

Given the musical notes (C, C#, D, D#, E, F, F#, G, G#, A, A#, B) we want to build the Major and Minor scales.

Requirements

Input

Receives the root note

Output

Returns the Major and Minor scale

Tests

Must test for:

  • C Major scale
  • C Minor scale

Example

Input Output
C Major: C D E F G A B
Minor: C D Eb F G Ab Bb

The Lua Version

Dependencies

  • Lua (>= 5.3.5)
  • Busted (>= 2.0.0)

Running

You can run the tests on the terminal with Busted

busted music_theory_spec.lua

About

Music theory in Lua

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages