Code Monkey home page Code Monkey logo

Comments (10)

mobeets avatar mobeets commented on May 30, 2024

I think it's at least sometimes the signal being too hot. so turning down the volume of the input signal should often help this.

from loop-baby.

mobeets avatar mobeets commented on May 30, 2024

Okay, added input/output gain control in #34, which I'm pretty sure was always the cause of the problem anyway.

from loop-baby.

mobeets avatar mobeets commented on May 30, 2024

clues:

  • it's not SL, because the quality is shit in audacity too
  • restarting jack fixes the issue, but so does just waiting for a while
  • it's not my speakers, because if I just play directly through them it's fine
  • it's not the audio output, because if I play audio recorded prior to the beginning of the fuzziness it sounds just fine

so these clues lead me to think that it is somehow related to jack, and specifically the audio in part.

from loop-baby.

mobeets avatar mobeets commented on May 30, 2024

I think the key was changing the jack period to '-n 3' because apparently usb interfaces tend to prefer that.

seemed to work...maybe?

from loop-baby.

mobeets avatar mobeets commented on May 30, 2024

Okay, so it's back to doing it. I had removed the '-s' and it gave me xruns even with just 4 tracks. So then I added back '-s' and eventually the crackling returned.

My current best guess: the '-s' softmode option prevents the xruns being reported, which preserves the looper working. but then once the xruns happen, the audio degrades. no idea if this is right but that's my best guess.

from loop-baby.

mobeets avatar mobeets commented on May 30, 2024

from this link here I think I'm probably correct: xruns cause crackling.

so I should increase the -p to 1024, resulting in more latency.
or I can try to disable other processes, like networking, or maybe try overclocking?

from loop-baby.

mobeets avatar mobeets commented on May 30, 2024

need to check cpu/ram usage (with top -u mpd maybe?) to see if this is related to the issue. if so, I can try overclocking, and turning off unneeded processes.

https://www.runeaudio.com/forum/tweaking-the-audio-performance-rpi3-t4301-30.html

from loop-baby.

mobeets avatar mobeets commented on May 30, 2024

nothing suspicious in top.

while working:
Screen Shot 2019-12-12 at 8 13 18 PM

and again, during the xruns:
Screen Shot 2019-12-12 at 8 16 49 PM

from loop-baby.

mobeets avatar mobeets commented on May 30, 2024

when playing with jess, it always happened to us (the fuzziness) when we got to the fourth track (i.e., three saved, playing on the fourth). so possibly it's like jack not processing quickly enough once SL is using more RAM. so I'm gonna guess it's a ram issue?

if so, does setting a shorter max_loop_length param decrease memory demands?

from loop-baby.

mobeets avatar mobeets commented on May 30, 2024

okay, so actually I think it's a CPU issue. as you record more loops in SL, the CPU usage grows (but MEM does not):

before:
Screen Shot 2019-12-20 at 8 46 09 PM

after (with four loops):
Screen Shot 2019-12-20 at 8 47 18 PM

then, clearing the loops decreases CPU.

I did two fixes, which helped me get to four loops without immediate crackling:

  • changed SL's max loop length from 40 secs to 20 secs
  • booting the pi without a desktop GUI (though I might actually need this to run jack since dbus is built in, apparently)

from loop-baby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.