stumpedwithwirel | hey guys. asus usb-n13 driver refuses to compile | 06:04 |
---|---|---|
stumpedwithwirel | any takers? | 06:06 |
nv_ | its broken | 07:51 |
nv_ | n13 works out of the box | 07:51 |
nv_ | best $25 i ever spent | 07:52 |
nv_ | Supports Win98 ~ Win8 and linux, no problems | 07:53 |
Siya | pyaudio uses portaudio, 13.10 has v1899 installed by default which (I think) may still have a bug in it | 10:12 |
Siya | Anyone here with experience replacing the default portaudio with one from svn? | 10:14 |
Siya | I keep getting "Input Overflowed" on the second read | 10:15 |
Siya | supposedly fixed in v1844 and again in a later revision | 10:15 |
cub | Siya, sorry no, but hang around and someone else might know. | 10:28 |
zequence | Siya: you might find more people doing this kind of stuff in channels like #lad or #opensourcemusicians | 10:34 |
zequence | #lad == Linux Audio Development | 10:34 |
zequence | or, developers | 10:34 |
zequence | Siya: Why are you trying to use portaudio? | 10:35 |
zequence | Why not something that is easier on Linux, like jack? | 10:35 |
Siya | zequence: asked there as well | 10:37 |
Siya | it's part of pyaudio | 10:37 |
Siya | I hit a brick wall with alsaaudio | 10:38 |
zequence | What is it that you are trying to do? | 10:38 |
Siya | Figured I'd give pyaudio a go | 10:38 |
Siya | grab PCM chunks from an ALSA aloop interface | 10:38 |
Siya | most VU meters seem to use pyaudio | 10:38 |
zequence | VU meters? | 10:39 |
Siya | but there's a bug where the second and subsequent reads from the stream yield "input overflowed" | 10:39 |
Siya | zequence: yup | 10:39 |
zequence | Why do you need VU meters? | 10:40 |
zequence | And, the chunks, that's like samples, right? | 10:40 |
Siya | yes | 10:40 |
zequence | Actually, puredata might be the answer | 10:40 |
zequence | It has all of that | 10:40 |
Siya | Trying to use a led matrix (led bar for simplicity's sake) as a VU meter, with input from jack via ALSA | 10:41 |
zequence | Siya: Do you have some rules for when grabbing a sample, or are they timed, are you controlling it manually, how do you do it? | 10:41 |
Siya | My initial approach was to grab 320 samples at a rate just under 40Hz | 10:42 |
Siya | which worked when grabbing from mic input using alsaaudio | 10:43 |
zequence | Siya: puredata is a much easier choice for this | 10:43 |
Siya | it doesn't need to be high end, just a visual cue that the machine is receiving signal and sending it | 10:43 |
Siya | zequence: python pd? | 10:43 |
zequence | no, just pure data | 10:44 |
zequence | it's a graphical programming environment | 10:44 |
zequence | very easy for audio | 10:44 |
Siya | I use python to write code to a serial port (led matrix is usb tty) | 10:44 |
Siya | I write some text, cpu/mem/app load and 4 VU meters | 10:45 |
zequence | All of that you can do very quickly in pd | 10:45 |
zequence | in one hour | 10:45 |
Siya | all I want is to grab 4 PCM values at a regular interval | 10:45 |
Siya | puredata.info? | 10:46 |
zequence | Siya: just install puredata: sudo apt-get install puredata | 10:47 |
zequence | Siya: See the basics on youtube | 10:47 |
Siya | looking now | 10:47 |
Siya | thank you! | 10:47 |
zequence | Siya: The, look through the examples for pd in Help -> Help Browser -> pd | 10:47 |
Siya | will do :) | 10:47 |
zequence | Siya: There's a nice version with a lot of extra libraries and a slightly different look, which is yet not included in the repos. You can get the ppa with: sudo add-apt-repository ppa:eighthave/pd-extended | 10:48 |
zequence | Siya: The only problem with the pd-extended is the desktop file. It has a command that begins with "pasuspender --", which I remove | 10:49 |
zequence | for your use case, the basic puredata will do | 10:50 |
zequence | Siya: If you have any questions about pd later, just drop into #dataflow | 11:23 |
Siya | kthnx | 11:23 |
Siya | zequence: messing with the audio settings in pd yields one segmentation error after the next | 12:24 |
zequence | Siya: Yes, it's a little buggy. Are you going to use ALSA or Jack? | 12:29 |
zequence | Just make one setting, save it, and then it'll work | 12:30 |
zequence | Don't open patches. Don't start DSP, until you made your settings | 12:30 |
zequence | Siya: Also, you can start pd from the commandline, making your audio settings there as flags | 12:32 |
zequence | ie: pd -jack -channels 4 | 12:32 |
zequence | for 4 I/O | 12:32 |
zequence | Siya: after setting audio setting, click "save all settings". They will be stored in ~/.pdsettings | 12:34 |
zequence | for puredata, for pd-extended the file is called .pd-extended | 12:34 |
zequence | audioapi 1 == ALSA, audioapi5 == Jack | 12:35 |
zequence | So, there are three ways to make settings, gui, commandline or config file | 12:36 |
zequence | Siya: pd is really a perfect tool for this kind of small coding jobs. If you ever feel like you want to do textbased coding, better suited for audio, then have a look at supercollider | 12:38 |
zequence | Siya: btw, buffer settings in pd will not affect audio latency if using jack | 12:44 |
zequence | but it will affect internal data speed | 12:44 |
zequence | ..or latency, that is | 12:44 |
zequence | but that only affects things like midi | 12:45 |
Siya | only reading data so latency between audio and led driver is not as important as avoiding xruns in jack | 12:56 |
Siya | going through manual and noticed I don't have pvu~ :/ | 12:57 |
Siya | :( pd-iemlib is not available in normal repositories on saucy | 13:24 |
robford | Hi all... Does anyone have a guide that instructs how to make all programs use Jack by default and also to have Jack startup when I log in? Programs such as spotify dont produce audio once I've used Hydrogen (example). | 13:39 |
zequence | Siya: Just get pd-extended. It has all of that | 13:47 |
zequence | Siya: sudo add-apt-repository ppa:eighthave/pd-extended | 13:47 |
zequence | robford: Not all applications support jack, but you can make pulseaudio use jack as output | 13:48 |
zequence | robford: Just start jack, then go to pulseaudio settings and choose jack as the output | 13:48 |
zequence | use a jack control applications such as qjackctl to start jack first | 13:48 |
zequence | !proaudio | 13:48 |
ubottu | For information on professional audio tools in Ubuntu, see https://help.ubuntu.com/community/UbuntuStudio/ProAudioIntro | 13:48 |
robford | Thankyou zequence | 13:53 |
robford | :) | 13:53 |
robford | All up and running! Thanks again | 14:02 |
=== diana is now known as wheeler | ||
wheeler | test | 18:17 |
wheeler | german channel? | 18:17 |
=== Siya is now known as siya | ||
Unit193 | !de | 18:19 |
ubottu | In den meisten Ubuntu-Kanälen wird nur Englisch gesprochen. Für deutschsprachige Hilfe besuche bitte #ubuntu-de, #kubuntu-de, #edubuntu-de oder #ubuntu-at. Einfach "/join #ubuntu-de" eingeben. Danke für Dein Verständnis! | 18:19 |
wheeler | kein problem, viele dank | 18:20 |
=== Pici is now known as Guest25996 | ||
=== Guest25996 is now known as Pici |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!