crocket_example

Example "project" for Crocket (Crystal wrapper for Rocket)

crocket_example

This is an example usage of Crocket.

Installation

Install the following dependencies:

  • libao
  • libmpg123

On macOS, this can be done using Homebrew like this:

brew install libao mpg123

Usage

# Build the example in edit mode
shards build

# Start the editor with a .rocket file loaded, and start the built binary:
./bin/crocket_example

# Press space in the editor to start the playback of the pattern.
# This example quits once it reaches a row higher than 128 and then saves the
# resulting tracks to `./data/sync_*.track`.

# Now, close the editor and recompile the example in demo mode.
shards build -Dsync_player

# Finally, run the example.
./bin/crocket_example

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/nilsding/crocket_example/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

crocket_example

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 4
  • almost 6 years ago
  • January 1, 2019
License

MIT License

Links
Synced at

Wed, 06 Nov 2024 17:25:24 GMT

Languages