Skip to content

Instantly share code, notes, and snippets.

@lilybugged
Created September 4, 2021 09:45
Show Gist options
  • Save lilybugged/0275b759e2d3d8e710b458accf6b594e to your computer and use it in GitHub Desktop.
Save lilybugged/0275b759e2d3d8e710b458accf6b594e to your computer and use it in GitHub Desktop.
--Example for song API using a table as input
local song = require("song")
local noteList = {
"D5","C#5","B5","F#5","F#5","F#5","F#5","F#5","5","F#5","B5","B5","B5","B5","A5","B5","B5","G5","G5","G5","G5","G5","B5","B5","B5","B5","B5","C#5","D5","D5","A5","A5","A5","A5","A5","A5","D5","D5","D5","D5","E5","E5","E5","C#5","D5","C#5","B5","F#5","F#5","F#5","F#5","F#5","F#5","B5","B5","B5","B5","A5","B5","B5","G5","G5","G5","G5","G5","B5","B5","B5","B5","B5","C#5","D5","D5","A5","A5","A5","A5","A5","A5","D5","D5","D5","D5","E5","E5","E5","C#5","E5","E5","F#5","E5","F#5","E5","F#5","E5","F#5","F#5","E5","F#5","E5","F#5","G5","G5","G5","D5","D5","D5","G5","G5","G5","G5","G5","A5","G5","G5","F#5","F#5","F#5","F#5","F#5","F#5","A5","G5","F#5","F#5","E5","E5","E5","E5","E5","E5","E5","E5","E5","C#5","D5","F#5","E5","F#5","E5","F#5","E5","F#5","F#5","E5","F#5","E5","F#5","G5","G5","G5","D5","D5","D5","G5","G5","G5","G5","G5","A5","G5","G5","F#5","F#5","F#5","F#5","F#5","F#5","A5","G5","F#5","F#5","E5","E"
}
song.play(noteList)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment