Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

App.StaticConfig

Description

StaticConfig is an app-level configuration hook. The idea is that the local configuration can use it to override things.

Synopsis

static config

data StaticConfig Source #

Constructors

StaticConfig 

Fields

data Midi Source #

Constructors

Midi 

Fields

  • rdev_map :: Map Midi.ReadDevice Midi.ReadDevice

    Reroute the hardware level read and write devices. This way, instruments and saved scores can use symbolic names which are then mapped to the devices exported by the MIDI driver.

    Because input devices are likely to be relatively static, the read device map is only configured here.

  • wdev_map :: Map Midi.WriteDevice Midi.WriteDevice

    WriteDevices may vary per score, e.g. softsynths may listen at any number of virtual devices. This map is taken as a default, but may be overridden by the score loaded.

  • read_devices :: Set Midi.ReadDevice

    Open the given devices on startup. Even if they aren't plugged in, they'll be added to the read list so they're automatically connected if they are plugged in. If you open a virtual device for both reading and writing you'll get a loop, so don't do that.

    There's no corresponding write_devices because if you don't want to write to a device, just don't write to it!

Instances

Instances details
Show Midi # 
Instance details

Defined in App.StaticConfig

Methods

showsPrec :: Int -> Midi -> ShowS #

show :: Midi -> String #

showList :: [Midi] -> ShowS #