# Getting experimental FeedForward editor to work

**URL:** <https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222>\
**Category:** TidalCycles\
**Tags:** installation\
**Created:** [6 April 2020 17:15 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222 "2020-04-06T17:15:52Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Squim](https://uzu.lurk.org/user_avatar/uzu.lurk.org/squim/32/1128_2.png) [@Squim](https://uzu.lurk.org/u/Squim)\
**Post date:** [21 October 2020 06:02 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/42 "2020-10-21T06:02:34Z")

</div>

Aye, I did that step. Perhaps I missed something. I'll try again.

I tried again and it's still happening. Is there a step I'm missing?

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [21 October 2020 10:28 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/43 "2020-10-21T10:28:50Z")

</div>

Yes running with `2> err.txt` should get rid of that. I can't see why it wouldn't work 😕

---

<div class="post-metadata">

**Author:** ![Squim](https://uzu.lurk.org/user_avatar/uzu.lurk.org/squim/32/1128_2.png) [@Squim](https://uzu.lurk.org/u/Squim)\
**Post date:** [21 October 2020 13:34 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/44 "2020-10-21T13:34:08Z")

</div>

It's working. I was missing something. I kept executing "feedforward 2\> err.txt" instead of "./feedforward 2\> err.txt" since the first didn't return an error I thought it was a setting that was being written.

---

<div class="post-metadata">

**Author:** ![hellocatfood](https://uzu.lurk.org/user_avatar/uzu.lurk.org/hellocatfood/32/42_2.png) [@hellocatfood](https://uzu.lurk.org/u/hellocatfood)\
**Post date:** [21 October 2020 14:43 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/45 "2020-10-21T14:43:57Z")

</div>

I tried running `s.options.maxLogins = 8;` and now when I run `./.cabal/bin/feedforward 2 > err.txt` the terminal returns this message:

```haskell
feedforward: sigaction
feedforward: sigaction
feedforward: sigaction
                      feedforward: sigaction

```

I can see a blinking cursor a the end but I'm unable to type.

EDIT: I added an extra space which caused my error. It should be `./.cabal/bin/feedforward 2> err.txt` not `./.cabal/bin/feedforward 2 > err.txt` (no space between 2 and \> )

---

<div class="post-metadata">

**Author:** ![hellocatfood](https://uzu.lurk.org/user_avatar/uzu.lurk.org/hellocatfood/32/42_2.png) [@hellocatfood](https://uzu.lurk.org/u/hellocatfood)\
**Post date:** [21 October 2020 15:53 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/46 "2020-10-21T15:53:35Z")

</div>

I've now got feedfoward working on Ubuntu 20.04 (yay) but in gnome-terminal pressing F10 to close it doesn't work. If I just close the terminal the music keeps playing until I stop supercollider. Worryingly the feedforward process still exist _after_ I've closed the terminal. Even `killall feedforward` doesn't do anything (the process is still alive). The below screenshot is from me trying to run feedfoward several times.

 ![Screenshot from 2020-10-21 10-25-15](https://club.tidalcycles.org/uploads/default/original/2X/d/de40074308b7038c53b7ff19fa029c443b43928d.png)

The memory usage slowed my computer down a lot.

---

<div class="post-metadata">

**Author:** ![lxyxpx](https://uzu.lurk.org/user_avatar/uzu.lurk.org/lxyxpx/32/19_2.png) [@lxyxpx](https://uzu.lurk.org/u/lxyxpx)\
**Post date:** [21 October 2020 16:57 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/47 "2020-10-21T16:57:04Z")

</div>

Hmm.. Howabout `killall -9 feedforward` ? It might also be that the terminal is blocking F10 from getting to the process, you might be able to configure that in the terminal settings.

---

<div class="post-metadata">

**Author:** ![cleary](https://uzu.lurk.org/user_avatar/uzu.lurk.org/cleary/32/177_2.png) [@cleary](https://uzu.lurk.org/u/cleary)\
**Post date:** [21 October 2020 21:55 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/48 "2020-10-21T21:55:30Z")

</div>

> [@hellocatfood](#):
>
> I've now got feedfoward working on Ubuntu 20.04 (yay)

As a side note, I've spent some time working on making this install simpler on \*buntu/debian variants using the ansible provisioning tool - there's a repo here:

> **[GitHub - cleary/ansible-tidalcycles: ansible playbooks for installing the...](https://github.com/cleary/ansible-tidalcycles)**
>
> ansible playbooks for installing the Tidal Cycles live coding environment with a single command, supporting multiple editors commonly used with Tidal - cleary/ansible-tidalcycles

It's always nice to come to grips with the pieces and how they fit together, but next time around you may want to take a look at the above repo

From blank ubuntu to supercollider/feedforward install it's as simple as cloning the repo and:

```haskell
sudo ansible-playbook --connection=local -i localhost, tidal_feedforward.play.yml

```

Your F10 issue is almost guaranteed to be the gnome-terminal grabbing the shortcut, I'm a fan of `tilix` as an alternative (it has a builtin quake style mode too) -

PS I'm a big fan of your work 🙂

---

<div class="post-metadata">

**Author:** ![hellocatfood](https://uzu.lurk.org/user_avatar/uzu.lurk.org/hellocatfood/32/42_2.png) [@hellocatfood](https://uzu.lurk.org/u/hellocatfood)\
**Post date:** [22 October 2020 11:08 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/49 "2020-10-22T11:08:48Z")

</div>

@yaxu thanks, `killall -9 feedforward` successfully kills zombie feedforward processes.

@cleary I haven't tried out ansible but will keep it in mind for future installations! Also I'll definitely try out tilix and other linux terminals. Where possible I try and use what comes default with an operating system (makes writing tutorials easier) but definitely think for personal stuff I need a better terminal.

---

<div class="post-metadata">

**Author:** ![hellocatfood](https://uzu.lurk.org/user_avatar/uzu.lurk.org/hellocatfood/32/42_2.png) [@hellocatfood](https://uzu.lurk.org/u/hellocatfood)\
**Post date:** [22 October 2020 22:20 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/50 "2020-10-22T22:20:59Z")

</div>

@yaxu what terminal do you use? I'm trying to get a box around the code like you do when we perform together. i.e.

 ![Screenshot from 2020-10-22 23-12-15](https://club.tidalcycles.org/uploads/default/original/2X/e/ecd25e6d405c3afa84ed7e96327d0d0ce9897df9.png)

I haven't seen any theming options for gnome-terminal so I'm figuring it's a different terminal from the Ubuntu default.

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [23 October 2020 08:24 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/51 "2020-10-23T08:24:59Z")

</div>

Just the default terminal.. actually I think the black borders are artifacts from chromakeying !

---

<div class="post-metadata">

**Author:** ![hellocatfood](https://uzu.lurk.org/user_avatar/uzu.lurk.org/hellocatfood/32/42_2.png) [@hellocatfood](https://uzu.lurk.org/u/hellocatfood)\
**Post date:** [23 October 2020 09:08 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/52 "2020-10-23T09:08:39Z")

</div>

Really just gnome-terminal? Any chance you could share your configuration file/instructions?

---

<div class="post-metadata">

**Author:** ![cleary](https://uzu.lurk.org/user_avatar/uzu.lurk.org/cleary/32/177_2.png) [@cleary](https://uzu.lurk.org/u/cleary)\
**Post date:** [23 October 2020 22:30 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/53 "2020-10-23T22:30:24Z")

</div>

Iirc @yaxu uses mint, which comes in a few DE flavours so "default terminal" is likely to be different to yours.

Your options as I see them:  
Disable the F10 shortcut in gnome terminal  
[https://unix.stackexchange.com/questions/290533/pass-f10-to-the-application-in-gnome-terminal](https://unix.stackexchange.com/questions/290533/pass-f10-to-the-application-in-gnome-terminal) (you might need to go to the comments in that accepted answer)

Use a different Ubuntu flavour for your tutorial - Ubuntu Studio now comes with KDE which will use konsole as the default term, of xfce4-terminal prior to 20.10

Just recommend a different terminal altogether (all the alternatives mentioned above should be fine)

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [23 October 2020 22:53 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/54 "2020-10-23T22:53:56Z")

</div>

Hm it's called 'mate terminal', probably a fork of gnome-terminal. I'm not doing any theming, I just turn off the scroll and menu bar and change the colours to white on black.. Anything funky is likely to be from chromakeying in OBS

---

<div class="post-metadata">

**Author:** ![hellocatfood](https://uzu.lurk.org/user_avatar/uzu.lurk.org/hellocatfood/32/42_2.png) [@hellocatfood](https://uzu.lurk.org/u/hellocatfood)\
**Post date:** [24 October 2020 13:29 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/55 "2020-10-24T13:29:12Z")

</div>

> [@yaxu](#):
>
> Anything funky is likely to be from chromakeying in OBS

Yeah I get that. What I'm trying to do is set the background colour for the text so that I can remove the background colour for the terminal in a different application. In the preferences for gnome-terminal the configuration options only allow me to change the background of the whole terminal, not just the background of the text.

 ![Screenshot from 2020-10-24 14-22-56](https://club.tidalcycles.org/uploads/default/original/2X/c/cbee6e953d3c4434e3ee2f722f9cf67ae38a0b4d.png)

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [24 October 2020 18:51 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/56 "2020-10-24T18:51:41Z")

</div>

Aha, sorry I understand now. I made some changes to set the colours I forgot about. I've made a branch with that.. If you `git pull; git checkout catfoodmclean` that should sort it. To change the colours you'd have to edit them in Edit.hs

---

<div class="post-metadata">

**Author:** ![hellocatfood](https://uzu.lurk.org/user_avatar/uzu.lurk.org/hellocatfood/32/42_2.png) [@hellocatfood](https://uzu.lurk.org/u/hellocatfood)\
**Post date:** [24 October 2020 21:03 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/57 "2020-10-24T21:03:19Z")

</div>

Brill, thanks! (guessing it's `fg <- newColorID ColorWhite ColorBlue 1` on line 471)

I upgraded Ubuntu from 20.04 to 20.10 and I've had a few problems getting Tidal to run. I've now got it working when using the Atom plugin but feedforward doesn't seem to trigger sounds. When I press alt +1/2 etc or Ctrl + Enter each line just has a red number (which I'm guessing means error).

I checked err.txt and it just has this in it:

```haskell
feedforward: sigaction
feedforward: sigaction
Id: 1
feedforward: sigaction
feedforward: sigaction
Id: 2

```

I'm guessing feedforward is "connected" because I tried using the atom plugin at the same time and in the error window it said

```haskell
t> Listening for controls on 127.0.0.1:6010
Control listen failed. Perhaps there's already another tidal instance listening on that port?

```

---

<div class="post-metadata">

**Author:** ![lxyxpx](https://uzu.lurk.org/user_avatar/uzu.lurk.org/lxyxpx/32/19_2.png) [@lxyxpx](https://uzu.lurk.org/u/lxyxpx)\
**Post date:** [24 October 2020 21:50 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/58 "2020-10-24T21:50:51Z")

</div>

Hm agreed that suggests that feedforward has tidal running..  
You could try changing into the `feedforward/src` folder and running this:  
`runhaskell Main 2>/tmp/err.txt`

In the past I've found some cases where that works when compiling it to a binary doesn't

---

<div class="post-metadata">

**Author:** ![hellocatfood](https://uzu.lurk.org/user_avatar/uzu.lurk.org/hellocatfood/32/42_2.png) [@hellocatfood](https://uzu.lurk.org/u/hellocatfood)\
**Post date:** [24 October 2020 22:58 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/59 "2020-10-24T22:58:19Z")

</div>

Unfortunately that doesn't work. I checked the `/tmp/err.txt` file and it says this:

```haskell
Loaded package environment from /home/hellocatfood/.ghc/x86_64-linux-8.8.3/environments/default

Change.hs:5:1: error:
    Could not load module ‘Data.Aeson’
    It is a member of the hidden package ‘aeson-1.5.4.1’.
    You can run ‘:set -package aeson’ to expose it.
    (Note: this unloads all the modules in the current scope.)
    It is a member of the hidden package ‘aeson-1.5.4.1’.
    You can run ‘:set -package aeson’ to expose it.
    (Note: this unloads all the modules in the current scope.)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
5 | import qualified Data.Aeson as A
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

```

Tried running `cabal install aeson` and ran it again and still the same error.

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [25 October 2020 10:17 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/60 "2020-10-25T10:17:13Z")

</div>

Hm probably the new cabal stuff causing problems again.  
You could delete ~/.cabal and ~/.ghc, and then try again by doing `cabal v1-install` instead of `cabal install`..

---

<div class="post-metadata">

**Author:** ![hellocatfood](https://uzu.lurk.org/user_avatar/uzu.lurk.org/hellocatfood/32/42_2.png) [@hellocatfood](https://uzu.lurk.org/u/hellocatfood)\
**Post date:** [25 October 2020 11:30 UTC](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222/61 "2020-10-25T11:30:49Z")

</div>

That works, thank you!

[Previous page](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222.md?page=2)

[Next page](https://uzu.lurk.org/t/getting-experimental-feedforward-editor-to-work/222.md?page=4)
