Skip to content

Commit

Permalink
fixes for boot and sew
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxu committed Apr 18, 2024
1 parent 2f69c6f commit 653d8b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions BootTidal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
:set -XOverloadedStrings
:set prompt ""

default (Signal String, Integer, Double)

-- Import all the boot functions and aliases.
import Sound.Tidal.Boot

default (Pattern String, Integer, Double)

-- Create a Tidal Stream with the default settings.
-- Use 'mkTidalWith' to customize these settings.
tidalInst <- mkTidal
Expand Down
10 changes: 5 additions & 5 deletions src/Sound/Tidal/Boot.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE OverloadedStrings #-}

module Sound.Tidal.Boot
( Tidally (..)
Expand Down Expand Up @@ -72,10 +72,10 @@ where
along with this library. If not, see <http://www.gnu.org/licenses/>.
-}

import Prelude hiding (all, (*>), (<*))
import Sound.Tidal.Context hiding (mute, solo)
import Sound.Tidal.ID (ID)
import System.IO (hSetEncoding, stdout, utf8)
import Prelude hiding (all, (*>), (<*))
import Sound.Tidal.Context
import Sound.Tidal.ID (ID)
import System.IO (hSetEncoding, stdout, utf8)

-- | Functions using this constraint can access the in-scope Tidal instance.
-- You must implement an instance of this in 'BootTidal.hs'. Note that GHC
Expand Down
2 changes: 1 addition & 1 deletion src/Sound/Tidal/UI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2179,7 +2179,7 @@ _pressBy r pat = squeezeJoin $ (compressTo (r,1) . pure) <$> pat
sew :: Pattern Bool -> Pattern a -> Pattern a -> Pattern a
-- Replaced with more efficient version below
-- sew pb a b = overlay (mask pb a) (mask (inv pb) b)
sew pb a b = Pattern $ pf
sew pb a b = Pattern pf Nothing Nothing
where pf st = concatMap match evs
where evs = query pb st
parts = map part evs
Expand Down

0 comments on commit 653d8b9

Please sign in to comment.