Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua bindings #69

Open
brainlessbitch opened this issue Mar 23, 2024 · 5 comments
Open

lua bindings #69

brainlessbitch opened this issue Mar 23, 2024 · 5 comments

Comments

@brainlessbitch
Copy link

is there a chance lua bindings could be added?

@rbdannenberg
Copy link
Contributor

I think I have my hands full and don't use Lua, but I agree it would be great. Maybe you could ask in "lua land" if there's any work in this direction or if there is any information I can help with.

@brainlessbitch
Copy link
Author

i wish i knew more lua devs, i'm not good enough at either c or lua to be able to make the bindings, but i think i could write some basics if i had a list of all the functions and their return values that would help. i know it's on the wiki but an itemized list would be much better. also, if i'm able to write it should i add it do a personal repo or would you wanted it added to the portmidi organization?

@rbdannenberg
Copy link
Contributor

I think the best list is portmidi.h, which is all the externally visible symbols/functions of PortMIdi and has documentation as well.

It would be best to develop outside of this portmidi repo, and we could link from here to lua support.

@brainlessbitch
Copy link
Author

okay, what about porttime? i use that in my program as well

@rbdannenberg
Copy link
Contributor

Good point. You could use portmidi with your own time routines, but the default is to use PortTime, and since it is small, we include the sources in the PortMidi library so you can access everything from one library. The same is true for pmutil.c, which can be used independently of PortMidi (pmutil.c provides lock-free queues), but it's included in the PortMidi library.

So the complete list is pm_common/portmidi.h, porttime/porttime.h, and pm_common/pmutil.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants