Profile image

How can i use the Tone Generator mod to make a sequenced "BEEP, BEEP, BEEP" sound?

284 SimpleStudent  7 months ago

I want something that when "GS>97.2222" (over 350km/h speed) it inputs a beeping sound that isn't just a long BEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEP.

Edits:
- Maybe this is useful? https://www.simpleplanes.com/Forums/View/1043330/New-Input-System-Explanation-Tutorial-Funky-Trees-1-9-Beta-Extremely-lon
- Time could be used to make a sequenced beep by dividing Time to 1 or 0 to get an input that if GS>97.2222 then it will do the thing

  • Log in to leave a comment
  • Profile image

    If anyone else wants to do this copy and credit PlaneFlightX's code and adjust for yourself

    Pinned 7 months ago
  • Profile image
    49.3k PlaneFlightX

    clamp01(GS > 97.2222) * clamp01(pingpong(sum(X), 1) > 0.5)
    Adjust the value of x to increase or decrease the beep speed.

    Pinned 7 months ago
  • Profile image

    "clamp01(Activate3 * clamp01(smooth(Pitch, 0.1) < 1) * smooth(Pitch, 0.1)"
    "Activate3 ? (clamp01(Activate3 * clamp01(smooth(Pitch, 0.1) < 1) * smooth(Pitch, 0.1)) : 0" seems not to work for some reason

    6 months ago
  • Profile image
    49.3k PlaneFlightX

    @SimpleStudent That sounds like a good idea

    6 months ago
  • Profile image

    @PlaneFlightX i think i can solve it by using a if gate

    6 months ago
  • Profile image

    @PlaneFlightX so when you're not using the boost the overheat variable adds up

    6 months ago
  • Profile image
    49.3k PlaneFlightX

    @SimpleStudent What do you mean by this (I don't quite understand)?

    6 months ago
  • Profile image

    @PlaneFlightX Oh, also i noticed that the overheat still gets affected when Activate3 is not on (as a variable)

    6 months ago
  • Profile image
    49.3k PlaneFlightX

    @SimpleStudent Good to hear!

    6 months ago
  • Profile image

    @PlaneFlightX I tried it and it works really interestingly! I used a text label to display what input the engine was getting, (i.e. i was pasting the code into the InputController) and when i applied jet power it did a really weird thing. It slowly increased input until it reached max input then it went to 0. That means the overheat does stop it, but i just realised as i'm typing that i need to put it in a separate variable. now i'm trying to figure it out. It works though!

    6 months ago
  • Profile image

    @PlaneFlightX No, my mac at home hasn’t got SP installed. It muffed itself up awhile ago bc of the ‘puter’s age being too much for steam

    6 months ago
  • Profile image
    49.3k PlaneFlightX

    @SimpleStudent Have you tried it yet?

    6 months ago
  • Profile image

    @PlaneFlightX i forgor as well, school holidays got me forgetting to check inbox

    6 months ago
  • Profile image
    49.3k PlaneFlightX

    @SimpleStudent bruh forgot
    anyway, clamp01(Activate3 * clamp01(smooth(Pitch, 0.1) < 1) * smooth(Pitch, 0.1)
    Maybe try that?

    +1 7 months ago
  • Profile image

    @PlaneFlightX Heck yea!

    7 months ago
  • Profile image
    49.3k PlaneFlightX

    @SimpleStudent At work rn (on break) but I'll look at it when I get home.

    +1 7 months ago
  • Profile image
    14.7k Randomplayer

    @SimpleStudent can’t wait to see it!

    7 months ago
  • Profile image

    @Randomplayer Indeed! I'm planning to upload this lil project when i finish it, both modded and not.

    7 months ago
  • Profile image

    @PlaneFlightX Pitch function. so when Pitch is added, overheat is added.

    7 months ago
  • Profile image
    14.7k Randomplayer

    sounds like your building!.....👀

    +1 7 months ago
  • Profile image
    49.3k PlaneFlightX

    @SimpleStudent Seems doable. What exactly makes this engine overheat?

    7 months ago
  • Profile image

    @PlaneFlightX I have one more question that probably doesn't need an extra post. (Don't worry, when i do post this AircraftDesign i will credit you fully).

    I want to try to make an overheat function. I've got a jet engine that relies on Pitch and that uses Activate3 to turn on and off (it has a high enough ThrottleResponse to react quickly and auto turn off). I was thinking of a way to make it so when you've used the jet for so long it'll overheat for a couple seconds or something. For example, you can use it for up to 10 sec and then let go to watch the heat seep back down (using a label for reference) or when it hits the max it becomes unusable till the overheat bar is 0?

    7 months ago
  • Profile image

    @PlaneFlightX Thankyou!

    +1 7 months ago
  • Profile image

    You might be able to do it if you somehow get the input in the form of a sine wave. Not sure though; I've never tried the tone generator mod.

    +1 7 months ago