CaptainSpaceCat

Noteutils

Jun 7th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. function loadMusic(filename)
  2.   local notes = {}
  3.   for line in io.lines(filename) do
  4.     notes[#notes + 1] = {}
  5.     for i = 1, 4 do
  6.       notes[#notes][i] = line:sub(i, i)
  7.     end
  8.   end
  9.   return notes
  10. end
Add Comment
Please, Sign In to add comment