lye (empty) → 0.1.0.0
raw patch · 4 files changed
+113/−0 lines, 4 filesdep +HCodecsdep +basedep +containerssetup-changed
Dependencies added: HCodecs, base, containers, free, lens, parsers, transformers, trifecta
Files
+ LICENSE view
@@ -0,0 +1,19 @@+Copyright (c) 2013 Corbin Simpson++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.
+ Main.hs view
@@ -0,0 +1,29 @@+module Main where++import System.Environment++import Text.Lye.Export+import Text.Lye.Export.File+import Text.Lye.Interactive+import Text.Lye.Types+import Text.Lye.Visitor++testFile :: String -> IO ()+testFile s = do+ exprs <- exprsFromFile s+ let music = Music exprs+ putStrLn $ show music+ let cleaned = applyStages music+ putStrLn $ show cleaned+ let midi = schedule cleaned 480+ putStrLn $ show midi+ export 480 midi++main :: IO ()+main = do+ args <- getArgs+ case args of+ [] -> do+ putStrLn "Need file."+ return ()+ filepath : _ -> testFile filepath
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ lye.cabal view
@@ -0,0 +1,63 @@+-- lye.cabal auto-generated by cabal init. For additional options, see+-- http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr.+-- The name of the package.+Name: lye++-- The package version. See the Haskell package versioning policy+-- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for+-- standards guiding when and how versions should be incremented.+Version: 0.1.0.0++-- A short (one-line) description of the package.+Synopsis: A Lilypond-compiling music box++-- A longer description of the package.+Description: Lye is a simple package for turning Lilypond snippets+ into music.++-- The license under which the package is released.+License: MIT++-- The file containing the license text.+License-file: LICENSE++-- The package author(s).+Author: Corbin Simpson++-- An email address to which users can send suggestions, bug reports,+-- and patches.+Maintainer: MostAwesomeDude@gmail.com++-- A copyright notice.+-- Copyright: ++Category: Sound++Build-type: Simple++-- Extra files to be distributed with the package, such as examples or+-- a README.+-- Extra-source-files: ++-- Constraint on the version of Cabal needed to build this package.+Cabal-version: >=1.6++source-repository head+ type: git+ location: git://github.com/MostAwesomeDude/lye.git++Executable lye+ Main-is: Main.hs++ -- Packages needed in order to build this package.+ Build-depends: base >= 4 && < 5+ , HCodecs+ , containers+ , free+ , lens+ , parsers+ , transformers+ , trifecta++ -- GHC compiler flags.+ ghc-options: -Wall -rtsopts