pisoundnotes
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
pisoundnotes [2022/06/10 18:19] – created givanbela | pisoundnotes [2022/06/10 18:29] (current) – givanbela | ||
---|---|---|---|
Line 4: | Line 4: | ||
==== Notes Marco ==== | ==== Notes Marco ==== | ||
+ | < | ||
+ | ################## | ||
+ | PURE DATA | ||
+ | ################## | ||
+ | |||
+ | On activating the Pure Data module through patchbox utility, it will ask which patch it should autolaunch, it looks for patches in / | ||
+ | Source: https:// | ||
+ | |||
+ | PD Commandline - https:// | ||
+ | https:// | ||
+ | |||
+ | AUTOLOAD FILE FROM USB STICK - https:// | ||
+ | |||
+ | ### TERMINAL START | ||
+ | pd -stderr -jack -audioadddev pisound -alsamidi -channels 2 -r 48000 -nogui -mididev 1 pd_sine_test.pd | ||
+ | |||
+ | ### COPY FILES - SCP - https:// | ||
+ | scp -r pd_sine_test.pd patch@patchbox.local: | ||
+ | ############### | ||
+ | |||
+ | https:// | ||
+ | |||
+ | #### EXTERNALS | ||
+ | oggcast~ | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | ### Adding pd-unauthorized | ||
+ | Setting up pd-zexy (2.3.1-1) ... | ||
+ | Setting up pd-libdir (1.11-4+b9) ... | ||
+ | Setting up puredata-import (1.3-5+b6) ... | ||
+ | Setting up pd-unauthorized (0.1-5+b1) . | ||
+ | |||
+ | / | ||
+ | |||
+ | #START PD WITH EXTERNALS | ||
+ | pd -stderr -jack -audioadddev pisound -alsamidi -channels 2 -r 48000 -nogui -path / | ||
+ | |||
+ | |||
+ | |||
+ | ########## | ||
+ | IF YOU GET ERROR MESSAGES BY INSTALLING EXTERNAL STUFF WITH APT GET | ||
+ | http:// | ||
+ | |||
+ | dpkg: unrecoverable fatal error, aborting: | ||
+ | files list file for package ' | ||
+ | E: Sub-process / | ||
+ | |||
+ | So, in my case, I did a | ||
+ | |||
+ | sudo nano / | ||
+ | (replace ‚dmsetup‘ with the package name in your error message, if different). It contained a bunch of crazy characters, so I just removed them all. | ||
+ | |||
+ | >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | ||
+ | sudo rm / | ||
+ | dpkg --configure -a | ||
+ | <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | ||
+ | |||
+ | |||
+ | >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | ||
+ | |||
+ | THAT WAS MY FIRST TRY -> WITHOUT PD. | ||
+ | ------------------------------------------------------------------------------- | ||
+ | - PISOUND - create Internet Radio Station | ||
+ | https:// | ||
+ | |||
+ | #guter artikel | ||
+ | https:// | ||
+ | |||
+ | LOCUSSONUS – SETUP | ||
+ | - https:// | ||
+ | |||
+ | ssh patch@patchbox.local | ||
+ | sudo touch / | ||
+ | sudo nano -w / | ||
+ | |||
+ | |||
+ | ############################################################### | ||
+ | ### darkice.cfg locusonus | ||
+ | ############################################################### | ||
+ | # this section describes general aspects of the live streaming session | ||
+ | [general] | ||
+ | duration | ||
+ | bufferSecs | ||
+ | reconnect | ||
+ | |||
+ | # this section describes the audio input that will be streamed | ||
+ | [input] | ||
+ | device | ||
+ | sampleRate | ||
+ | bitsPerSample = 16 # bits per sample. try 16 | ||
+ | channel | ||
+ | # Only stereo mode is supported by Pisound. | ||
+ | |||
+ | # this section describes a streaming connection to an IceCast2 server | ||
+ | # there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7] | ||
+ | # these can be mixed with [icecast-x] and [shoutcast-x] sections | ||
+ | [icecast2-0] | ||
+ | bitrateMode | ||
+ | bitrate | ||
+ | format | ||
+ | quality | ||
+ | server | ||
+ | port = 9001 # port of the IceCast2 server, usually 8000 | ||
+ | password | ||
+ | mountPoint | ||
+ | name = mobile_hi_pi | ||
+ | description | ||
+ | url = http:// | ||
+ | genre = my genre # genre of the stream | ||
+ | public | ||
+ | localDumpFile = recording.mp3 | ||
+ | |||
+ | </ | ||
==== Notes Gívan ==== | ==== Notes Gívan ==== | ||
+ | |||
+ | < | ||
+ | |||
+ | PISOUND revisited... 20220607 | ||
+ | |||
+ | While trying to configure the Pisound for streaming, we made the following (incomplete) notes. | ||
+ | We like the quality of the soundcard, and the fact that patchbox is an optimized os for sound applications. | ||
+ | One thing to remember, the Pisound has no phantom for microphones! | ||
+ | |||
+ | 0. Documentation Pisound: | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Download [Beta] Patchbox OS image 2022-05-17 | ||
+ | https:// | ||
+ | Default: | ||
+ | User name patch | ||
+ | Password blokaslabs | ||
+ | WiFi SSID Patchbox | ||
+ | WiFi password blokaslabs | ||
+ | |||
+ | We installed it with balenaEtcher (https:// | ||
+ | Additional terminal commands: | ||
+ | diskutil list (volume disk#) | ||
+ | cd / | ||
+ | touch / | ||
+ | |||
+ | A. Patchbox OS configs | ||
+ | |||
+ | pisound-config | ||
+ | pisound wizard | ||
+ | |||
+ | Interesting: | ||
+ | |||
+ | It is advisable to read the Button configuration first: | ||
+ | https:// | ||
+ | click 3x to toggle wifi hotspot | ||
+ | hold 5-7s = shutdown | ||
+ | |||
+ | At first the Soundpi would not connect to the WIFI first, maybe that is due to the bullseye upgrade? | ||
+ | Solution: | ||
+ | sudo raspi-config | ||
+ | System Options -> S5 Boot/Auto Login -> select "B3 Desktop GUI - requiring user to login" | ||
+ | (let's try the automatic login later again) | ||
+ | |||
+ | We tried installing icecast2 and darkice like explained in: | ||
+ | https:// | ||
+ | sudo apt-get install icecast2 darkice | ||
+ | |||
+ | But that did not quite work out, so the idea was to use the installed Vanilla PureData, and use the pdogg externals. At first PD did not recognize any installed or downloaded externals, but that was because of path error, they were automatically installed on: | ||
+ | |||
+ | We put them in: / | ||
+ | You can download the externals by terminal sudo apt install pd-pdogg | ||
+ | (or replace the pdogg with other lib names) | ||
+ | Don't forget to set in PureData, in preferences both the paths and names of the libraries | ||
+ | For starting up you can also edit the settings in the (hidden) settings file with | ||
+ | | ||
+ | sudo nano .pdsettings | ||
+ | |||
+ | And now happily streaming to locusonus and multiplace servers... | ||
+ | |||
+ | 2. the more professional notes by Marco Kuhn helped out with the following: | ||
+ | --> INSERT TEXT | ||
+ | |||
+ | stream multiplace and locusonus | ||
+ | |||
+ | still to test: | ||
+ | patch startup on usb stick | ||
+ | VNC | ||
+ | pisound app | ||
+ | |||
+ | |||
+ | |||
+ | </ | ||
pisoundnotes.1654877947.txt.gz · Last modified: 2022/06/10 18:19 by givanbela