Patterns, Streams, Events - Week 8 Fall 2022 MUS 499C - Intro to SuperCollider

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

ความคิดเห็น • 8

  • @yuggothproductions
    @yuggothproductions 8 หลายเดือนก่อน

    I have a question, is there a simple way to have a block of code within Task to play for a certain amount of time before it goes to the next function. I know you can repeat a function for a certain number of times, but I would like to be more accurate with the timings for an installation piece I'm working on. Thanks Eli!

    • @elifieldsteel
      @elifieldsteel  8 หลายเดือนก่อน

      Sure, there are lots of ways to do what you're describing. Here's one simple idea that comes to mind:
      (
      t = TempoClock(1);
      x = Task{
      // "do this" until 5 beats have elapsed
      while(
      { t.beats < 5 },
      { "do this".postln; 1.0.rand.wait; }
      );
      // "do that" until 10 beats have elapsed
      while(
      { t.beats < 10 },
      { "do that".postln; 1.0.rand.wait; }
      );
      "done".postln;
      }.start;
      )

  • @Lucymancer
    @Lucymancer ปีที่แล้ว

    Hi Eli, first of all, thank you so much for your videos. They've been very helpful and interesting so far.
    There is something I had trouble understanding, roughly around 4-5 first minutes of this video you created a synth called \pulse with the argument harm:8,
    As far as I see, you're only using this harm argument in relation to the cf variable, which acts as a Low Pass Filter cutoff for sig. Why is it the 8th harmonic of sig? Or it just cuts all the frequencies above the 8th harmonic of sig?
    Also from what I understand, cf is an array of 4 numbers all around 100 hz, and you put an array as the lowpass filter cutoff point of sig? What does it mean?
    It's like putting a few nodes LPF Nodes in EQ in ableton for example?
    There is a musical piece I want your opinion on, if there is a way for me to send you.
    Have a great day!

    • @elifieldsteel
      @elifieldsteel  ปีที่แล้ว

      The 'harm' argument is simply a number that serves as a multiplier. On line 24, cf is set equal to freq times harm. Thus, the cutoff frequency (cf) will always be the fundamental frequency (freq) multiplied by harm. So, if harm is 8, the cutoff frequency of the filter is equal to the frequency of the eighth harmonic of the fundamental tone.
      I think you mean 'freq' is an array of four values near 100 (rather than 'cf'). This is an example of multichannel expansion, a central feature of SC. It means we are dealing with a four-channel signal instead of a monophonic one. It's only temporary though - we sum these four channels together on line 26 to create a monophonic signal, and then pan to stereo on line 38. It's _not_ the same thing as working with four draggable points on a graphic EQ plug-in, if that's what you're asking.
      Have a look at tutorial 5 if you're unfamiliar with multichannel expansion. th-cam.com/video/fAXETAyrv8s/w-d-xo.html

    • @Lucymancer
      @Lucymancer ปีที่แล้ว

      ​@@elifieldsteel
      Hey Eli Thanks for the answer! I still do not fully understand how cf behaves though, and would like a clarification.
      I understand that .dup(4)
      makes freq an array of 4 values all around 100, and then you sum them up to make a single channel and store that in Sig, but cf is freq * \harm, after freq was made into an array of 4 values,
      so from that I understand that if harm = 8, then cf is an array of 4 numbers all around the value 800 (I meant 800 in my previous message, not 100, sorry),
      and then you use this array of 4 numbers as a LPF Cutoff point, as far as I see you never summed up the array of values in cf into one value, so cf is still an array.
      but from what I've seen so far I think it was in Lecture 6 or 7, you never put an array of numbers as the cutoff point, it was only a single value, you named it \lpf.kr(20000) for instance.
      Thank you and have a nice day.

  • @HalXu-j5r
    @HalXu-j5r ปีที่แล้ว

    Hi Eli, thanks so much for sharing these awesome tutorials, I have a question, when I play several sounds(from different synthdef)through the outputs(0 and 1)without using any effects it sounds normal, but when I applied reverb to one of these sounds, it sounds clipping a lot, may I ask do you have any suggestions for solving this problem? Thank you!

    • @elifieldsteel
      @elifieldsteel  ปีที่แล้ว +1

      It sounds like a problem with your reverb SynthDef, but it's impossible to diagnose the issue without seeing the code and exactly how you're interacting with it. For me, generally, debugging a problem like this boils down to incrementally simplifying the code until you're able to isolate the problem. For example, if your signal chain contains many different things, consider changing/removing things one-by-one as you pass signal through, and eventually the problem should reveal itself.

    • @HalXu-j5r
      @HalXu-j5r ปีที่แล้ว

      @@elifieldsteel Thank you so much!