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

get_MIDI_tracks function reported as nil #5

Open
ejb opened this issue Jan 30, 2022 · 0 comments
Open

get_MIDI_tracks function reported as nil #5

ejb opened this issue Jan 30, 2022 · 0 comments

Comments

@ejb
Copy link

ejb commented Jan 30, 2022

I'm using Lua 5.4.4. After installing LuaMidi using luarocks, the following script throws an error:

local LuaMidi = require('LuaMidi')
print(LuaMidi.get_MIDI_tracks)
local tracks = LuaMidi.get_MIDI_tracks('./tracks/hot_cross_buns.mid')
print(tracks)

The value of the function LuaMidi.get_MIDI_tracks is printed as nil and an error is thrown.

Elliot@MacBook-Air harp-hero % lua build/import-midi.lua
nil
lua: build/import-midi.lua:3: attempt to call a nil value (field 'get_MIDI_tracks')
stack traceback:
        build/import-midi.lua:3: in main chunk
        [C]: in ?

Not sure what I'm doing wrong here. Unfortunately I couldn't find any examples in the documentation for how to use this function. Any help appreciated!

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

1 participant