Including a Github package into my project (using Atom)

Hey guys, 

I’m trying to write a guitar tuner application using a phones in-built microphone and fft. I have found a luafft package on Github ( https://github.com/h4rm/luafft ) but I have no idea whatsoever on how I can include this in my corona project. 

I have tried using Atoms in-built package installer but I think that only has packages that change the aesthetics of the text-editor but not the code itself. I’m guessing I will have to include this package through corona somehow and perhaps have the unzipped folder in my project folder? 

Any help would be much appreciated! I have so far managed to avoid using GitHub but it is probably a good time to learn how it all works if there are any resources anyone would like to suggest! 

Thanks

I don’t really think you can do this, but…

There is this: https://github.com/develephant/corona-rocks

I’m unclear on whether this ONLY lets you use LuaRocks packages in the simulator or if it lets you build them into your apps too.

My thought is simulator only, but you can experiment and let us know.

I should also say, if you put in some time and effort, you should be able to mod that pure-Lua module:

https://github.com/h4rm/luafft/blob/master/src/luafft.lua

And simply require it into your project.  My guess is that you will need to make a few substitutions however.  i.e. Wherever it uses a LuaRocks feature you’ll need to provide replacement code.

-Ed

I don’t really think you can do this, but…

There is this: https://github.com/develephant/corona-rocks

I’m unclear on whether this ONLY lets you use LuaRocks packages in the simulator or if it lets you build them into your apps too.

My thought is simulator only, but you can experiment and let us know.

I should also say, if you put in some time and effort, you should be able to mod that pure-Lua module:

https://github.com/h4rm/luafft/blob/master/src/luafft.lua

And simply require it into your project.  My guess is that you will need to make a few substitutions however.  i.e. Wherever it uses a LuaRocks feature you’ll need to provide replacement code.

-Ed