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

Synth.Shared.Osc

Description

This has the protocol to talk to a running play_cache and tell it to play samples in realtime. This is for the audio preview aka "MIDI thru" feature for im. Since each im patch may respond in its own way to a Note, this relies on the patch itself exporting a ThruFunction to find the appropriate sample.

Synopsis

Documentation

type ThruFunction = [Note] -> Either Error [Play] Source #

This is a specialized version of ThruFunction. Being more specialized means I don't have to directly depend on Cmd.Cmd from here.

data Note Source #

Instances

Instances details
Show Note # 
Instance details

Defined in Synth.Shared.Osc

Methods

showsPrec :: Int -> Note -> ShowS #

show :: Note -> String #

showList :: [Note] -> ShowS #

data Play Source #

Constructors

Play 

Fields

Instances

Instances details
Eq Play # 
Instance details

Defined in Synth.Shared.Osc

Methods

(==) :: Play -> Play -> Bool #

(/=) :: Play -> Play -> Bool #

Show Play # 
Instance details

Defined in Synth.Shared.Osc

Methods

showsPrec :: Int -> Play -> ShowS #

show :: Play -> String #

showList :: [Play] -> ShowS #