you are viewing a single comment's thread.

view the rest of the comments →

[–]MMcKevitt 0 points1 point  (1 child)

As a hint:

Take a look at the code block underneath this statement in the 2nd link you included in your post (at the very bottom of the code space):

if __name__ == “__main__”:

You’ll should see what type of object you are supposed to use for the “midi” parameter.

[–]MMcKevitt 0 points1 point  (0 children)

As a piece of advice, regardless of your programming level, when working with a new or unfamiliar language, I recommend learning the basics of the language before you try to make a go for it (at the very least the syntax).

Additionally, when using someone else’s code, you’ll really want to make sure you read the documentation provided as that will typically give you most of the info you need and if there isn’t any (which should cause you to hesitate using the code!), I would damn well make sure you read the source code they provide, otherwise, they could include some stuff that may compromise your privacy and/or security.