Skip to content

Instantly share code, notes, and snippets.

Avatar

Ashwin Madavan ashwin153

View GitHub Profile
@ashwin153
ashwin153 / SampleSong.scala
Last active Feb 9, 2017
Example song built using swara-music.
View SampleSong.scala
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)
)