fengctor / octune

A DSL for creating 8-bit style music
BSD 3-Clause "New" or "Revised" License
22 stars 1 forks source link

Having issues running samples #10

Closed kvnsmth closed 3 years ago

kvnsmth commented 3 years ago

Thanks for making this project! My son and I are having fun playing around with it. 😄

I just cloned this version and built the binary with stack install locally and am having issues creating wav files from some of the samples.

For example:

❯ cd samples/drWilyCastle/ && octune DrWilyCastle.otn
error:
DrWilyCastle.otn:6:5:
Undefined variable `base1` in module `DrWilyCastle.A` used in the declaration of `drWilyCastle` in module `DrWilyCastle`

DrWilyCastle.otn:7:5:
Undefined variable `base2` in module `DrWilyCastle.A` used in the declaration of `drWilyCastle` in module `DrWilyCastle`

DrWilyCastle.otn:9:5:
Undefined variable `self` in module `DrWilyCastle.B` used in the declaration of `drWilyCastle` in module `DrWilyCastle`

DrWilyCastle.otn:12:9:
Undefined variable `base2` in module `DrWilyCastle.A` used in the declaration of `drWilyCastle` in module `DrWilyCastle`

DrWilyCastle.otn:13:23:
Undefined variable `variantMelody1` in module `DrWilyCastle.A` used in the declaration of `drWilyCastle` in module `DrWilyCastle`

DrWilyCastle.otn:17:9:
Undefined variable `base2` in module `DrWilyCastle.A` used in the declaration of `drWilyCastle` in module `DrWilyCastle`

DrWilyCastle.otn:18:9:
Undefined variable `variantMelody2` in module `DrWilyCastle.A` used in the declaration of `drWilyCastle` in module `DrWilyCastle`

DrWilyCastle.otn:22:9:
Undefined variable `self` in module `DrWilyCastle.B` used in the declaration of `drWilyCastle` in module `DrWilyCastle`

DrWilyCastle.otn:26:5:
Undefined variable `self` in module `DrWilyCastle.C` used in the declaration of `drWilyCastle` in module `DrWilyCastle`

I'm running Linux but having similar issues on my son's Mac. Let me know if you need any more information. Happy to help debug if needed.

fengctor commented 3 years ago

Hey @kvnsmth! Glad you're interested in the project! You'll have to include all the needed source files, so you'll likely want to do octune * in place of just the main file in the example you're trying. Let me know if that works!

kvnsmth commented 3 years ago

@fengctor that worked (and makes sense :)! Thanks for getting back so quickly.