Skip to content

Commit

Permalink
harmonic series
Browse files Browse the repository at this point in the history
  • Loading branch information
Sin-tel committed May 1, 2020
1 parent 61453a7 commit 6fa6a9e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ macOS and Linux work but only mouse input.
* R: Rectangular selection
* N: eNvelope tool
* D: Deselect
* Y: Hold down to view local harmonic series grid
* shift + D: duplicate selection
* [ and ]: chage brush radius (when applicable)
* Space: play/pause
Expand Down
20 changes: 11 additions & 9 deletions src/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ function View.draw()




--[[for i= math.floor(iy/100)+1,math.floor(ey/100) do
love.graphics.setColor(1,1,1,.25*sy)
if i%12 == 0 then
love.graphics.setColor(1,1,1,3*sy)
if not love.keyboard.isDown('y') then
for i= math.floor(iy/100)+1,math.floor(ey/100) do
love.graphics.setColor(1,1,1,.25*sy)
if i%12 == 0 then
love.graphics.setColor(1,1,1,3*sy)
end
love.graphics.line(sx*ix,sy*i*100,sx*ex,sy*i*100)
end
love.graphics.line(sx*ix,sy*i*100,sx*ex,sy*i*100)
end]]
end

for i= math.floor(ix/100)+1,math.floor(ex/100) do
love.graphics.setColor(1,1,1,.25*sx)
Expand Down Expand Up @@ -126,8 +127,9 @@ function View.draw()




--drawHarmonics(ix,iy,ex,ey,sx,sy)
if love.keyboard.isDown('y') then
drawHarmonics(ix,iy,ex,ey,sx,sy)
end

--[[love.graphics.setColor(0,1,1,0.2)
for i,v in ipairs(song.track[1]) do
Expand Down

0 comments on commit 6fa6a9e

Please sign in to comment.