Skip to content

Instantly share code, notes, and snippets.

View ashwin153's full-sized avatar

Ashwin Madavan ashwin153

View GitHub Profile
@ashwin153
ashwin153 / SampleSong.scala
Last active February 9, 2017 01:04
Example song built using swara-music.
import Key._
import Phrase._
import Pitch._
// C Major Chord.
val cmaj = Set(
Note(Pitch(C, 4), volume = 0.60),
Note(Pitch(E, 4), volume = 0.50),
Note(Pitch(G, 4), volume = 0.45)
)