Giter Club home page Giter Club logo

pulsar-tidalcycles's People

Contributors

arcomul avatar bwagner avatar crucialfelix avatar diegodorado avatar fand avatar gmuller avatar highharmonics2 avatar jontutcher avatar kindohm avatar lisongx avatar mhodnick-spok avatar michaelforrest avatar ndr-brt avatar rseymour avatar thgrund avatar wh0am1-dev avatar yaxu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pulsar-tidalcycles's Issues

Customizing output text in post window

greetings! i would like to propose adding a new feature to the atom-tidalcycles package.

the feature would allow you to customize the text that appears in your post window upon a successful (error-free) eval.

the current output text defaults to "t>" but a user-customized text string could allow for a more conversational application in a live setting.

thank you for considering this feature!

Deprecation cop has an alert!

screen shot 2017-01-12 at 08 12 37

Kindohm said on the Tidal Slack that:
Looks like Atom automatically resolves the deprecated feature we're using, but we should fix the issue to prevent the warnings.

Changing how ghci is started

The ghci path setting is also used by people to change the ghci parameters, e.g. switching to stack using instructions at the end of this page:
https://tidalcycles.org/index.php/Troubleshooting_a_Tidal_install#Installing_via_.27stack.27_rather_than_.27cabal.27

It seems this isn't working at the moment:
https://forum.toplap.org/t/trouble-setting-up-tidal-stack-install/902

Sorry this is my fault, I'd forgotten about this!

So I suppose we do need an extra configuration parameter, one for the path to Haskell, and one for the command to run to start ghci.

helpers

Idea from workshop: shortcut to randomly choose a sound

Atom Editor problem

Hi,
My Atom Editor was totally slow and not responded.
And today I updated tidalcycles.
Now I can write the code but my Atom Editor is still very slow.

(In Mac 10.12.5, supercollider 3.9dev)

High Sierra cause Tidal to not Work

I have been using Tidal for about a year with no problems. I updated to High Sierra and it fell apart. I did a clean install of everything and when I went to reinstall Tidal using stack install tidal nothing happened. When I use cabal install tidal it installs but when I try to run everything I get the following error

Warning: No local targets specified, so ghci will not use any options from your package.yaml / *.cabal files. Potential ways to resolve this: * If you want to use the package.yaml / *.cabal package in the current directory, use stack init to create a new stack.yaml. * Add to the 'packages' field of /Users/00953884/.stack/global-project/stack.yaml Configuring GHCi with the following packages:
GHCi, version 8.2.2: http://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /private/var/folders/qd/8ydvmnls6dn79znfnk85dgm4xn3sqf/T/ghci35642/ghci-script
Prelude> Prelude> can't load .so/.DLL for: /Users/00953884/.stack/snapshots/x86_64-osx/lts-10.3/8.2.2/lib/x86_64-osx-ghc-8.2.2/libHSzlib-0.6.1.2-7k8ElOnaocwBudwnpy07vK-ghc8.2.2.dylib (dlopen(/Users/00953884/.stack/snapshots/x86_64-osx/lts-10.3/8.2.2/lib/x86_64-osx-ghc-8.2.2/libHSzlib-0.6.1.2-7k8ElOnaocwBudwnpy07vK-ghc8.2.2.dylib, 5): Symbol not found: _deflateEnd
Referenced from: /Users/00953884/.stack/snapshots/x86_64-osx/lts-10.3/8.2.2/lib/x86_64-osx-ghc-8.2.2/libHSzlib-0.6.1.2-7k8ElOnaocwBudwnpy07vK-ghc8.2.2.dylib Expected in: flat namespace in /Users/00953884/.stack/snapshots/x86_64-osx/lts-10.3/8.2.2/lib/x86_64-osx-ghc-8.2.2/libHSzlib-0.6.1.2-7k8ElOnaocwBudwnpy07vK-ghc8.2.2.dylib)

Trying to create a stack.yaml with stack init just hangs the computer and doesn't actually do anything. Does anyone have a solution for this?

unit test suite

At now, there's only one tidal-spec.coffee test, but I'm not able to run it.
With Atom the test fails:
Screenshot from 2019-10-18 12-54-41

on command line, with apm tests it always tells me "tests passed".

Wouldn't be better to introduce a unit test framework and maybe a travis ci build to check every commit?

Several issues parsing patterns, tested with scale

I had many issues parsing patterns, used with scale function ( not sure if scale has anything to do though)

Here some simple examples of what failed trying to isolate the error.

-- this works
d1 $ note (scale "minor" "[[-1 0 ~]*8]/3") # s "midi"

-- this doesnt take into account the /3
d1 $ note (scale "minor" "[-1 0 ~]*8/3") # s "midi"

-- this breaks
d1 $ note (scale "minor" "[-1 0 ~]*(8/3)") # s "midi"
-- *** Exception: Syntax error in sequence:"[-1 0 ~]*(8/3)" -- ^ unexpected "(" expecting white space, "-", "+", natural, "[", "{" or "<"


-- this breaks
d1 $ note (scale "minor" "{-1 0 ~}%8") # s "midi"
-- *** Exception: Syntax error in sequence:
-- "{-1 0 ~}%8" ^ unexpected end of input expecting end of comment 

Uncaught Cannot call write after a stream was destroyed

please help anyone? Just started with this and not sure if I've got everything installed or not.
Put in a tester and this came up

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.40.1 x64
Electron: 3.1.10
OS: Mac OS X 10.13.1
Thrown From: tidalcycles package 3.1.0

Stack Trace

Uncaught Cannot call write after a stream was destroyed

At events.js:167

Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
    at doWrite (_stream_writable.js:406:19)
    at writeOrBuffer (_stream_writable.js:394:5)
    at Socket.Writable.write (_stream_writable.js:294:11)
    at REPL.stdinWrite (/packages/tidalcycles/lib/repl.js:144:25)
    at REPL.tidalSendLine (/packages/tidalcycles/lib/repl.js:148:14)
    at REPL.tidalSendExpression (/packages/tidalcycles/lib/repl.js:153:14)
    at doIt (/packages/tidalcycles/lib/repl.js:202:18)
    at REPL.evalWithRepl (/packages/tidalcycles/lib/repl.js:206:9)
    at REPL._eval (/packages/tidalcycles/lib/repl.js:179:14)
    at HTMLElement.tidalcyclesEval (/packages/tidalcycles/lib/repl.js:35:44)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:349123)
    at KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1249835)
    at KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1245969)
    at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:284329)

Commands

     -6:23.5.0 core:cut (input.hidden-input)
     -6:21.2.0 tidalcycles:eval (input.hidden-input)
     -6:12.1.0 tidalcycles:eval-multi-line (input.hidden-input)
     -4:52.9.0 core:paste (input.hidden-input)
     -4:42.3.0 tidalcycles:eval (input.hidden-input)
     -4:33.8.0 core:move-left (input.hidden-input)
     -4:32.2.0 core:move-right (input.hidden-input)
     -4:31.3.0 core:backspace (input.hidden-input)
  2x -4:30.2.0 tidalcycles:eval (input.hidden-input)

Non-Core Packages

tidalcycles 3.1.0 

Escaping spaces

This PR:
127b208
... stops ~ in e.g. ~/.ghcup/bin/ from being expanded.

I suggest reverting it, and instead escaping spaces individually. In Unix (mac + linux) this is with \, e.g. /Users/spider\ man/ghcup/bin/. Under windows it seems to be with ^, e.g. cC\Users\spider^ man\ghcup\bin/.

Uncaught TypeError: Cannot read property 'start' of undefined

[Enter steps to reproduce:]

  1. ... Follow the tidal install directions: https://tidalcycles.org/getting_started.html
  2. ... `d1 $ sound "bd sn"

Atom: 1.18.0 x64
Electron: 1.3.15
OS: Windows 10
Thrown From: tidalcycles package 0.8.7

Stack Trace

Uncaught TypeError: Cannot read property 'start' of undefined

At C:\Users\rikuo\AppData\Local\atom\app-1.18.0\resources\app\node_modules\text-buffer\lib\range.js:33

TypeError: Cannot read property 'start' of undefined
    at Function.module.exports.Range.fromObject (~/AppData/Local/atom/app-1.18.0/resources/app/node_modules/text-buffer/lib/range.js:33:37)
    at TextBuffer.module.exports.TextBuffer.getTextInRange (~/AppData/Local/atom/app-1.18.0/resources/app/node_modules/text-buffer/lib/text-buffer.js:412:42)
    at TextEditor.module.exports.TextEditor.getTextInBufferRange (~/AppData/Local/atom/app-1.18.0/resources/app/src/text-editor.js:956:32)
    at REPL.getMultiLineExpression (/packages/tidalcycles/lib/repl.js:184:33)
    at REPL.currentExpression (/packages/tidalcycles/lib/repl.js:157:25)
    at REPL._eval (/packages/tidalcycles/lib/repl.js:104:39)
    at /packages/tidalcycles/lib/repl.js:30:55)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.18.0/resources/app/src/command-registry.js:265:35)
    at ~/AppData/Local/atom/app-1.18.0/resources/app/src/command-registry.js:3:65
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.18.0/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.18.0/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:28)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.18.0/resources/app/src/window-event-handler.js:100:42)
    at HTMLDocument.<anonymous> (~/AppData/Local/atom/app-1.18.0/resources/app/src/window-event-handler.js:3:65)

Commands

     -1:15 command-palette:toggle (input.hidden-input)
     -1:13.4.0 core:confirm (input.hidden-input)
     -1:13.4.0 tree-view:show (input.hidden-input)
     -1:11.3.0 intentions:highlight (input.hidden-input)
     -1:11.2.0 core:save (input.hidden-input)
     -0:55.2.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always.editor-background.theme-solarized-dark-syntax.theme-atom-material-ui)
     -0:53.3.0 command-palette:toggle (input.hidden-input)
     -0:51.1.0 core:move-down (input.hidden-input)
     -0:48.4.0 core:confirm (input.hidden-input)
     -0:48.3.0 tidalcycles:boot (input.hidden-input)
     -0:48.3.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always.editor-background.theme-solarized-dark-syntax.theme-atom-material-ui)
     -0:19.7.0 core:backspace (input.hidden-input)
     -0:14.8.0 intentions:highlight (input.hidden-input)
     -0:14.7.0 core:save (input.hidden-input)
  2x -0:13.7.0 intentions:highlight (input.hidden-input)
     -0:12.6.0 tidalcycles:eval-multi-line (input.hidden-input)

Non-Core Packages

atom-material-ui 2.0.4 
autocomplete-haskell 0.7.2 
busy-signal 1.4.3 
custom-folds 1.9.4 
editor-background 1.2.38 
editor-stats 0.17.0 
file-icons 2.1.7 
fonts 3.0.2 
haskell-ghc-mod 1.19.9 
highlight-selected 0.13.1 
ide-haskell 1.9.6 
ide-haskell-cabal 1.9.2 
ide-haskell-hasktags 0.0.11 
ide-haskell-repl 0.6.0 
intentions 1.1.2 
japanese-word-selection 0.4.0 
language-haskell 1.12.1 
language-markdown 0.23.0 
linter 2.2.0 
linter-csslint 1.3.4 
linter-eslint 8.2.1 
linter-hlint 1.0.1 
linter-ui-default 1.6.2 
minimap 4.28.2 
minimap-git-diff 4.3.1 
minimap-highlight-selected 4.6.1 
minimap-pigments 0.2.2 
pigments 0.39.1 
remote-atom 1.3.10 
tidalcycles 0.8.7 

C:\Users\rikuo>cabal --version
cabal-install version 1.24.0.2
compiled using version 1.24.2.0 of the Cabal library

C:\Users\rikuo>ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2

SuperCollider version 3.8.0 64bit
SuperDirt: listening to Tidal on port 57120

Not sure what else information you need...

Uncaught Error: This Socket is closed

Just attempting to install tidal in linux mint but receiving this error when I boot TidalCycles in Atom. Everything seems to be set up correctly.

/bin/sh: ghci: command not found

events.js:163
Hide Stack Trace
Error: This socket is closed
    at Socket._writeGeneric (net.js:692:19)
    at Socket._write (net.js:743:8)
    at doWrite (_stream_writable.js:329:12)
    at writeOrBuffer (_stream_writable.js:315:5)
    at Socket.Writable.write (_stream_writable.js:241:11)
    at Socket.write (net.js:670:40)
    at REPL.stdinWrite (/home/loshsmosh/.var/app/io.atom.Atom/data/packages/tidalcycles/lib/repl.js:90:25)
    at REPL.tidalSendLine (/home/loshsmosh/.var/app/io.atom.Atom/data/packages/tidalcycles/lib/repl.js:94:14)
    at REPL.tidalSendExpression (/home/loshsmosh/.var/app/io.atom.Atom/data/packages/tidalcycles/lib/repl.js:99:14)
    at doIt (/home/loshsmosh/.var/app/io.atom.Atom/data/packages/tidalcycles/lib/repl.js:148:18)
    at REPL.evalWithRepl (/home/loshsmosh/.var/app/io.atom.Atom/data/packages/tidalcycles/lib/repl.js:152:9)
    at REPL._eval (/home/loshsmosh/.var/app/io.atom.Atom/data/packages/tidalcycles/lib/repl.js:125:14)
    at HTMLElement.tidalcyclesEvalMultiLine (/home/loshsmosh/.var/app/io.atom.Atom/data/packages/tidalcycles/lib/repl.js:31:55)
    at CommandRegistry.handleCommandEvent (/app/share/atom/resources/app/src/command-registry.js:384:49)
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/app/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/app/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
    at WindowEventHandler.handleDocumentKeyEvent (/app/share/atom/resources/app/src/window-event-handler.js:110:40)

OS: Linux Mint 18.3 'Sylvia'

tidalcycles (Atom Package) 0.12.1

Uncaught Error: This socket is closed

[Enter steps to reproduce:]

  1. Boot TidalCycles
    2:
    import Sound.Tidal.MIDI.Context
    import Sound.Tidal.MIDI.Stream
    import Sound.Tidal.MIDI.Synth

devices <- midiDevices

displayOutputDevices >>= putStrLn

m1 <- midiStream devices "LoopBe Internal MIDI" 1 synthController
Error occurs after running the last line

Atom: 1.14.3 ia32
Electron: 1.3.13
OS: Microsoft Windows 10 Home
Thrown From: tidalcycles package 0.8.5

Stack Trace

Uncaught Error: This socket is closed

At events.js:160

Error: This socket is closed
    at Socket._writeGeneric (net.js:673:19)
    at Socket._write (net.js:725:8)
    at doWrite (_stream_writable.js:307:12)
    at writeOrBuffer (_stream_writable.js:293:5)
    at Socket.Writable.write (_stream_writable.js:220:11)
    at Socket.write (net.js:651:40)
    at REPL.stdinWrite (/packages/tidalcycles/lib/repl.js:72:25)
    at REPL.tidalSendLine (/packages/tidalcycles/lib/repl.js:76:14)
    at REPL.tidalSendExpression (/packages/tidalcycles/lib/repl.js:81:14)
    at doIt (/packages/tidalcycles/lib/repl.js:130:18)
    at REPL.evalWithRepl (/packages/tidalcycles/lib/repl.js:134:9)
    at REPL._eval (/packages/tidalcycles/lib/repl.js:107:14)
    at /packages/tidalcycles/lib/repl.js:29:44)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
    at /app.asar/src/command-registry.js:3:59
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:599:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:390:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/app.asar/src/window-event-handler.js:106:36)
    at /app.asar/src/window-event-handler.js:3:59)

Commands

     -1:42.5.0 tidalcycles:boot (input.hidden-input)
  7x -1:27.7.0 tidalcycles:eval (input.hidden-input)

Non-Core Packages

tidalcycles 0.8.5 

import Scales and Chords

TidalCycles 0.9 contains scales and chords which perphaps could to be added in the startup file by calling these two imports:

import qualified Sound.Tidal.Scales as Scales
import qualified Sound.Tidal.Chords as Chords

Starting ghci with a different command

I'm experimenting with nix as a reliable way to install tidal tidalcycles/Tidal#637

As a result I now want to start ghci like this:

nix-shell -p "haskellPackages.ghcWithPackages (pkgs: [pkgs.tidal])" --run ghci

However if I try using this as the ghci setting in the atom plugin I get this when I boot tidal:

/bin/sh: 1: Syntax error: word unexpected (expecting ")")

I've tried escaping spaces etc with \ but no luck.

Console View in bottom dock

I think that console view would stay better inside bottom dock, that's perfect for that kind of stuff.

Any thoughts on that?

multiline eval at end of buffer causes Atom to hang

I think the latest PR that we merged from @fand has caused a bug. If a multi-line block that is at the very end of a file, Atom hangs when the block is eval'd. If I revert the PR, the problem does not happen. If I add the PR code back, Atom will hang. I will try to add more specific bug details later. A number of people have notified us of crashes/hangs within the past day. I may revert the PR so that users do not have problems until we can resolve this properly.

Deprecated selector in `tidalcycles/styles/tidal.less`

In tidalcycles/styles/tidal.less:

Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:

  • atom-text-editor::shadow .line => atom-text-editor.editor .line

  • atom-text-editor::shadow .line.line-error => atom-text-editor.editor .line.line-error

  • atom-text-editor::shadow .line.line-highlight => atom-text-editor.editor .line.line-highlight

  • atom-text-editor::shadow .line.eval-flash => atom-text-editor.editor .line.eval-flash

  • atom-text-editor::shadow .line.eval-success => atom-text-editor.editor .line.eval-success

  • atom-text-editor::shadow .line.eval-error, atom-text-editor::shadow .line.eval-syntax-error => atom-text-editor.editor .line.eval-error, atom-text-editor.editor .line.eval-syntax-error

Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.

Use of ghci/ghc path

Currently there's a setting for 'ghci path', with a value defaulting just to ghci
I think we really want a setting for the install location of ghc, then we can also use it for running ghc-pkg

So I suggest

  1. Making this blank by default
  2. Before using the path, stripping ghci from the end of it, if it exists
  3. Using this path for running both ghci and ghc-pkg

Uncaught TypeError: Cannot read property 'filter' of undefined

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.40.1 x64
Electron: 4.2.11
OS: "Manjaro Linux"
Thrown From: tidalcycles package 3.8.0

Stack Trace

Uncaught TypeError: Cannot read property 'filter' of undefined

At /home/will/.atom/packages/tidalcycles/lib/autocomplete-provider.js:23

TypeError: Cannot read property 'filter' of undefined
    at AutocompleteProvider.getSuggestions (/packages/tidalcycles/lib/autocomplete-provider.js:23:8)
    at providers.forEach.provider (/usr/lib/atom/node_modules/autocomplete-plus/lib/autocomplete-manager.js:287:52)
    at Array.forEach (<anonymous>)
    at AutocompleteManager.getSuggestionsFromProviders (/usr/lib/atom/node_modules/autocomplete-plus/lib/autocomplete-manager.js:258:15)
    at AutocompleteManager.findSuggestions (/usr/lib/atom/node_modules/autocomplete-plus/lib/autocomplete-manager.js:250:17)
    at AutocompleteManager.requestNewSuggestions (/usr/lib/atom/node_modules/autocomplete-plus/lib/autocomplete-manager.js:697:12)
    at AutocompleteManager.showOrHideSuggestionListForBufferChanges (/usr/lib/atom/node_modules/autocomplete-plus/lib/autocomplete-manager.js:763:12)
    at Function.simpleDispatch (/usr/lib/atom/node_modules/event-kit/dist/emitter.js:64:14)
    at Emitter.emit (/usr/lib/atom/node_modules/event-kit/dist/emitter.js:257:28)
    at TextBuffer.emitDidChangeTextEvent (/usr/lib/atom/node_modules/text-buffer/lib/text-buffer.js:2360:24)
    at TextBuffer.transact (/usr/lib/atom/node_modules/text-buffer/lib/text-buffer.js:1337:10)
    at TextEditor.transact (/usr/lib/atom/src/text-editor.js:2302:24)
    at mergeIntersectingSelections (/usr/lib/atom/src/text-editor.js:1634:19)
    at TextEditor.mergeSelections (/usr/lib/atom/src/text-editor.js:3885:47)
    at TextEditor.mergeIntersectingSelections (/usr/lib/atom/src/text-editor.js:3850:10)
    at TextEditor.mutateSelectedText (/usr/lib/atom/src/text-editor.js:1633:17)
    at TextEditor.insertText (/usr/lib/atom/src/text-editor.js:1586:25)
    at TextEditor.object.(anonymous function) [as insertText] (/usr/lib/atom/node_modules/underscore-plus/lib/underscore-plus.js:77:27)
    at TextEditorComponent.didTextInput (/usr/lib/atom/src/text-editor-component.js:1850:24)

Commands

     -0:26.8.0 vim-mode-plus:reset-normal-mode (input.hidden-input)
     -0:26.1.0 intentions:highlight (input.hidden-input)
     -0:25.9.0 core:save (input.hidden-input)
     -0:25.7.0 vim-mode-plus:reset-normal-mode (input.hidden-input)
     -0:22.7.0 vim-mode-plus:activate-normal-mode (input.hidden-input)
  4x -0:22.6.0 vim-mode-plus:move-left (input.hidden-input)
     -0:21.8.0 vim-mode-plus:insert-after (input.hidden-input)
     -0:20.6.0 core:backspace (input.hidden-input)
     -0:20.3.0 vim-mode-plus:activate-normal-mode (input.hidden-input)
     -0:20 intentions:highlight (input.hidden-input)
     -0:20 core:save (input.hidden-input)
     -0:19.7.0 vim-mode-plus:reset-normal-mode (input.hidden-input)
     -0:19.4.0 intentions:highlight (input.hidden-input)
     -0:18.6.0 tidalcycles:eval-multi-line (input.hidden-input)
  2x -0:16.9.0 intentions:highlight (input.hidden-input)
     -0:15.5.0 tidalcycles:hush (input.hidden-input)

Non-Core Packages

ask-stack 2.2.0 
atom-hydra 0.2.12 
atom-latex 0.8.11 
atom-package-sync 0.4.0 
atom-terminal 0.8.0 
auto-indent 0.5.0 
autocomplete-glsl 0.2.3 
autocomplete-python 1.16.0 
browser-plus 0.0.98 
busy-signal 2.0.1 
foxdot 1.0.0 
glsl-preview 2.0.1 
haskell-hoogle 0.1.3 
Hydrogen 2.12.0 
ide-haskell 2.4.1 
ide-haskell-repl 0.9.0 
ide-r 0.1.8 
improviz 0.5.0 
intentions 1.1.5 
language-glsl 2.0.4 
language-haskell 1.19.1 
language-ipynb 1.3.0 
language-latex 1.2.0 
language-supercollider 0.2.1 
linter 2.3.1 
linter-clojure 1.2.0 
linter-glsl 2.2.0 
linter-python 3.1.2 
linter-ui-default 1.8.0 
min-ui 0.0.4 
monokai 0.24.0 
open_in_cmd 0.6.1 
open-terminal-here 2.3.2 
processing 0.13.0 
processing-autocomplete 0.2.0 
processing-language 0.2.0 
project-manager 3.3.8 
supercollider 0.10.0 
tidalcycles 3.8.0 
veda 2.11.4 
vim-mode-plus 1.36.2 

Error loading boot tidal file since v.3.8.3

Seems a problem with GHC version 8.0.2:

console output:

$ ghci
GHCi, version 8.0.2: http://www.haskell.org/ghc/  :? for help
Prelude> :script /.../tidal_boot_147.hs
Some flags have not been recognized: prompt-cont, 
d1 $ s "bd"

<interactive>:2:1: error: Variable not in scope: d1 :: t0 -> t

<interactive>:2:6: error: Variable not in scope: s :: [Char] -> t0

maybe we need a property to choose how to load the boot file?

Indentation issues when loading custom BootTidal.hs

If it put this (as far as I can tell) perfectly valid bit of Haskell in my BootTidal.hs, GHCI complains about indentation or mismatched bracket issues. I've tried re-arranging my functions in a variety of ways, but the only things it seems to accept are one-liners.

describeLetter :: Char -> String
describeLetter c =
    if c >= 'a' && c <= 'z'
        then "Lower case"
        else if c >= 'A' && c <= 'Z'
            then "Upper case"
            else "Not an ASCII letter"

Autoscroll in console not working

Not sure this is autoscroll, or something else. But new messages don't pop up in the console, instead I have to do it manually to see the last message.

Limit key commands to your own grammar

We merged this once:

#1

But it's been reverted.

Please limit this to your own grammar. You are calling your function even if somebody is trying to use atom-supercollider. Atom is a bit confusing with the key commands, so package developers really need to cooperate on this. Please don't pollute the global key command spec.

Thanks,

stack error update 3.8.7 Windows 10 x64.

Hi!
Evrything work perfect with 3.8.1, after update i have stack error.
[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.45.0 x64
Electron: 4.2.7
OS: Unknown Windows version
Thrown From: tidalcycles package 3.8.7

Stack Trace

Uncaught Cannot call write after a stream was destroyed

At events.js:167

Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
    at doWrite (_stream_writable.js:406:19)
    at writeOrBuffer (_stream_writable.js:394:5)
    at Socket.Writable.write (_stream_writable.js:294:11)
    at Ghci.writeLine (/packages/tidalcycles/lib/ghci.js:20:24)
    at REPL.tidalSendLine (/packages/tidalcycles/lib/repl.js:127:17)
    at REPL.tidalSendExpression (/packages/tidalcycles/lib/repl.js:118:14)
    at doIt (/packages/tidalcycles/lib/repl.js:165:18)
    at REPL.evalWithRepl (/packages/tidalcycles/lib/repl.js:169:9)
    at REPL._eval (/packages/tidalcycles/lib/repl.js:142:14)
    at HTMLElement.tidalcyclesEval (/packages/tidalcycles/lib/repl.js:36:44)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:11:349290)
    at KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:11:1254747)
    at KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:11:1250881)
    at WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:11:284496)

Commands

     -6:40.2.0 window:run-package-specs (ul.list-inline.tab-bar.inset-panel)
     -6:19.2.0 intentions:highlight (input.hidden-input)
     -6:18.3.0 window:run-package-specs (input.hidden-input)
     -1:13.4.0 core:delete (input.hidden-input)
     -0:38.6.0 tidalcycles:reboot (input.hidden-input)
     -0:11.7.0 tidalcycles:eval (input.hidden-input)

Non-Core Packages

atom-nodejs-snippets 2.1.1 
atom-ternjs 0.20.0 
autocomplete-glsl 0.2.3 
browser-plus 0.0.98 
busy-signal 2.0.1 
es6-javascript 1.0.0 
haskell-cleanse 1.0.3 
hyperclick 0.1.5 
intentions 1.1.5 
js-hyperclick 1.13.3 
language-glsl 2.0.4 
language-haskell 1.19.4 
linter 2.3.1 
linter-glsl 2.2.0 
linter-jscs 4.2.4 
linter-jshint 3.1.19 
linter-ui-default 1.8.1 
platformio-ide-terminal undefined 
react 0.18.0 
script 3.25.0 
tidal-autocode 0.6.4 
tidalcycles 3.8.7 
veda 2.13.1 

When using stack ghc, how should command line arguments be handled?

Issue

  • Currently, if you use stack ghc as your ghci path in settings, the interpreter will fail to parse strings correctly leading to errors and no patterns being sent by tidal to SuperDirt
  • This is because the command line arguments required when launching ghc are being sent to stack instead of ghc:
    https://github.com/tidalcycles/atom-tidalcycles/blob/1af570666720b86c4a4bb8ee76fc71f4d5b29673/lib/repl.js#L49
  • When using stack, the command line argument should be stack ghc -- --interactive -XOverloadedStrings. This ensures the XOverloadedStrings goes to ghc and not stack

Options

  • Option A: specify in the readme or elsewhere that users should paste stack ghc -- --interactive -XOverloadedStrings when using stack
  • Option B: the plugin should handle this and users should only be required to type stack ghc. Would this create extra maintenance pain?
  • Option C: ???

See also: http://lurk.org/groups/tidal/messages/topic/7znL4SI9uwsUGfuwq51cys/

Uncaught Error: ENOENT: no such file or directory, open 'ghci'

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.38.2 x64
Electron: 2.0.18
OS: Mac OS X 10.12.6
Thrown From: tidalcycles package 3.0.0

Stack Trace

Uncaught Error: ENOENT: no such file or directory, open 'ghci'

At fs.js:646

Error: ENOENT: no such file or directory, open 'ghci'
    at Object.fs.openSync (fs.js:646:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:166:20)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:538:29)
    at REPL.initTidal (/packages/tidalcycles/lib/repl.js:137:27)
    at REPL.start (/packages/tidalcycles/lib/repl.js:164:14)
    at HTMLElement.tidalcyclesBoot (/packages/tidalcycles/lib/repl.js:27:26)
    at CommandRegistry.handleCommandEvent (/private/var/folders/t9/4pk04sw91c37nyt15w2vtg3c0000gp/T/AppTranslocation/36BED34F-CB56-422C-9E9D-EB58E652E21D/d/Atom 2.app/Contents/Resources/app/static/<embedded>:11:348418)
    at CommandRegistry.dispatch (/private/var/folders/t9/4pk04sw91c37nyt15w2vtg3c0000gp/T/AppTranslocation/36BED34F-CB56-422C-9E9D-EB58E652E21D/d/Atom 2.app/Contents/Resources/app/static/<embedded>:11:346893)
    at AtomEnvironment.dispatchApplicationMenuCommand (/private/var/folders/t9/4pk04sw91c37nyt15w2vtg3c0000gp/T/AppTranslocation/36BED34F-CB56-422C-9E9D-EB58E652E21D/d/Atom 2.app/Contents/Resources/app/static/<embedded>:1:717210)
    at EventEmitter.t (/private/var/folders/t9/4pk04sw91c37nyt15w2vtg3c0000gp/T/AppTranslocation/36BED34F-CB56-422C-9E9D-EB58E652E21D/d/Atom 2.app/Contents/Resources/app/static/<embedded>:1:725133)
    at emitThree (events.js:136:13)
    at EventEmitter.emit (events.js:217:7)

Commands

  5x -0:31.9.0 core:backspace (input.hidden-input)
  2x -0:29.3.0 core:save-as (input.hidden-input)
     -0:03.6.0 tidalcycles:boot (input.hidden-input)

Non-Core Packages

tidalcycles 3.0.0 

Uncaught Error: write EPIPE

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.17.0 x64
Electron: 1.3.15
OS: Microsoft Windows 10 Enterprise
Thrown From: tidalcycles package 0.8.6

Stack Trace

Uncaught Error: write EPIPE

At events.js:160

Error: write EPIPE
    at exports._errnoException (util.js:1026:11)
    at Socket._writeGeneric (net.js:706:26)
    at Socket._write (net.js:725:8)
    at doWrite (_stream_writable.js:307:12)
    at writeOrBuffer (_stream_writable.js:293:5)
    at Socket.Writable.write (_stream_writable.js:220:11)
    at Socket.write (net.js:651:40)
    at REPL.stdinWrite (/packages/tidalcycles/lib/repl.js:72:25)
    at REPL.tidalSendLine (/packages/tidalcycles/lib/repl.js:76:14)
    at REPL.initTidal (/packages/tidalcycles/lib/repl.js:67:18)
    at REPL.start (/packages/tidalcycles/lib/repl.js:92:14)
    at /packages/tidalcycles/lib/repl.js:21:26)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.17.0/resources/app/src/command-registry.js:265:1)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.17.0/resources/app/src/command-registry.js:3:1)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (~/AppData/Local/atom/app-1.17.0/resources/app/src/command-registry.js:166:1)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (~/AppData/Local/atom/app-1.17.0/resources/app/src/atom-environment.js:1286:1)
    at EventEmitter.outerCallback (~/AppData/Local/atom/app-1.17.0/resources/app/src/application-delegate.js:334:1)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

     -0:34.6.0 core:save-as (ul.list-inline.tab-bar.inset-panel)
     -0:21 tidalcycles:boot (input.hidden-input)

Non-Core Packages

tidalcycles 0.8.6 

ctrl-. for hush by default?

ctrl-. in SuperCollider silences the synths. I think there's already a shortcut in atom for hush, but it could be nice to make ctrl-. work for sending hush to tidal as well.

BootTidal.hs load sequence is wrong

README.md is a little confusing about that, in the Configurable boot options chapter.

Before, it reports that by the plugin will choose a default Tidal bootup sequence, but can be defined a path to your own custom boot. At the end is possible to check an option to load the file in the current directory.

In the same chapter there's a list that shows the same 3 options but in inverted order.

Lookin into the code, it seems that the useBootFileInCurrentDirectory flag is not used, the default choice is that will be choosed the boot file in the current directory, then a custom file and, at the end, the default package boot file.

I propose to remove the useBootFileInCurrentDirectory and use this sequence:

  1. if provided, the custom boot file path
  2. boot file in the current directory
  3. if no boot file exists in the current directory, choose the default package file.

Uncaught Error: EISDIR: illegal operation on a directory, read

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.32.2 x64
Electron: 2.0.9
OS: Microsoft Windows 10 Pro
Thrown From: tidalcycles package 0.12.1

Stack Trace

Uncaught Error: EISDIR: illegal operation on a directory, read

At fs.js:675

Error: EISDIR: illegal operation on a directory, read
    at Object.fs.readSync (fs.js:675:18)
    at tryReadSync (fs.js:540:20)
    at Object.fs.readFileSync (fs.js:583:19)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:538:29)
    at REPL.initTidal (/packages/tidalcycles/lib/repl.js:83:27)
    at REPL.start (/packages/tidalcycles/lib/repl.js:110:14)
    at REPL._eval (/packages/tidalcycles/lib/repl.js:120:30)
    at HTMLElement.tidalcyclesEval (/packages/tidalcycles/lib/repl.js:30:44)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.32.2/resources/app/static/<embedded>:11:347327)
    at KeymapManager.t.exports.KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.32.2/resources/app/static/<embedded>:11:1227611)
    at KeymapManager.t.exports.KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.32.2/resources/app/static/<embedded>:11:1223745)
    at WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.32.2/resources/app/static/<embedded>:11:282763)

Commands

     -0:05.9.0 tidalcycles:eval (input.hidden-input)

Non-Core Packages

tidalcycles 0.12.1 

"/bin/sh: ghci: comand not found"

hi,
I installed SuperCollider and haskell successful, but when I open the package in atom it cannot find ghci.
I tried to modify the path with the one I obtain using which, but the problem persist.
Do you have any idea on what to do?

thank you in advance.

I just UPDATED atom-tidalcycles 3.8.7

SuperCollider and SuperDirt are running correctly and I checked ‘Sound.Tidal.Context’ and is installed, got this error in Atom:

: error:
Could not find module ‘Sound.Tidal.Context’
It is not a module in the current program, or in any known package.

Variable not in scope: d1 :: t0 -> t

• Variable not in scope: sound :: [Char] -> t0
• Perhaps you meant ‘round’ (imported from Prelude)

Uncaught Error: This socket has been ended by the other party

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.12.7
Electron Version: 1.3.13
System: Mac OS X 10.12
Thrown From: tidalcycles package, v0.8.5

Stack Trace

Uncaught Error: This socket has been ended by the other party

At events.js:160

Error: This socket has been ended by the other party
    at Socket.writeAfterFIN [as write] (net.js:286:12)
    at REPL.stdinWrite (/Users/Agustin/.atom/packages/tidalcycles/lib/repl.js:72:25)
    at REPL.tidalSendLine (/Users/Agustin/.atom/packages/tidalcycles/lib/repl.js:76:14)
    at REPL.tidalSendExpression (/Users/Agustin/.atom/packages/tidalcycles/lib/repl.js:81:14)
    at doIt (/Users/Agustin/.atom/packages/tidalcycles/lib/repl.js:130:18)
    at REPL.evalWithRepl (/Users/Agustin/.atom/packages/tidalcycles/lib/repl.js:134:9)
    at REPL._eval (/Users/Agustin/.atom/packages/tidalcycles/lib/repl.js:107:14)
    at atom-text-editor.tidalcyclesEval (/Users/Agustin/.atom/packages/tidalcycles/lib/repl.js:29:44)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:259:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:59
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:587:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:382:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:106:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:59)

Commands

  2x -5:48.9.0 application:open (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
  2x -5:23.7.0 tidalcycles:eval (atom-text-editor.editor.is-focused)

Config

{}

Installed Packages

# User
tidalcycles, v0.8.5 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.45.0 (inactive)
base16-tomorrow-dark-theme, v1.3.0 (inactive)
base16-tomorrow-light-theme, v1.3.0 (inactive)
one-dark-ui, v1.6.2 (active)
one-light-ui, v1.6.2 (inactive)
one-dark-syntax, v1.5.0 (active)
one-light-syntax, v1.5.0 (inactive)
solarized-dark-syntax, v1.0.5 (inactive)
solarized-light-syntax, v1.0.5 (inactive)
about, v1.7.0 (active)
archive-view, v0.62.0 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.13.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.4 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.2 (active)
command-palette, v0.39.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.202.2 (inactive)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.60.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.2 (inactive)
markdown-preview, v0.158.8 (active)
metrics, v1.1.2 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.1 (inactive)
package-generator, v1.0.1 (inactive)
settings-view, v0.243.1 (active)
snippets, v1.0.4 (active)
spell-check, v0.68.4 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.2 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.103.0 (active)
timecop, v0.33.2 (active)
tree-view, v0.210.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.35.0 (active)
wrap-guide, v0.38.2 (active)
language-c, v0.54.0 (active)
language-clojure, v0.22.1 (active)
language-coffee-script, v0.48.0 (active)
language-csharp, v0.13.0 (active)
language-css, v0.40.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.43.0 (active)
language-html, v0.47.1 (active)
language-hyperlink, v0.16.1 (active)
language-java, v0.24.0 (active)
language-javascript, v0.122.0 (active)
language-json, v0.18.3 (active)
language-less, v0.29.6 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.37.0 (active)
language-php, v0.37.3 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.1 (active)
language-ruby, v0.70.2 (active)
language-ruby-on-rails, v0.25.1 (active)
language-sass, v0.57.0 (active)
language-shellscript, v0.23.0 (active)
language-source, v0.9.0 (active)
language-sql, v0.25.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.29.1 (active)
language-toml, v0.18.1 (active)
language-xml, v0.34.12 (active)
language-yaml, v0.27.1 (active)

# Dev
No dev packages

Errors on boot after update to 3.0.0

After updating to 3.0.0 I'm constantly getting the bunch of errors on TidalCycles boot up in Atom. As a consequence, transitions like xfade etc. don't work.
Here is the list of errors:

* Couldn't match type `Pattern ControlMap' with `Bool'
  Expected type: Pattern Double -> Bool
    Actual type: Pattern Double -> ControlPattern
* In the second argument of `(.)', namely `cps'
  In the expression: asap . cps
  In an equation for `setcps': setcps = asap . cps


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (xfadeIn 4) i
  In an equation for `xfade':
      xfade i = transition tidal True (xfadeIn 4) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (xfadeIn t) i
  In an equation for `xfadeIn':
      xfadeIn i t = transition tidal True (xfadeIn t) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (histpan t) i
  In an equation for `histpan':
      histpan i t = transition tidal True (histpan t) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (wait t) i
  In an equation for `wait':
      wait i t = transition tidal True (wait t) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (waitT f t) i
  In an equation for `waitT':
      waitT i f t = transition tidal True (waitT f t) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (jump) i
  In an equation for `jump': jump i = transition tidal True (jump) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (jumpIn t) i
  In an equation for `jumpIn':
      jumpIn i t = transition tidal True (jumpIn t) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (jumpIn' t) i
  In an equation for jumpIn':
      jumpIn' i t = transition tidal True (jumpIn' t) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (jumpMod t) i
  In an equation for `jumpMod':
      jumpMod i t = transition tidal True (jumpMod t) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression:
    transition tidal True (mortal lifespan release) i
  In an equation for `mortal':
      mortal i lifespan release
        = transition tidal True (mortal lifespan release) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (interpolate) i
  In an equation for `interpolate':
      interpolate i = transition tidal True (interpolate) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (interpolateIn t) i
  In an equation for `interpolateIn':
      interpolateIn i t = transition tidal True (interpolateIn t) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (clutch) i
  In an equation for `clutch':
      clutch i = transition tidal True (clutch) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (clutchIn t) i
  In an equation for `clutchIn':
      clutchIn i t = transition tidal True (clutchIn t) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (anticipate) i
  In an equation for `anticipate':
      anticipate i = transition tidal True (anticipate) i


* Couldn't match expected type `Time
                                -> [ControlPattern] -> ControlPattern'
              with actual type `Bool'
* In the second argument of `transition', namely `True'
  In the expression: transition tidal True (anticipateIn t) i
  In an equation for `anticipateIn':
      anticipateIn i t = transition tidal True (anticipateIn t) i


Not in scope: `Sound.Tidal.Transition.mortalOverlay'
No module named `Sound.Tidal.Transition' is imported.

Cannot load tidal within atom plugin

I can load tidal from commandline if I enter ghci and then load the boottidal.hs with :script
But it seem to be broken inside atom... what could be the cause of this?

This is what I see if I try to evaluate a line inside atom

Custom ghci path configured: ghci
Ghci command: ghci
Ghc-pkg command: ghc-pkg
Load BootTidal.hs from /home/diegodorado/.atom/packages/tidalcycles/lib/BootTidal.hs
GHCi, version 8.6.5: http://www.haskell.org/ghc/  :? for help

: error:
    Could not find module `Sound.Tidal.Context'
    It is not a module in the current program, or in any known package.

Change tidalRepl references to this.tidalRepl

in tidalcycles.js I see tidalRepl is exported, but never set since it is not called with this
Although everything works, it would be useful to me to get access to these variable from another plugin where I am to wrap tidalSendLine function to preprocess the code to be sent.

I have tried this locally and works properly. I have changed these tidalcycles.js lines.

    activate(state) {
        this.consoleView = new ConsoleView(state.consoleViewState);
        this.tidalRepl = new Repl(this.consoleView);
    },

    deactivate() {
        this.consoleView.destroy();
        this.tidalRepl.destroy();
    },

    serialize() {
        return {
            consoleViewState: this.consoleView.serialize()
        };
    }

TidalCycles won't run - Windows 10 64-bit

Whenever I try to boot TidalCycles, I get the following message:

': error:
Could not find module `Sound.Tidal.Context'
It is not a module in the current program, or in any known package.

Not in scope: oLatency

Not in scope: oAddress

Not in scope: oPort

Not in scope: cFrameTimespan

Variable not in scope: streamReplace :: t0 -> t

Variable not in scope: tidal

Variable not in scope: streamHush :: t0 -> t

Variable not in scope: tidal

* Variable not in scope: streamList :: t0 -> t
* Perhaps you meant `readList' (imported from Prelude)

Variable not in scope: tidal

Variable not in scope: streamMute :: t0 -> t

Variable not in scope: tidal

Variable not in scope: streamUnmute :: t0 -> t

Variable not in scope: tidal

Variable not in scope: streamSolo :: t0 -> t

Variable not in scope: tidal

Variable not in scope: streamUnsolo :: t0 -> t

Variable not in scope: tidal

Variable not in scope: streamOnce :: t0 -> t

Variable not in scope: tidal'

SuperCollider works just fine and Tidal is installed on my machine.

Broken under windows

The plugin is currently not working under windows. I think we should back out the last release first, and then test a bit more before trying again.

check for ghcup?

Sorry to bring up the ghc path again, but the default install method for mac os and linux is via ghcup (https://www.haskell.org/ghcup/). ghci then ends up in ~/.ghcup/bin/ghci
However, often the user's PATH doesn't get properly updated, so running ghci doesn't find it. I wonder if the plugin could add a check for ~/.ghcup/bin/ghci if a path isn't otherwise set?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.