+ Reply to Thread
Results 1 to 9 of 9

Thread: More useful sound emiters

  1. #1
    Wire Noob BillGates111's Avatar
    Join Date
    Feb 2010
    Posts
    2

    Default More useful sound emiters

    Hey everyone!

    I was making a little PHX car with wire stuff in it when I thought about the Sound Emiters for wire didn't have any outputs, I was thinking of ways that different outputs could be used. I came up with two useful things. 1. Length; The length of the sound file that that sound emiter is configured to, this could be useful for manything like, parhaphs, a autoplay radio. You could even add how long that sound file has been playing. Second of all is some sort of Selection Gateway that can convert MPH to Pitch Reletive in a simple manner of two imputs on the gateway (Pitch gain per MPH) these would be useful for the non-arithmatic-enrolled. That's all I really have at the moment so...

    BillGates111, out.^_^

  2. #2
    Wire Noob adigyran's Avatar
    Join Date
    Apr 2010
    Posts
    6

    Default Re: More useful sound emiters

    use E2 soundPlay functions

  3. #3
    Wire Sofaking immibis's Avatar
    Join Date
    Nov 2009
    Location
    Wellington, New Zealand
    Posts
    401

    Default Re: More useful sound emiters

    Pitch Relative = (MPH * constant value) + 100

    where the constant value is your pitch per mph divided by 100

    That's assuming you want it to be at 100% pitch when the car is stopped. If you want it to be at 0% pitch when the car is stopped then it's just:

    Pitch Relative = MPH * constant value

    0a3c696d6d696269733e092e2e2e7774662c20776879206973 20746865726520612068696464656e20666f72756d2063616c 6c6564206469783f200a3c4a6174476f6f6477696e3e093e2e 3e200a3c4a6174476f6f6477696e3e093c2e3c200a3c49616d 4d634c6f76696e3e094e4f200a3c49616d4d634c6f76696e3e 094e4f204e4f204e4f204e4f204e4f

  4. #4
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    751

    Default Re: More useful sound emiters

    Quote Originally Posted by adigyran View Post
    use E2 soundPlay functions
    I think there is a point, everything what the e2 can do should be able to be done with non e2 tools.

    A Length output could be useful.
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

  5. #5
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: More useful sound emiters

    The sound length Lua function doesn't work correctly
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  6. #6
    ส็็็็็็็็็็็็็็็็ส็็ ็็็็็ Dav1d's Avatar
    Join Date
    May 2009
    Posts
    1,118

    Default Re: More useful sound emiters

    Oh my god, it's Bill Gates!

  7. #7
    Wire Noob BillGates111's Avatar
    Join Date
    Feb 2010
    Posts
    2

    Default Re: More useful sound emiters

    Quote Originally Posted by adigyran View Post
    use E2 soundPlay functions
    I don't think you read the entire forum, I belive you were skimming it because I said that the Selection Gateway would be for anyone that didn't know how to use E2. I'm sure you've heard of KlayKing's dupe packs? He didn't use E2 for anything, just a ton of wire gateways. I posted this so people would make things easier..

    Also, thanks to immibis for the instructions, but does the contstant have to be in the 0-1 range. Because I have already tried this and it would sound like it was at full speed of 1 mph. :/
    Last edited by BillGates111; 08-24-2010 at 05:54 PM. Reason: Didn't notice the useful post below
    You know there's a Scout around ... when all the .BAT files are running.

  8. #8
    Wire Sofaking immibis's Avatar
    Join Date
    Nov 2009
    Location
    Wellington, New Zealand
    Posts
    401

    Default Re: More useful sound emiters

    Quote Originally Posted by BillGates111 View Post
    Also, thanks to immibis for the instructions, but does the contstant have to be in the 0-1 range. Because I have already tried this and it would sound like it was at full speed of 1 mph. :/
    No. The constant value is a number that determines how much to change the pitch. "MPH" is the actual speed on the speedometer.

    If you want it to be at 0% pitch when the car is stopped (pitch can go over 100%, btw) then you'd be using my second formula, "Pitch Relative = MPH * constant value"

    The constant value is then (pitch you want in %) / (speed you want that pitch at).
    So if you want 100% at 50 mph then use 100 / 50, or 2.
    If you wanted 5000% pitch (which would sound ridiculous) at 500mph then you'd use 5000/500 = 10 for the constant value.

    0a3c696d6d696269733e092e2e2e7774662c20776879206973 20746865726520612068696464656e20666f72756d2063616c 6c6564206469783f200a3c4a6174476f6f6477696e3e093e2e 3e200a3c4a6174476f6f6477696e3e093c2e3c200a3c49616d 4d634c6f76696e3e094e4f200a3c49616d4d634c6f76696e3e 094e4f204e4f204e4f204e4f204e4f

  9. #9
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    751

    Default Re: More useful sound emiters

    Quote Originally Posted by immibis View Post
    No. The constant value is a number that determines how much to change the pitch. "MPH" is the actual speed on the speedometer.

    If you want it to be at 0% pitch when the car is stopped (pitch can go over 100%, btw) then you'd be using my second formula, "Pitch Relative = MPH * constant value"

    The constant value is then (pitch you want in %) / (speed you want that pitch at).
    So if you want 100% at 50 mph then use 100 / 50, or 2.
    If you wanted 5000% pitch (which would sound ridiculous) at 500mph then you'd use 5000/500 = 10 for the constant value.
    There is a max pitch of 255 %.
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots