microwave 0.13.0

Make xenharmonic music and explore musical tunings.
Make xenharmonic music and explore musical tunings.

# Resources

- [Changelog]https://github.com/Woyten/tune/releases
- [Scale expressions]https://crates.io/crates/tune-cli

# Overview

`microwave` is a microtonal waveform synthesizer based on:

- [tune]https://crates.io/crates/tune – a microtonal library
- [Nannou]https://nannou.cc/ – a UI framework
- [FluidLite]https://crates.io/crates/fluidlite – a soundfont renderer

It features a virtual piano UI enabling you to play polyphonic microtonal melodies with your touch screen, computer keyboard, MIDI keyboard or mouse. The UI provides information about pitches and just intervals in custom tuning systems.

# Installation

```bash
cargo install -f microwave
```

To *install* `microwave` (build it from scratch) additional dev dependencies required by Nannou might need to be installed. On the CI environment (Ubuntu 18.04 LTS) the following installation step is sufficient:

```bash
sudo apt install libxcb-composite0-dev libasound2-dev
```

To *run* `microwave` you need the appropriate runtime libraries for your graphics card. For me (Ubuntu 18.04 LTS) the following step worked:

```bash
sudo apt install libvulkan1 mesa-vulkan-drivers vulkan-utils
```

If this doesn't help or you don't use Ubuntu/`apt` try following these [instructions](https://guide.nannou.cc/getting_started/platform-specific_setup.html).

# Usage

```bash
microwave run                     # 12-EDO scale (default)
microwave run steps 1:22:2        # 22-EDO scale
microwave run import my_scale.scl # imported scale
```

This should spawn a window displaying a virtual keyboard. Use your touch screen, computer keyboard or mouse to play melodies on the virtual piano.

![](https://github.com/Woyten/tune/raw/master/microwave/screenshot.png)

## Soundfont Files

For playback of sampled sounds you need to provide the location of a soundfont file. The location can be set via the environment variable `MICROWAVE_SF` or the command line:

```bash
microwave run --sf /usr/share/sounds/sf2/default-GM.sf2 steps 1:22:2
```

If you like to use compressed sf3 files you need to compile `microwave` with the `sf3` feature enabled. Note that the startup will take significantly longer since the soundfont needs to be decompressed first.

## MIDI Input

To use a MIDI device as an input source, use the `--midi-in` option:

```bash
microwave run --midi-in 1 steps 1:22:2
```

## MIDI Output

To use a MIDI device as an output target, use the `--midi-out` option:

```bash
microwave run --midi-out 1 steps 1:22:2
```

## More Options

For a complete list of command line options run

```bash
microwave help
```