summaryrefslogtreecommitdiff
path: root/midi-dump.hs
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2014-01-14 05:32:58 -0500
committerAndrew Cady <d@jerkface.net>2014-01-14 05:32:58 -0500
commitfcf7062c5ecbda5d2815caea624e1e04cc8be557 (patch)
treea4ab7b925e274cc76443372e8d8a1f649b0a4093 /midi-dump.hs
parentb3a24f6cb37c0e59aaadb1ce699ecdd56c2cf40e (diff)
port opened, but read fails
Diffstat (limited to 'midi-dump.hs')
-rw-r--r--midi-dump.hs7
1 files changed, 2 insertions, 5 deletions
diff --git a/midi-dump.hs b/midi-dump.hs
index 38641cd..4d1946c 100644
--- a/midi-dump.hs
+++ b/midi-dump.hs
@@ -47,10 +47,8 @@ findPort wantName f = do
47 when (name == wantName) $ do 47 when (name == wantName) $ do
48 client <- ClientInfo.getClient cinfo 48 client <- ClientInfo.getClient cinfo
49 PortInfo.queryLoop_ h client $ \pinfo -> do 49 PortInfo.queryLoop_ h client $ \pinfo -> do
50 cport <- PortInfo.getClient pinfo 50 port <- (fmap (\(Client.Cons p) -> p) $ PortInfo.getClient pinfo)
51 f $ show cport 51 f $ show port
52-- port <- (fmap (\(Client.Cons p) -> p) $ PortInfo.getClient pinfo)
53-- f port
54 52
55main :: IO () 53main :: IO ()
56main = (do 54main = (do
@@ -70,7 +68,6 @@ main = (do
70 68
71 findPort "AXIS-49 2A" (connectAxis h clientID _p1) 69 findPort "AXIS-49 2A" (connectAxis h clientID _p1)
72 70
73 when False $ do
74 forever $ do 71 forever $ do
75 putStrLn "waiting for an event:" 72 putStrLn "waiting for an event:"
76 print =<< Event.input h) 73 print =<< Event.input h)