Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

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 Source # 
Instance details

Defined in App.StaticConfig

Methods

showsPrec :: Int -> Midi -> ShowS #

show :: Midi -> String #

showList :: [Midi] -> ShowS #