Safe Haskell | Safe-Inferred |
---|
Basic calls for note tracks.
Synopsis
- library :: Library.Library
- c_note :: Generator Note
- transformed_note :: Doc.Doc -> Tags.Tags -> (NoteArgs -> NoteDeriver -> NoteDeriver) -> Generator Note
- transformed_note_name :: CallName -> Doc.Doc -> Tags.Tags -> (NoteArgs -> NoteDeriver -> NoteDeriver) -> Generator Note
- note_call :: CallName -> Doc.Doc -> Tags.Tags -> GenerateNote -> Generator Note
- data Config = Config {
- config_staccato :: !Bool
- config_sustain :: !Bool
- use_attributes :: Config
- no_duration_attributes :: Config
- type GenerateNote = NoteArgs -> NoteDeriver
- default_note :: Config -> GenerateNote
- default_note_integrate :: Text -> Config -> GenerateNote
- note_flags :: Bool -> Stack.Stack -> Environ -> Flags.Flags
- adjust_duration :: RealTime.RealTime -> RealTime.RealTime -> RealTime.RealTime -> RealTime.RealTime -> RealTime.RealTime
- min_duration :: RealTime.RealTime
Documentation
transformed_note :: Doc.Doc -> Tags.Tags -> (NoteArgs -> NoteDeriver -> NoteDeriver) -> Generator Note Source #
Create a standard note call with a transformer applied.
transformed_note_name :: CallName -> Doc.Doc -> Tags.Tags -> (NoteArgs -> NoteDeriver -> NoteDeriver) -> Generator Note Source #
transformed_note
but set the name. Since note_call
doesn't take any
args, this is just for documentation in the stack.
note_call :: CallName -> Doc.Doc -> Tags.Tags -> GenerateNote -> Generator Note Source #
Create a note call, configuring it with the actual note generating function. The generator is called with the usual note arguments, and receives the usual instrument and attribute transform.
Config | |
|
no_duration_attributes :: Config Source #
Don't observe any of the duration affecting attributes.
type GenerateNote = NoteArgs -> NoteDeriver Source #
Generate a single note. This is intended to be used as the lowest level null call for some instrument.
default_note :: Config -> GenerateNote Source #
The actual note generator.
default_note_integrate :: Text -> Config -> GenerateNote Source #
Like default_note
, except allow to set event_integrate
.
note_flags :: Bool -> Stack.Stack -> Environ -> Flags.Flags Source #
adjust_duration :: RealTime.RealTime -> RealTime.RealTime -> RealTime.RealTime -> RealTime.RealTime -> RealTime.RealTime Source #
min_duration :: RealTime.RealTime Source #
This keeps a negative sustain_abs from making note duration negative.