-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mini-languages over Tidal unified so that choice of language is an 'i…
…n-performance' notation
- Loading branch information
Showing
7 changed files
with
171 additions
and
637 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{-# LANGUAGE DeriveDataTypeable #-} | ||
|
||
module Estuary.Languages.TidalParser where | ||
|
||
import Text.JSON | ||
import Text.JSON.Generic | ||
import qualified Sound.Tidal.Context as Tidal | ||
|
||
import Estuary.Languages.MiniTidal | ||
import Estuary.Languages.CQenze | ||
import Estuary.Languages.Morelia | ||
import Estuary.Languages.Saborts | ||
import Estuary.Languages.Saludos | ||
import Estuary.Languages.ColombiaEsPasion | ||
import Estuary.Languages.Si | ||
import Estuary.Languages.Sentidos | ||
import Estuary.Languages.Natural | ||
import Estuary.Languages.Medellin | ||
import Estuary.Languages.LaCalle | ||
import Estuary.Languages.Maria | ||
import Estuary.Languages.Crudo | ||
import Estuary.Languages.Puntoyya | ||
import Estuary.Languages.Sucixxx | ||
import Estuary.Languages.Vocesotrevez | ||
import Estuary.Languages.Imagina | ||
import Estuary.Languages.Alobestia | ||
|
||
data TidalParser = MiniTidal | CQenze | Morelia | Saborts | | ||
Saludos | ColombiaEsPasion | Si | Sentidos | Natural | Medellin | LaCalle | | ||
Maria | Crudo | Puntoyya | Sucixxx | Vocesotrevez | Imagina | Alobestia | ||
deriving (Show,Read,Eq,Ord,Data,Typeable) | ||
|
||
instance JSON TidalParser where | ||
showJSON = toJSON | ||
readJSON = fromJSON | ||
|
||
tidalParsers :: [TidalParser] | ||
tidalParsers = [MiniTidal,CQenze,Morelia,Saborts, | ||
Saludos,ColombiaEsPasion,Si,Sentidos,Natural,Medellin,LaCalle, | ||
Maria,Crudo,Puntoyya,Sucixxx,Vocesotrevez,Imagina,Alobestia | ||
] | ||
|
||
tidalParser :: TidalParser -> String -> Tidal.ParamPattern | ||
tidalParser MiniTidal = miniTidalParser | ||
tidalParser CQenze = cqenzeParamPattern | ||
tidalParser Morelia = morelia | ||
tidalParser Saborts = saborts | ||
tidalParser Saludos = saludos | ||
tidalParser ColombiaEsPasion = colombiaEsPasion | ||
tidalParser Si = si | ||
tidalParser Sentidos = sentidos | ||
tidalParser Natural = natural | ||
tidalParser Medellin = medellin | ||
tidalParser LaCalle = laCalle | ||
tidalParser Maria = maria | ||
tidalParser Crudo = crudo | ||
tidalParser Puntoyya = puntoyya | ||
tidalParser Sucixxx = sucixxx | ||
tidalParser Vocesotrevez = vocesotrevez | ||
tidalParser Imagina = imagina | ||
tidalParser Alobestia = alobestia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.