LFSaw

  • Jan 11, 2019
  • Joined Aug 25, 2016
  • 9 discussions
  • 47 posts
  • updated the graphics in the original posting (up). will sent you the file offline, @giuliomoro .

  • is J1 (AMP-5V) also unregulated RAW_POWER! ?

  • not beautiful but helpful. E.g. to print it out. I also have a pdf but the forum did not allow me to upload that.

  • here's (a/the) synth I'm running (from an external sclang):

    On Bela:

    scsynth -t 57110 -l 64 -z 16 -J 8 -K 8 -G 16 -i 2 -o 2

    or

    scsynth -t 57110 -l 64 -z 32 -Z 32 -J 8 -K 8 -G 16 -i 2 -o 2

    in sclang (on my main machine):

    (
    g = Server(\bela, NetAddr("192.168.7.2", 57110));
    g.startAliveThread(0);
    g.doWhenBooted({
    	g.notify;
    	g.initTree
    });
    )
    
    (
    x = {
    	var freq = \freq.kr(50, 0.1);
    	var tilt = \tilt.kr(0.5);
    	var invTilt = (1-tilt) * 2;
    	tilt = tilt * 2;
    	(0..15).inject(Pulse.ar(LFNoise1.ar(LFNoise1.kr(0.1).range(0.1, 2)).exprange(freq, freq + 1), 0.2) * LFNoise1.ar(Rand(0.01, 0.1)), { |in|
    			var amp = Amplitude.ar(in, 0.1, 1);
    			Mix([tilt * in, invTilt * [RHPF, RLPF, BPF].choose.ar(DelayL.ar(in, 0.1, 1-amp.lag(Rand(0.1, 1)) * Rand(0.005, 0.1)).tanh.neg, amp * ExpRand(2000, 4000) + 100, Rand(0.8, 1))]);
    		}).tanh
    }.play(g)
    )
  • giuliomoro How would you select one or the other script?

    in a perfect world, I can configure/define my script in the .json file in the project and select by using set_startup.sh -s <projectname> (see above).

  • I run scsynth with

    scsynth -t 57110 -l 64 -z 64 -Z 64 -J 8 -K 8 -G 16 -i 2 -o 2

    so far everything works well, apart from, when I create "not so much but considerable" load (equivalent of 3% on my mac), I get a fair amount of Underrun detected: 1 blocks dropped. Rarely 2 blocks dropped, never more than 2.
    I tried to increase the HW buffer size and block size with -z and -Z but this does not help at all. I wonder why.

    If, by all means, I am not able to get rid of this, doesn't the posting itself slows down the rt processing itself?
    Is there a possibility to suppress the posting (I already found 2> /dev/null), already where it happens?

  • ok, I'll try it again:

    I would like to have two setups for the BELA I want to swap between.

    1. Script
      • start scsynth with options
      • start custom serial2osc script
    2. Script
      • start scsynth with different options
      • run custom OSC-sending script

    My question is: How can I create two projects (as in the stuff that resides in ~/Bela/projects that contain this functionality?
    Just writing something to ~/Bela_startup.sh will not work since, as I understand it, set_startup.sh -s projectname will write straight over it.

    • yepp, that's what I thought... I cannot tell about the cap without breaking one of them... which would be a shame...
      but I think I'll anyhow use separate amps now, the built-in ones are quite little power...

    • that's the weird part about it... when I measure them (resistance), they have ininite resistance...

    • andrew thanks!
      I also have some weird conneciton difficulty with tweeters (might be the tweeters though): If I connect them to the outs, the amps get pretty hot pretty fast, whereas my MAX89306-based adafruit amp does not mind at all and just lets me use them... you have an idea on this?

    • In my setup, I have a BELA and a computer, both with two speaker chassis.
      I'd like to plug speakers consistently, i.e. I'd like to know which Pin on the BELA speaker outs is + and which one -. Can you help me out? This doesn't tell...

    • totally, and the scripts are awesome! but sometimes you just need something a little different... and this works for me and might be easy(ier) to understand for semi-noobs (such as myself) on how to run things remotely on the bela without diving into Makefiles πŸ™‚

    • giuliomoro Not sure I understand the requirements for your script. What should it do ? Is it something you could achieve by simply editing ~/Bela_startup.sh?

      I want to switch between projects with
      make --no-print-directory -C /root/Bela PROJECT=$BBB_PROJECT_NAME startup

      resp.

      set_startup.sh -s projectname