a friend sent over a supercollider synth he built with a functional gui, im trying to use it on bela, could anybody provide some light examples of how i might change something like a popdown menu or gui knob to a digital in so i could use rotary encoders? im also trying to display the gui knob values and oscillator frequency's on a 40x4 lcd via i2c
any suggestions welcome/still noob

    vivian rotary encoders

    that'll be an interesting task to do in Supercollider without a custom UGen. @RafaeleAndrade @jonathan @nescivi did any of you try this? Alternatively, using a potentiometer - if possible - would be much easier.

    vivian im also trying to display the gui knob values and oscillator frequency's on a 40x4 lcd via i2c

    One could set up a little program that receives OSC and displays content on the LCD. We've done something similar for an OLED display https://forum.bela.io/d/314-is-anyone-successfully-using-i2c-oled-lcd/72 . I believe there is some library around for a 4x20 LCD which could be wrapped with an OSC receiver in a similar way.

    vivian change something like a popdown menu or gui knob to a digital in so i could use rotary encoders

    the process of translating a Sc GUI to something controllable in other means is obscure to me, but I guess if the GUI is controlled by the language, you'll have to send some message from the server back to the language using SendReply.

    thanks for the suggestions, im actually trying to control some of the gui parameters with a trill bar, you think potentiometer would be an easier workaround? ill be taking a deep dive tonight after work.

    giuliomoro oh great! I’m guessing I can find some examples in trill library?

    these are the UGens for Trill: https://github.com/jreus/Trill_SC
    If you are a bit familiar with the terminal, you should be able to follow the installation instructions in the README. Let me know if you have troubles with that.

    It comes with examples that should help you understand how it works.

    4 days later

    no worries, try this:

      18 days later

      giuliomoro hi again, sorry ivebeen focusing on other SC stuff but i just returned to using trill remotely and im not having much luck with those examples, im sure its something very obvs.
      i am getting full functionality in bela ide trill examples but not using sc remote, i keep getting these.
      alt text

      I see this error is from the Sc IDE. Did you try running the provided examples on Bela itself as suggested above?

      this is the bela ide using the trill centroid example

      alt text

      giuliomoro also giulio, when defining digital inputs on SC with bela, do i define the digital inputs in a seperate synth def to the existing synth engine def im working on?
      is there an existing example of digital in with send reply i could study?
      many thanks

        giuliomoro Ok let me have a look

        I fixed it now. Can you udpate your Bela core code following the procedure here https://learn.bela.io/using-bela/bela-techniques/updating-bela/ ?

        vivian do i define the digital inputs in a seperate synth def to the existing synth engine def im working on?

        Either should work.

        vivian is there an existing example of digital in with send reply i could study?

        not yet. I think it should be something like this to send on positive transitions (DigitalIn value going from 0 to 1):

        	~ctrl = {
        		var a = DigitalIn.kr(0);
        		SendReply.kr(a, '/ctrl', [a]);
        	}.play;

        and maybe the following to trigger for both 0 -> 1 and 1 -> 0?

        	~ctrl = {
        		var a = DigitalIn.kr(0);
        		SendReply.kr(a, '/ctrl', [a]);
        		SendReply.kr((1 - a) , '/ctrl', [a]);
        	}.play;

        there are surely more classy way of doing it (e.g.: with a one-sample delay that could implement a one-zero filter?), but I don't know supercollider!

        wow ok great, working well in the BELA ide, the trill remote example is still perplexing tho.
        thanks for this light example, i will try this tonight with a few ec11 rotary encoders. also assigning trill bars to synth defs is the same in that we define them in a similar way to digital in?

          vivian also assigning trill bars to synth defs is the same in that we define them in a similar way to digital in?

          some examples of that is in here, or do you mean something else?

            2 months later

            giuliomoro late response, but i am still getting these errors when using trills remotely,
            have i not compiled something correctly?

            alt text