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

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

Moderators: Joe., lisa, luketeaford, Kent

Post Reply
User avatar
seanrieger
Learning to Wiggle
Posts: 32
Joined: Sat Jun 18, 2016 7:20 am
Location: Texas
Contact:

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

Post by seanrieger » Sun Mar 22, 2020 12:36 pm

seismic wrote:
Sun Mar 22, 2020 8:41 am
tadaaa

finally made it. a shame it took me so long..
looks awesome so far!
That looks super awesome! Are you planning on selling kits on your site?
- File Transfer Protocol | Music as dark as the world we live in.
My main rack on Modulargrid |
Instagram | Facebook | Twitter | YouTube

User avatar
djthopa
Super Deluxe Wiggler
Posts: 1752
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 Mar 22, 2020 1:00 pm

Hi!
Have you enabled audio thru levels?
I have gate asigned to input 1 and cv input to input 6.
I can check later in front of the module and give you more detailed info :tu:

User avatar
seanrieger
Learning to Wiggle
Posts: 32
Joined: Sat Jun 18, 2016 7:20 am
Location: Texas
Contact:

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

Post by seanrieger » Sun Mar 22, 2020 1:32 pm

djthopa wrote:
Sun Mar 22, 2020 1:00 pm
Hi!
Have you enabled audio thru levels?
I have gate asigned to input 1 and cv input to input 6.
I can check later in front of the module and give you more detailed info :tu:
Aha! Okay, I went through and turned audio through on for all of them, and that's getting me sound. I see what you are saying about the CV being strange though. What I am seeing is that when I hit a key, the gate triggers, but I have to hit the key again to turn the gate off. That got me to a place wehre I can at least look deeper into it though. Thank you very much!
- File Transfer Protocol | Music as dark as the world we live in.
My main rack on Modulargrid |
Instagram | Facebook | Twitter | YouTube

User avatar
djthopa
Super Deluxe Wiggler
Posts: 1752
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 Mar 22, 2020 1:40 pm

seanrieger wrote:
Sun Mar 22, 2020 1:32 pm
djthopa wrote:
Sun Mar 22, 2020 1:00 pm
Hi!
Have you enabled audio thru levels?
I have gate asigned to input 1 and cv input to input 6.
I can check later in front of the module and give you more detailed info :tu:
Aha! Okay, I went through and turned audio through on for all of them, and that's getting me sound. I see what you are saying about the CV being strange though. What I am seeing is that when I hit a key, the gate triggers, but I have to hit the key again to turn the gate off. That got me to a place wehre I can at least look deeper into it though. Thank you very much!
Great you made some advance. I think maybe the trigger signal has to be if certain lenght, shape or amplitude? I reccomend trying a few different types and see how it goes. The note in did not work very well for me yet, it might also have to do with the voltage in the signal?

User avatar
seismic
Common Wiggler
Posts: 147
Joined: Tue Feb 04, 2014 1:48 pm
Location: Zürich, Switzerland
Contact:

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

Post by seismic » Sun Mar 22, 2020 2:07 pm

seanrieger wrote:
Sun Mar 22, 2020 12:36 pm
seismic wrote:
Sun Mar 22, 2020 8:41 am
tadaaa

finally made it. a shame it took me so long..
looks awesome so far!
That looks super awesome! Are you planning on selling kits on your site?

na - i only ordered 5pcs. one for a friend whom i am developing something with (color display, framebuffer copy to have native terminal/X & QT-stuff). then there were two for me, one i sent to gerald, i think there should be one laying in the basement.
-
i guess everybody has got cats.
-
..-- Seismic Industries --..

funkytransport
Learning to Wiggle
Posts: 24
Joined: Mon Jul 17, 2017 5:07 am
Location: Scotland

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

Post by funkytransport » Fri Mar 27, 2020 6:11 am

SOLVED -- Hey Folks, I've had a good read through here but couldn't find exactly what I was looking for so...

my Terminal Tedium seems to work fine. I can run patches fine when I use SSH
i.e. using the following command " pi@raspberrypi:~/terminal_tedium/software $ sudo pd -nogui -rt -r 48000 tt_chord.pd "

but.. When I try to edit my rt_start file to include a command to run this it just doesnt work. I've pasted my rt_start file below, if anyone can see the issue? (it lives in /home/pi/terminal_tedium/software, this is correct right? )

Thanks for any help!

Iain


---------

#!/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 (pi2, pi3)
for cpu in /sys/devices/system/cpu/cpu[0-9]*; do
echo -n performance | sudo tee $cpu/cpufreq/scaling_governor
done

# 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 -noadc -nogui -rt -r /home/pi/terminal_tedium/software/tt_chord.pd &

OR
sudo pd -nogui -rt -r 48000 ~/terminal_tedium/software/tt_chord.pd &
(ive tried both)


exit

----
Last edited by funkytransport on Mon Mar 30, 2020 6:40 am, edited 1 time in total.

User avatar
seismic
Common Wiggler
Posts: 147
Joined: Tue Feb 04, 2014 1:48 pm
Location: Zürich, Switzerland
Contact:

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

Post by seismic » Sun Mar 29, 2020 6:04 am

funkytransport wrote:
Fri Mar 27, 2020 6:11 am
Hey Folks, I've had a good read through here but couldn't find exactly what I was looking for so...

my Terminal Tedium seems to work fine. I can run patches fine when I use SSH
i.e. using the following command " pi@raspberrypi:~/terminal_tedium/software $ sudo pd -nogui -rt -r 48000 tt_chord.pd "

but.. When I try to edit my rt_start file to include a command to run this it just doesnt work. I've pasted my rt_start file below, if anyone can see the issue? (it lives in /home/pi/terminal_tedium/software, this is correct right? )

Thanks for any help!

Iain

try calling pd with the full path to your puredata binary (wherever that is in your installation (/usr/bin/pd or some like that) )
-
i guess everybody has got cats.
-
..-- Seismic Industries --..

funkytransport
Learning to Wiggle
Posts: 24
Joined: Mon Jul 17, 2017 5:07 am
Location: Scotland

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

Post by funkytransport » Sun Mar 29, 2020 7:37 am

Thank you I will try that now..

funkytransport
Learning to Wiggle
Posts: 24
Joined: Mon Jul 17, 2017 5:07 am
Location: Scotland

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

Post by funkytransport » Sun Mar 29, 2020 7:57 am

/home/pi/pd-0.48-1/bin

is the path.. do i just put that in?

User avatar
seismic
Common Wiggler
Posts: 147
Joined: Tue Feb 04, 2014 1:48 pm
Location: Zürich, Switzerland
Contact:

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

Post by seismic » Sun Mar 29, 2020 8:30 am

funkytransport wrote:
Sun Mar 29, 2020 7:57 am
/home/pi/pd-0.48-1/bin

is the path.. do i just put that in?
yes - then it's something like:
sudo /home/pi/pd-0.48-1/bin/pd -nogui -rt /home/pi/terminal_tedium/software/tt_chord.pd &
-
i guess everybody has got cats.
-
..-- Seismic Industries --..

funkytransport
Learning to Wiggle
Posts: 24
Joined: Mon Jul 17, 2017 5:07 am
Location: Scotland

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

Post by funkytransport » Mon Mar 30, 2020 6:37 am

Alriiiiiight..... That worked!
That was doing my head in so really appreciate the :help:
seismic wrote:
Sun Mar 29, 2020 8:30 am
funkytransport wrote:
Sun Mar 29, 2020 7:57 am
/home/pi/pd-0.48-1/bin

is the path.. do i just put that in?
yes - then it's something like:
sudo /home/pi/pd-0.48-1/bin/pd -nogui -rt /home/pi/terminal_tedium/software/tt_chord.pd &

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

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

Post by stevemensink » Mon Mar 30, 2020 7:29 am

Hi Guys, had this problem for a few months now with 3 of my TT’s. Still can’t figure it out.

When i run this install script
(wget https://raw.githubusercontent.com/mxmxm ... install.sh
sudo chmod +x install.sh
sudo bash install.sh )

i get this:

cloning terminal tedium repo ... ----------------------------------------------

install.sh: line 35: git: command not found
install.sh: line 36: cd: /home/pi/terminal_tedium: No such file or directory
install.sh: line 37: git: command not found


I have been staring at this for too long :-x. I hope anyone can point me in the right direction to fix this!
It was working perfectly fine before september. After that i had no luck. i tried going back to older raspbian versions, no luck either .

User avatar
seismic
Common Wiggler
Posts: 147
Joined: Tue Feb 04, 2014 1:48 pm
Location: Zürich, Switzerland
Contact:

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

Post by seismic » Mon Mar 30, 2020 9:44 am

stevemensink wrote:
Mon Mar 30, 2020 7:29 am

install.sh: line 35: git: command not found
check if git is installed and working - try cloning a repo
-
i guess everybody has got cats.
-
..-- Seismic Industries --..

User avatar
seismic
Common Wiggler
Posts: 147
Joined: Tue Feb 04, 2014 1:48 pm
Location: Zürich, Switzerland
Contact:

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

Post by seismic » Mon Mar 30, 2020 3:00 pm

its more orac things than TT - but i'll post here anyways.

i wanted to have a look at the main.pd - strangely it crashes pd when i open it on my raspberry and says:
~ $ sudo pd
unable to load preferences file : orac.json
TT thread prio 99
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Pd: signal 6
Segmentation fault
~ $


the talking to the display is done with OSC messages? where can i see how it's done - which pd files to have a look at?

and what exactly is the KontrolModule doing? wehre does it's source come from?

any replies are appreciated - thx
-
i guess everybody has got cats.
-
..-- Seismic Industries --..

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

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

Post by thetechnobear » Mon Mar 30, 2020 7:06 pm

@seismic , i dont talk to the display via PD,, or osc - its done in my KontrolRack external, which in turn uses my TTuiLite library.

source code:
https://github.com/TheTechnobear/MEC/tr ... ck/devices
https://github.com/TheTechnobear/TTuiLite

note: TTuiLite has a few things in it that ive not finished off yet... e.g. pd external and sidekick, these are kind of placeholders at the moment.

KontrolRack/Module - you'll find in the MEC repo, as above.
they are pretty much the heart of Orac, really Orac just uses PD as a kind of 'glue',
all the code that handling parameters, rebuilding the PD patch, menus/ui.... thats all done in KontrolRack/Module which is an external write in C++

is there something you are particularly after?

User avatar
seismic
Common Wiggler
Posts: 147
Joined: Tue Feb 04, 2014 1:48 pm
Location: Zürich, Switzerland
Contact:

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

Post by seismic » Tue Mar 31, 2020 1:51 am

thetechnobear wrote:
Mon Mar 30, 2020 7:06 pm
is there something you are particularly after?
no nothing in particular - i just try to understand a little whats happening where.
i'll then check out the MEC things.
it's a very clever thing you built there - but not too easy to understand for diletants like me :)
-
i guess everybody has got cats.
-
..-- Seismic Industries --..

Post Reply

Return to “Music Tech DIY”