forked from matheusn17/Cool-Piano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.lua
34 lines (28 loc) · 891 Bytes
/
main.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--This is the mais file. Put here only whats is the root to other things, just to know the order that they are processed.
--All the requires must be called in this file.
--The require sequence is important. Dont modify it.
--If you want to make any mod for this project, i recommend to create a folder named "mods", put your mod fiels theres and require then here.
require "defs"
require "utils"
require "loads"
require "controls"
require "gui"
require "notesGen"
require "coreAlterations"
function love.load()
loadPiano()
generateSenoidalNaturalNotes(44100, 16, 1)
generateSenoidalSustenidoNotes(44100, 16, 1)
end
function love.update(dt)
fadeInNaturalNotes(dt)
fadeOutNaturalNotes(dt)
fadeInSustenidoNotes(dt)
fadeOutSustenidoNotes(dt)
mouseDown()
end
function love.draw()
drawNudeCanvas()
drawKeys()
drawUpperPanelButtons()
end