This file is indexed.

/usr/share/doc/libghc-midi-doc/html/Sound-MIDI-File-Event.html is in libghc-midi-doc 0.1.7.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Sound.MIDI.File.Event</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Sound-MIDI-File-Event.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Sound-MIDI-File-Event.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">midi-0.1.7.1: Handling of MIDI messages and files</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Sound.MIDI.File.Event</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>MIDI messages in MIDI files.
They are not a superset of the messages,
that are used for real-time communication between MIDI devices.
For these refer to <a href="Sound-MIDI-Message.html">Sound.MIDI.Message</a>.
Namely System Common and System Real Time messages are missing.
If you need both real-time and file messages (say for ALSA sequencer),
you need a custom datatype.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span>  <a href="#t:T">T</a> <ul class="subs"><li>= <a href="#v:MIDIEvent">MIDIEvent</a> <a href="Sound-MIDI-Message-Channel.html#t:T">T</a>  </li><li>| <a href="#v:MetaEvent">MetaEvent</a> <a href="Sound-MIDI-File-Event-Meta.html#t:T">T</a>  </li><li>| <a href="#v:SystemExclusive">SystemExclusive</a> <a href="Sound-MIDI-File-Event-SystemExclusive.html#t:T">T</a>  </li></ul></li><li class="src short"><a href="#v:get">get</a> :: C parser =&gt; Fallible (T parser) <a href="Sound-MIDI-File-Event.html#t:T">T</a></li><li class="src short"><a href="#v:put">put</a> :: C writer =&gt; <a href="Sound-MIDI-File-Event.html#t:T">T</a> -&gt; T writer</li><li class="src short"><span class="keyword">type</span> <a href="#t:TrackEvent">TrackEvent</a> = (<a href="Sound-MIDI-File-Event.html#t:ElapsedTime">ElapsedTime</a>, <a href="Sound-MIDI-File-Event.html#t:T">T</a>)</li><li class="src short"><a href="#v:getTrackEvent">getTrackEvent</a> :: C parser =&gt; Fallible (T parser) <a href="Sound-MIDI-File-Event.html#t:TrackEvent">TrackEvent</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:ElapsedTime">ElapsedTime</a> = <a href="/usr/share/doc/libghc-non-negative-doc/html/Numeric-NonNegative-Wrapper.html#t:Integer">Integer</a></li><li class="src short"><a href="#v:fromElapsedTime">fromElapsedTime</a> :: <a href="Sound-MIDI-File-Event.html#t:ElapsedTime">ElapsedTime</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><a href="#v:toElapsedTime">toElapsedTime</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integer">Integer</a> -&gt; <a href="Sound-MIDI-File-Event.html#t:ElapsedTime">ElapsedTime</a></li><li class="src short"><a href="#v:mapBody">mapBody</a> :: (<a href="Sound-MIDI-File-Event.html#t:T">T</a> -&gt; <a href="Sound-MIDI-File-Event.html#t:T">T</a>) -&gt; <a href="Sound-MIDI-File-Event.html#t:TrackEvent">TrackEvent</a> -&gt; <a href="Sound-MIDI-File-Event.html#t:TrackEvent">TrackEvent</a></li><li class="src short"><a href="#v:maybeMIDIEvent">maybeMIDIEvent</a> :: <a href="Sound-MIDI-File-Event.html#t:T">T</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Sound-MIDI-Message-Channel.html#t:T">T</a></li><li class="src short"><a href="#v:maybeMetaEvent">maybeMetaEvent</a> :: <a href="Sound-MIDI-File-Event.html#t:T">T</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Sound-MIDI-File-Event-Meta.html#t:T">T</a></li><li class="src short"><a href="#v:maybeVoice">maybeVoice</a> :: <a href="Sound-MIDI-File-Event.html#t:T">T</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Sound-MIDI-Message-Channel.html#t:Channel">Channel</a>, <a href="Sound-MIDI-Message-Channel-Voice.html#t:T">T</a>)</li><li class="src short"><a href="#v:mapVoice">mapVoice</a> :: (<a href="Sound-MIDI-Message-Channel-Voice.html#t:T">T</a> -&gt; <a href="Sound-MIDI-Message-Channel-Voice.html#t:T">T</a>) -&gt; <a href="Sound-MIDI-File-Event.html#t:T">T</a> -&gt; <a href="Sound-MIDI-File-Event.html#t:T">T</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:T" class="def">T</a>  <a href="src/Sound-MIDI-File-Event.html#T" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:MIDIEvent" class="def">MIDIEvent</a> <a href="Sound-MIDI-Message-Channel.html#t:T">T</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:MetaEvent" class="def">MetaEvent</a> <a href="Sound-MIDI-File-Event-Meta.html#t:T">T</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:SystemExclusive" class="def">SystemExclusive</a> <a href="Sound-MIDI-File-Event-SystemExclusive.html#t:T">T</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:T" class="caption collapser" onclick="toggleSection('i:T')">Instances</p><div id="section.i:T" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Sound-MIDI-File-Event.html#t:T">T</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Sound-MIDI-File-Event.html#t:T">T</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Sound-MIDI-File-Event.html#t:T">T</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">Arbitrary <a href="Sound-MIDI-File-Event.html#t:T">T</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:get" class="def">get</a> :: C parser =&gt; Fallible (T parser) <a href="Sound-MIDI-File-Event.html#t:T">T</a><a href="src/Sound-MIDI-File-Event.html#get" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:put" class="def">put</a> :: C writer =&gt; <a href="Sound-MIDI-File-Event.html#t:T">T</a> -&gt; T writer<a href="src/Sound-MIDI-File-Event.html#put" class="link">Source</a></p><div class="doc"><p>The following functions encode various <code><a href="MIDIFile.html#t:T">T</a></code> elements
into the raw data of a standard MIDI file.
</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:TrackEvent" class="def">TrackEvent</a> = (<a href="Sound-MIDI-File-Event.html#t:ElapsedTime">ElapsedTime</a>, <a href="Sound-MIDI-File-Event.html#t:T">T</a>)<a href="src/Sound-MIDI-File-Event.html#TrackEvent" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:getTrackEvent" class="def">getTrackEvent</a> :: C parser =&gt; Fallible (T parser) <a href="Sound-MIDI-File-Event.html#t:TrackEvent">TrackEvent</a><a href="src/Sound-MIDI-File-Event.html#getTrackEvent" class="link">Source</a></p><div class="doc"><p>Each event is preceded by the delta time: the time in ticks between the
last event and the current event.  Parse a time and an event, ignoring
System Exclusive messages.
</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:ElapsedTime" class="def">ElapsedTime</a> = <a href="/usr/share/doc/libghc-non-negative-doc/html/Numeric-NonNegative-Wrapper.html#t:Integer">Integer</a><a href="src/Sound-MIDI-File-Event-Meta.html#ElapsedTime" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:fromElapsedTime" class="def">fromElapsedTime</a> :: <a href="Sound-MIDI-File-Event.html#t:ElapsedTime">ElapsedTime</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integer">Integer</a><a href="src/Sound-MIDI-File-Event-Meta.html#fromElapsedTime" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toElapsedTime" class="def">toElapsedTime</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integer">Integer</a> -&gt; <a href="Sound-MIDI-File-Event.html#t:ElapsedTime">ElapsedTime</a><a href="src/Sound-MIDI-File-Event-Meta.html#toElapsedTime" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:mapBody" class="def">mapBody</a> :: (<a href="Sound-MIDI-File-Event.html#t:T">T</a> -&gt; <a href="Sound-MIDI-File-Event.html#t:T">T</a>) -&gt; <a href="Sound-MIDI-File-Event.html#t:TrackEvent">TrackEvent</a> -&gt; <a href="Sound-MIDI-File-Event.html#t:TrackEvent">TrackEvent</a><a href="src/Sound-MIDI-File-Event.html#mapBody" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:maybeMIDIEvent" class="def">maybeMIDIEvent</a> :: <a href="Sound-MIDI-File-Event.html#t:T">T</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Sound-MIDI-Message-Channel.html#t:T">T</a><a href="src/Sound-MIDI-File-Event.html#maybeMIDIEvent" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:maybeMetaEvent" class="def">maybeMetaEvent</a> :: <a href="Sound-MIDI-File-Event.html#t:T">T</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Sound-MIDI-File-Event-Meta.html#t:T">T</a><a href="src/Sound-MIDI-File-Event.html#maybeMetaEvent" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:maybeVoice" class="def">maybeVoice</a> :: <a href="Sound-MIDI-File-Event.html#t:T">T</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Sound-MIDI-Message-Channel.html#t:Channel">Channel</a>, <a href="Sound-MIDI-Message-Channel-Voice.html#t:T">T</a>)<a href="src/Sound-MIDI-File-Event.html#maybeVoice" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:mapVoice" class="def">mapVoice</a> :: (<a href="Sound-MIDI-Message-Channel-Voice.html#t:T">T</a> -&gt; <a href="Sound-MIDI-Message-Channel-Voice.html#t:T">T</a>) -&gt; <a href="Sound-MIDI-File-Event.html#t:T">T</a> -&gt; <a href="Sound-MIDI-File-Event.html#t:T">T</a><a href="src/Sound-MIDI-File-Event.html#mapVoice" class="link">Source</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>