-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwahsp.cabal
76 lines (74 loc) · 3.12 KB
/
wahsp.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
-- Initial wahsp.cabal generated by cabal init. For further documentation,
-- see http://haskell.org/cabal/users-guide/
name: wahsp
version: 0.2
synopsis: A haskell binding of the Web Audio API ala blank-canvas
description: @wahsp@ (Web Audio HaSkell Protocol) is a binding for Haskell to the
<https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API Web Audio API>
ala @blank-canvas@.
Audio sources, effects, etc. can be combined, manipulated, and otherwise
controlled using haskell
and are then rendered in the the browser (see the above link for browser
compatibility).
.
Example:
.
@
module Main where
import Web.Audio
.
main :: IO ()
main
main = do
\ \ 'webAudio' 3000 $ \\doc -> do
\ \ 'send' doc $ do
\ \ \ \ osc1 <- createOscillator 200 0 Sine
\ \ \ \ gain1 <- createGain 0.5
.
\ \ \ \ connect $ osc1 .|. gain1 .||. eCtx
.
\ \ \ \ start osc1
@
.
homepage: https://github.com/nshaheed/WebAudioHs/
Bug-reports: https://github.com/nshaheed/WebAudioHs/issues
license: BSD3
license-file: LICENSE
author: Nicholas Shaheed
maintainer: [email protected]
-- copyright:
category: Web
build-type: Simple
extra-source-files: README.md
cabal-version: >=1.22
tested-with: GHC == 7.10.3, GHC == 8.0.1
data-files:
index.html
js/jquery.js
js/jquery-json.js
js/jquery-ui.js
library
exposed-modules: Web.Audio
Web.Audio.WebAudio
Web.Audio.JavaScript
Web.Audio.Packets
other-modules: Paths_wahsp
other-extensions: GADTs
OverloadedStrings
ScopedTypeVariables
TypeOperators
KindSignatures
GeneralizedNewtypeDeriving
build-depends: base >=4.8 && < 4.10,
stm >=2.4 && <2.5,
natural-transformation >=0.4 && <0.5,
remote-monad >=0.3 && <0.5,
semigroups >=0.18 && <0.19,
aeson >=1.0 && <1.1,
data-default-class >=0.1 && <0.2,
text >=1.2 && <1.3,
wai-middleware-static >=0.8 && <0.9,
kansas-comet >=0.4 && <0.5,
scotty >=0.11 && <0.12
-- hs-source-dirs:
default-language: Haskell2010