terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

From circuitbending to homebrew stompboxes & synths, keep the DIY spirit alive!

Moderators: Kent, luketeaford, Joe.

Post Reply
thetechnobear
Wiggling with Experience
Posts: 419
Joined: Wed Feb 11, 2015 8:17 am
Contact:

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by thetechnobear » Mon Apr 27, 2020 9:37 am

pd creates the watchdog to check to see if PD is hanging, basically the main render loop will ping back to it to say 'all is good', so you usually just see a couple of start up, and then when PD is 'running' they stop.

so the main event loop would appear to be hanging (or dsp not running?)

Id test a couple of things....
try an empty pd patch , that just starts audio (perhaps outputs a simple sin to outputs) and has not 'terminal tedium' objects in it.
if this works then its likely the TT gpio is for some reason locking up .. you could then remove one by one to see which

if an empty patch does not work, then Id have suspicions about the sound card configuration/hardware.
perhaps test the soundcard with using aplay to output a wav file.
i.e. focus is, is it PD with the issue or a hardware/configuration issue.

Im assuming you have also check dmesg etc for any issues initialising etc.
the other question is... what changed between it working, and not?


(sorry, I cant give specifics, as im using the monome norns image on my TT, so it might be setup slightly differently)

thetechnobear
Wiggling with Experience
Posts: 419
Joined: Wed Feb 11, 2015 8:17 am
Contact:

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by thetechnobear » Thu Apr 30, 2020 12:07 pm

so Ive been doing a little work to make terminal tedium even more fun, and useful (to me at least ;) )

building on the work I did for Orac, Ive now ported by Sidekick application, with OSC and SuperCollider support!

What is Sidekick?

Sidekick is an application/patch launcher
basically, it will allow you select and switch between patches.
It currently supports launching of supercollider, puredata and 'arbitary shell' patches.
It also will 'auto start' the last patch when you power up.

to bring it up , simply hold all 3 buttons down for about 3 seconds, then the menu will appear.

but there is more :)
It is also provides an OSC interface to the terminal tedium hardware.

so you can write patches in PD, Supercollider or any other programming language that supports OSC and use the TT knobs/cv, buttons, and the displays.

this approach makes it very simple to create new patches in your favourite language.

Ive create a few Supercollider demo programs to help show this:


Default - basically a starting point for your SC patches
Simple - a simple oscillator, which uses the knobs, and displays freq/amp to screen
GrainBuf - a simple granular player which shows loading audio files from sdcard
LiveCoding - a kind of 'proxy' that allows you to develop your supercollider patches on your desktop, then you can just copy them to the TT to run standalone.

oh... I also updated TTui and the Osc interface to include a pretty full graphics api :)

Installation

Im assuming the fates distro (as before)

if thats installed, then its a simple one line command to install (assuming internet connection on TT!)

Code: Select all

sudo curl https://thetechnobear.github.io/apt-tt/install.sh | sh


more details on the wiki...

https://github.com/TheTechnobear/TTuiLite/wiki


EDIT: fixed typo
Last edited by thetechnobear on Mon May 25, 2020 6:09 am, edited 1 time in total.

thetechnobear
Wiggling with Experience
Posts: 419
Joined: Wed Feb 11, 2015 8:17 am
Contact:

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by thetechnobear » Thu Apr 30, 2020 2:36 pm

quick instagram demo of sidekick, and also Push 2 connected to TT :)



User avatar
djthopa
Super Deluxe Wiggler
Posts: 1894
Joined: Thu Mar 22, 2012 5:48 pm
Location: Somewhere between a nappy and a wire

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by djthopa » Thu Apr 30, 2020 6:07 pm

As always hats off! Going to install tomorrow :)

Would norns mother work on this?

thetechnobear
Wiggling with Experience
Posts: 419
Joined: Wed Feb 11, 2015 8:17 am
Contact:

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by thetechnobear » Fri May 01, 2020 4:55 am

no norns mother wont work...
but it would be relatively easy to take the organelle mother, and get it to work.
if I have time I'll take a look

User avatar
djthopa
Super Deluxe Wiggler
Posts: 1894
Joined: Thu Mar 22, 2012 5:48 pm
Location: Somewhere between a nappy and a wire

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by djthopa » Fri May 01, 2020 5:46 am

:hail: :hail: Thanks a lot M.

User avatar
djthopa
Super Deluxe Wiggler
Posts: 1894
Joined: Thu Mar 22, 2012 5:48 pm
Location: Somewhere between a nappy and a wire

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by djthopa » Sun May 24, 2020 7:29 pm

Hi Technobear,

I tried updating orac to the latest but my tt would not start so i did a fresh install of fates (latest)
I followed your install instructions on the wiki..
a) disable encoders and screen in /boot/config.txt just comment out the line that says something like dtoverlay=fates-buttons-encoders dtoverlay=fates-ssd1322,rotate=180

b) disable norns sudo systemctl stop norns.target sudo systemctl disable norns.target

c) i rename host to tt, but thats optional! (but Id recommend it ;) ) use raspi-config (you can also setup wifi and expand fs whilst here)

and i copied orac.deb to the home directory.

My lcds do not turn on and the two leds on tt are constantly on :(

Any ideas?

Cheers

User avatar
djthopa
Super Deluxe Wiggler
Posts: 1894
Joined: Thu Mar 22, 2012 5:48 pm
Location: Somewhere between a nappy and a wire

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by djthopa » Sun May 24, 2020 8:24 pm

Ok.
So i did the early porcedure. Installed the old fates distro. Installed Orac.
Then it worked like before.

But... i then Updated Fates to the latest fates and:

Run sudo curl https://thetechnobear.github.io/apt-norns/install.sh | sh
Then sudo reboot or tt does not work :(
127.0.0.1 ~ $ sudo curl https://thetechnobear.github.io/apt-norns/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1024 100 1024 0 0 4179 0 --:--:-- --:--:-- --:--:-- 4179
deb [trusted=yes] https://thetechnobear.github.io/apt-norns/ ./
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:4 http://ppa.launchpad.net/artfwo/monome/ubuntu bionic InRelease
Get:2 http://apt.blokas.io rpi InRelease [3922 B]
Hit:5 https://package.monome.org stretch InRelease
Ign:6 https://thetechnobear.github.io/apt-norns ./ InRelease
Ign:7 https://thetechnobear.github.io/apt-norns ./ Release
Ign:8 https://thetechnobear.github.io/apt-norns ./ Packages
Ign:9 https://thetechnobear.github.io/apt-norns ./ Translation-en
Ign:8 https://thetechnobear.github.io/apt-norns ./ Packages
Ign:9 https://thetechnobear.github.io/apt-norns ./ Translation-en
Ign:8 https://thetechnobear.github.io/apt-norns ./ Packages
Ign:9 https://thetechnobear.github.io/apt-norns ./ Translation-en
Get:8 https://thetechnobear.github.io/apt-norns ./ Packages [676 B]
Ign:9 https://thetechnobear.github.io/apt-norns ./ Translation-en
Ign:9 https://thetechnobear.github.io/apt-norns ./ Translation-en
Ign:9 https://thetechnobear.github.io/apt-norns ./ Translation-en
Ign:9 https://thetechnobear.github.io/apt-norns ./ Translation-en
Reading package lists... Done
E: Repository 'http://apt.blokas.io rpi InRelease' changed its 'Origin' value from '_pisbtnw7_ rpi' to 'main rpi'
E: Repository 'http://apt.blokas.io rpi InRelease' changed its 'Label' value from '_pisbtnw7_ rpi' to 'main rpi'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libgudev-1.0-0 libmbim-glib4 libmbim-proxy libqmi-glib5 libqmi-proxy
wiringpi
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
mec sidekick
The following packages will be upgraded:
orac
1 upgraded, 2 newly installed, 0 to remove and 149 not upgraded.
Need to get 6274 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://thetechnobear.github.io/apt-norns ./ mec 0.2.2-2 [949 kB]
Get:2 https://thetechnobear.github.io/apt-norns ./ orac 0.2.2-2 [5209 kB]
Get:3 https://thetechnobear.github.io/apt-norns ./ sidekick 0.2.0-8 [116 kB]
Fetched 6274 kB in 2s (3871 kB/s)
apt-listchanges: Reading changelogs...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package mec.
(Reading database ... 117569 files and directories currently installed.)
Preparing to unpack .../archives/mec_0.2.2-2_armhf.deb ...
Unpacking mec (0.2.2-2) ...
Preparing to unpack .../orac_0.2.2-2_armhf.deb ...
Unpacking orac (0.2.2-2) over (0.2.2-2) ...
Selecting previously unselected package sidekick.
Preparing to unpack .../sidekick_0.2.0-8_armhf.deb ...
Unpacking sidekick (0.2.0-8) ...
Setting up sidekick (0.2.0-8) ...
Created symlink /etc/systemd/system/multi-user.target.wants/sidekick.target → /etc/systemd/system/sidekick.target.
Setting up mec (0.2.2-2) ...
Setting up orac (0.2.2-2) ...
127.0.0.1 ~ $ sudo reboot
Connection to 192.168.1.69 closed by remote host.
Connection to 192.168.1.69 closed.
Thopa-Mac-Olds-MacBook-Pro:~ thopa_mac_old$

So i did the same setup process again......and doing :

sudo apt-get update
sudo apt-get install ./orac.deb

let me use orac again.....but there is no sidekick because running

sudo curl https://thetechnobear.github.io/apt-norns/install.sh | sh

breaks it.

Gracias

thetechnobear
Wiggling with Experience
Posts: 419
Joined: Wed Feb 11, 2015 8:17 am
Contact:

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by thetechnobear » Mon May 25, 2020 5:07 am

are you doing norns or terminal tedium?

https://thetechnobear.github.io/apt-tt/

User avatar
djthopa
Super Deluxe Wiggler
Posts: 1894
Joined: Thu Mar 22, 2012 5:48 pm
Location: Somewhere between a nappy and a wire

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by djthopa » Mon May 25, 2020 5:36 am

Good morning Technobear :)

Isnt it what you say here:?
thetechnobear wrote:
Thu Apr 30, 2020 12:07 pm
so Ive been doing a little work to make terminal tedium even more fun, and useful (to me at least ;) )

building on the work I did for Orac, Ive now ported by Sidekick application, with OSC and SuperCollider support!

What is Sidekick?

Sidekick is an application/patch launcher
basically, it will allow you select and switch between patches.
It currently supports launching of supercollider, puredata and 'arbitary shell' patches.
It also will 'auto start' the last patch when you power up.

to bring it up , simply hold all 3 buttons down for about 3 seconds, then the menu will appear.

but there is more :)
It is also provides an OSC interface to the terminal tedium hardware.

so you can write patches in PD, Supercollider or any other programming language that supports OSC and use the TT knobs/cv, buttons, and the displays.

this approach makes it very simple to create new patches in your favourite language.

Ive create a few Supercollider demo programs to help show this:


Default - basically a starting point for your SC patches
Simple - a simple oscillator, which uses the knobs, and displays freq/amp to screen
GrainBuf - a simple granular player which shows loading audio files from sdcard
LiveCoding - a kind of 'proxy' that allows you to develop your supercollider patches on your desktop, then you can just copy them to the TT to run standalone.

oh... I also updated TTui and the Osc interface to include a pretty full graphics api :)

Installation

Im assuming the fates distro (as before)

if thats installed, then its a simple one line command to install (assuming internet connection on TT!)

Code: Select all

sudo curl https://thetechnobear.github.io/apt-norns/install.sh | sh


more details on the wiki...

https://github.com/TheTechnobear/TTuiLite/wiki
Anyways, sorted! and thanks for your help, i should remember to not do this stuff late at night!

Thanks a lot :)

User avatar
djthopa
Super Deluxe Wiggler
Posts: 1894
Joined: Thu Mar 22, 2012 5:48 pm
Location: Somewhere between a nappy and a wire

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by djthopa » Mon May 25, 2020 6:04 am

Sorry to bother, launching any of the demos of pd work but they dont respond to tt knobs :(
Top screen show params
Bottom screen show Launch.....
PolyPd

Edit:

Just launched Simple pd and it doesnt respond to midi input and the top lcd show the same params as the previous patch (poly pd)

Cheers

edit 2:

Install puredata?

thetechnobear
Wiggling with Experience
Posts: 419
Joined: Wed Feb 11, 2015 8:17 am
Contact:

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by thetechnobear » Mon May 25, 2020 6:13 am

sorry that was a cut n' paste typo.... which then copied here ;)
I basically remembered to change it on one set of instructions, but forgot, I had it in another place.
(Ive now fixed it and also updated my post in this thread to have correction)

those pd demos are a left over from your installation of the norns version and would not be expected to work on tt

Ive not released PD demo patches for TT yet, only SC.
Those PD demos need to be converted to use the OSC interface in the same way the supercollider ones work,
but Ive just not got around to it yet.

Pure Data is already installed otherwise Orac wouldn't work ;)

User avatar
djthopa
Super Deluxe Wiggler
Posts: 1894
Joined: Thu Mar 22, 2012 5:48 pm
Location: Somewhere between a nappy and a wire

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by djthopa » Mon May 25, 2020 6:42 am

Hola! that make sense and thanks for clarifying! Did not rey the supercollider ones :)
Thanks Technobear :)

User avatar
edwinm
Common Wiggler
Posts: 245
Joined: Mon Aug 05, 2013 4:31 pm
Location: London

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by edwinm » Thu May 28, 2020 6:58 am

Anyone here using a Pi 4? Now with 8Gb RAM whihc is pretty nice. I see a 3A PSU is recommended but wondering if there might be any other issues with a TT setup?

User avatar
mutronic
Common Wiggler
Posts: 233
Joined: Thu Sep 08, 2016 2:26 pm

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by mutronic » Sun May 31, 2020 11:04 pm

I just finished building a terminal tedium running a pi zero w with tinycore. I have the start.sh script set up and whenever I plug it in it just emits a droning sound and none of the pots don't seem to do anything. There's also a clicking/popping sound to the drone. The button light comes on though. I've tried it with 3 different patches and it's pretty much the same every time.

stevemensink
Learning to Wiggle
Posts: 23
Joined: Sun Jun 23, 2019 8:26 am
Location: Amsterdam

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by stevemensink » Tue Jun 09, 2020 12:20 pm

Good afternoon,
I am trying to get fates + orac working on a Terminal Tedium. I have both tried to run the image from disk and manual install for Fates. And as soon as it is all installed, i can only seem to add the internet connection on a Norns with display. So i cant finish the install, and install Orac.
Since i have a Terminal Tedium with the 2 oleds.. , is there any other way i can get my raspberry pi with fates/norns installed to connect to the wifi? So i can finish the install?

thetechnobear
Wiggling with Experience
Posts: 419
Joined: Wed Feb 11, 2015 8:17 am
Contact:

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by thetechnobear » Tue Jun 09, 2020 3:20 pm

stevemensink wrote:
Tue Jun 09, 2020 12:20 pm
i can only seem to add the internet connection on a Norns with display.
honestly, i cannot remember how i did this ... was a while ago....
a few possibilities spring to mind: (without going an testing!)


a) use an ethernet cable and then log on via ssh... then you can setup wifi over ssh.
(using raspi-config or might have been netctl ?)

b) i thought fates allowed some kind of wifi setup file to reside in /boot.
then one you are in again, use raspi-config or netctl


i think i probably used (b) , that said (a) is my common fallback when wifi is not working and i need to get into a rPI ;)

stevemensink
Learning to Wiggle
Posts: 23
Joined: Sun Jun 23, 2019 8:26 am
Location: Amsterdam

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by stevemensink » Wed Jun 10, 2020 1:34 am

Hi Technobear, thanks for the quick help. I will try both options this week. Also will get a cable just in case.
Hope it works :-)

walkindude125
Learning to Wiggle
Posts: 13
Joined: Fri Sep 16, 2016 3:49 pm
Location: Baton Rouge, LA

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by walkindude125 » Sun Jun 21, 2020 9:22 pm

Hi all! Looking for some help on modifying the rt_start a script to launch a patch when the TT is powered on. On the Github, it mentions adding a launch line right before the exit command, so here is what I wrote:

#!/bin/bash

## Stop the ntp service
sudo service ntp stop

## Stop the triggerhappy service
sudo service triggerhappy stop

## Stop the dbus service. Warning: this can cause unpredictable behaviour when running a desktop environment on the RPi
sudo service dbus stop

## Remount /dev/shm to prevent memory allocation errors
sudo mount -o remount,size=128M /dev/shm

## set CPU scaling governor to performance (zero et al.)
echo -n performance | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

# master volume
amixer cset numid=1 110
# capture volume
amixer cset numid=3 31
# line capture switch
amixer cset numid=4 on
# HiFi playback switch
amixer cset numid=13 on
# save
alsactl store
## start pd
sudo puredata -nogui -rt /home/pi/terminal_tedium/software/tt_chord.pd &
exit

I cannot get the script to work, however. I get a "sudo: puredata command not found" error. This is listed as a possible error on the Github and the recommended solution is to include the complete path to the PureData binary, but I can't seem to figure out what that pathway is. Can anyone help point me in the right direction or respond with a pathway/launch line that worked for your start-up script? Thanks!

mgd
Learning to Wiggle
Posts: 11
Joined: Wed Apr 29, 2020 3:51 am

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by mgd » Tue Jul 14, 2020 10:22 am

Hi folks,
has anybody tried a RPI4 with TT?
Kind regards,
Michael

jmsiener
Learning to Wiggle
Posts: 38
Joined: Tue May 24, 2016 2:00 pm
Location: Kentucky

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by jmsiener » Tue Jul 21, 2020 8:55 am

I hate to be that guy but I really don’t see much of a reason to go to the pi4. The pi3 and its plus variants are known quantities that have been around for 3-4 years with 3-4 years of support and fixes. I just don’t see how 2, 4, or even 8 GB of ram would magically make the system better plus the extra current and thermals and it honestly sounds like a headache.

Maybe if you wanted a tt for video synthesis or you wanted to run a desktop with ardour and have a daw in your case I could see a use case for a pi4. Everything is already console based to make performance better and any more would just throw a wrench in it. One thing I’m curious about though is usb boot on any pi in the tt. The OS can get to all random shit so much faster over usb and I’d be curious how much it would boost performance plus it would apply to pi 3 and 4.


Ordered the Traverse Bay oled panel/hat, excited to trick out my tt.

mgd
Learning to Wiggle
Posts: 11
Joined: Wed Apr 29, 2020 3:51 am

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by mgd » Tue Jul 21, 2020 3:02 pm

I'm sorry if my question was rude or bad in any way. By no means did I intend to engage in a fight over what is better or such.

I simply wanted to know if a RPI4 would work with the TT for the simple reason that I happen to have one lying around. If using one isn't a good idea - and from your post I take it there are reasons not to use one - then I'll have to buy either a zero or a pi3 (and in case of a pi3 I have to deal with the problems that come with this according to some other posts - I had hoped to be able to ignore that).

Anywway, I apologize if I offended anyone. It certainly wasn't intended.

Kind regards,
Michael

jmsiener
Learning to Wiggle
Posts: 38
Joined: Tue May 24, 2016 2:00 pm
Location: Kentucky

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by jmsiener » Tue Jul 21, 2020 4:05 pm

Man, you can totally use the pi4 - it’ll work. I guess my ramble was over getting a pi 4 as “upgrade” when there are some trade offs to consider. If you got it, flaunt it! The 40 pin connector is completely compatible, all of the libs etc needed should run without issue.

The one catch I’ll say is that the pi PSU on the tt won’t hang with a pi 4 so you’ll need to get a usb PSU in the case (just remove the jumper) and power the pi from that. If you’ve got a super beefy 5V supply like I do on one of my case you can power the pi from that using a jumper wire connected to the 5V on your PSU (probably from a different connector on your busboard) and the pin closest to the board edge that’s normally jumper’d.

I haven’t tested it personally but you should be good to go!

belzrebuth
Common Wiggler
Posts: 80
Joined: Mon Aug 19, 2013 5:47 pm
Location: Greece

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by belzrebuth » Wed Aug 26, 2020 6:31 am

Very nice seismic, my only gripe with terminal tedium was its width..
Really wish your project goes well (and public!).

thetechnobear
Wiggling with Experience
Posts: 419
Joined: Wed Feb 11, 2015 8:17 am
Contact:

Re: terminal tedium (raspberry zero, pi2, pi3 codec / pd thing)

Post by thetechnobear » Wed Aug 26, 2020 11:06 am

very cool seismic, give me a shout if you need a hand with Orac.

Post Reply

Return to “Music Tech DIY”