2020-10-12 14:17:36 +00:00
|
|
|
defmodule MIDIPlayer.MixProject do
|
2020-10-10 17:36:07 +00:00
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
2020-10-12 14:17:36 +00:00
|
|
|
app: :midi_player,
|
2020-10-10 17:36:07 +00:00
|
|
|
version: "0.1.0",
|
|
|
|
elixir: "~> 1.10",
|
|
|
|
start_permanent: Mix.env() == :prod,
|
2020-10-11 11:40:12 +00:00
|
|
|
deps: deps(),
|
|
|
|
|
|
|
|
# Docs
|
2020-10-12 14:17:36 +00:00
|
|
|
name: "MIDIPlayer",
|
|
|
|
source_url: "https://github.com/pizzapim/midi_player",
|
|
|
|
homepage_url: "https://github.com/pizzapim/midi_player",
|
2020-10-11 11:40:12 +00:00
|
|
|
docs: [
|
2020-10-12 21:00:24 +00:00
|
|
|
extras: ["README.md"],
|
|
|
|
main: "readme"
|
|
|
|
],
|
|
|
|
|
|
|
|
# Hex stuff
|
|
|
|
description: description(),
|
|
|
|
package: package()
|
2020-10-10 17:36:07 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def application do
|
|
|
|
[
|
|
|
|
extra_applications: [:logger]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2020-10-12 21:00:24 +00:00
|
|
|
defp description do
|
|
|
|
"""
|
|
|
|
A MIDI player for Elixir.
|
|
|
|
MIDIPlayer takes musical "events" like playing a note, converts them to MIDI commands, schedules them and then lets you play them.
|
|
|
|
"""
|
|
|
|
end
|
|
|
|
|
|
|
|
defp package do
|
|
|
|
[
|
|
|
|
name: "midi_player",
|
|
|
|
licenses: ["GPL-3.0-or-later"],
|
|
|
|
links: %{"GitHub" => "https://github.com/pizzapim/midi_player"}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2020-10-10 17:36:07 +00:00
|
|
|
defp deps do
|
|
|
|
[
|
|
|
|
{:midi_synth, "~> 0.4.0"},
|
2020-10-11 11:40:12 +00:00
|
|
|
{:timex, "~> 3.6"},
|
2020-10-11 16:15:16 +00:00
|
|
|
{:ex_doc, "~> 0.22", only: :dev, runtime: false}
|
2020-10-10 17:36:07 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|