From dcba6016481fee6443a560c8654930a4f9295ab1 Mon Sep 17 00:00:00 2001 From: "James A. Clark" Date: Thu, 15 Sep 2022 18:01:10 -0500 Subject: [PATCH] removed play rate I removed it because the frames TANK if you set the playrate above 1.0 --- src/SystemAssets/card-pressed.png | Bin 4597 -> 4542 bytes src/crankFuncs.lua | 33 ------------------------------ src/main.lua | 4 ++-- src/pdxinfo | 4 ++-- 4 files changed, 4 insertions(+), 37 deletions(-) delete mode 100644 src/crankFuncs.lua diff --git a/src/SystemAssets/card-pressed.png b/src/SystemAssets/card-pressed.png index 706455a59cc875ca6d7f6b0b1b25687df2377cdc..9aa6f6c1eed744c92b9ad40004da25da1c8a42f1 100644 GIT binary patch delta 2868 zcmV-43(NHNBfcZBcm-K8Nkl6vpxGdo4OeR;~cAK&P2%+H_iKlP+bt zG+1hvcB(Yu704B2r5Lyu-*W&*z{7}NThRY6YbOpMBE-kT;bS@?vM~h!Q1V~)F91LZ zlVA))lQ0HqlV1!Qe;res^dW%e@?_-yke4U>_+8%ryvcMCCS%Y}Hh3wDYIJ!UKiU)p zBgb@98;Y(5pjBe?Co`B!Fv=dIRR~_7MONdU^g12s^k+!`_r7@P2(${p3$#%JVR`;=AzF>##e?$X^?AQd z*?oRBV{R{ee_QVE$&iR;HTx;#?tLJ5fhG#4((Cl4KOW0?Z2s-^xLD$j5WIL$p}Z}N zZAvR%zL_yi5lXmN$YNps&4%DU5WIL;;q;q~SG(|yS7YhXs)Pc97Y{6y#jqzGdz(d5 zy&*lQ&_VD5fHHy?0F)8Dtu~Tid*XiXy5?AM3iR9PjbqbEvy2TDYHI^ zxyLhEt#ZF{_khK)JfF1sv$}IQpX~zLltOo9wgaL2n4C>vstr}zoloSu47`o2=OKTG zt712TySqW7tD)ExP~Giu={oJbm8wQpgY7~oiVE9-daRDn%o9ka*L?+K?3KQ4mzo|sVmR@iL~rJSp)U(*I&e)?D5 z^LzY*7Zb(z!L+EIp-b<=VC&Zw{WnN&_#;iMI$VJ z<_`oKT@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8x-|5`d{lQ2w%)ApU96x4n6?tME(cogxgcLV82iR O0000 = playdate.graphics - -function updateCrank() - local crankState = playdate.getCrankTicks(4) - local textRect = playdate.geometry.rect.new(0, 110, 400, 20) - local textColor - - if darkMode == true then - textColor = gfx.kDrawModeCopy - else - textColor = gfx.kDrawModeFillWhite - end - - if playdate.isCrankDocked() == false and currentAudio:isPlaying() == true then - local text = "play rate: "..currentAudio:getRate().." - dock crank to hide" - gfx.fillRect(textRect) - gfx.setColor(bgColor) - gfx.setImageDrawMode(textColor) - gfx.drawTextInRect(text,textRect,nil,nil,kTextAlignment.center) - if crankState == 1 then - currentAudio:setRate(currentAudio:getRate()+0.25) - elseif crankState == -1 then - currentAudio:setRate(currentAudio:getRate()-0.25) - end - gfx.setColor(color) - gfx.setImageDrawMode(dMColor1) - end -end \ No newline at end of file diff --git a/src/main.lua b/src/main.lua index 0f8c178..e71bd0d 100644 --- a/src/main.lua +++ b/src/main.lua @@ -3,7 +3,7 @@ import "CoreLibs/ui" import "CoreLibs/nineslice" import "CoreLibs/timer" import "funcs" -import "crankFuncs" +-- import "crankFuncs" local gfx = playdate.graphics @@ -353,7 +353,7 @@ function playdate.update() end end - updateCrank() + -- updateCrank() end currentAudio:setFinishCallback(handleSongEnd) diff --git a/src/pdxinfo b/src/pdxinfo index 08655e6..78dfe8c 100644 --- a/src/pdxinfo +++ b/src/pdxinfo @@ -2,6 +2,6 @@ name=musik author=nanobot567 description=simple music player for playdate bundleID=com.nano.musik -version=3.1 -buildNumber=718 +version=3.2 +buildNumber=732 imagePath=SystemAssets \ No newline at end of file