Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

Safe HaskellNone

App.StaticConfig

Contents

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
Show Midi # 
Instance details

Defined in App.StaticConfig

Methods

showsPrec :: Int -> Midi -> ShowS #

show :: Midi -> String #

showList :: [Midi] -> ShowS #