Solved Custom Audio Samples

Discussion in 'Mod Support' started by aljowen, Aug 22, 2017.

  1. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    I would like to try and modify the "I4" audio sample in an external editor (such as Ableton) in order to create a new engine sound, then use it as a separate sample within the game for the car I am working on. Is this possible to do? and if so how?
     
  2. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    In which case is there any information on how the sample(s) are formatted? and/or how to add them into game once you do have them formatted appropriately?
     
  3. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    339
    Yes, sfxBlend2d.json file in /art/sound/blends contains information about all the sound files you would like to use for your custom engine sound.
    And yes, the first array contains sounds for off-load engine sounds - the second one for on-load engine sounds.

    The _P is just one of the naming conventions of the files.

    Code:
    {
        "header" : {
            "version" : 1
        },
        "eventName" : "event:>Engine>default",
        "samples" :
        [
            [
                ["art/sound/engine/V8_2/859.flac", 859],
                ["art/sound/engine/V8_2/919.flac", 919],
                ["art/sound/engine/V8_2/984.flac", 984],
                ["art/sound/engine/V8_2/1052.flac", 1052],
                ["art/sound/engine/V8_2/1126.flac", 1126],
                ["art/sound/engine/V8_2/1205.flac", 1205],
                ["art/sound/engine/V8_2/1289.flac", 1289],
                ["art/sound/engine/V8_2/1380.flac", 1380],
                ["art/sound/engine/V8_2/1476.flac", 1476],
                ["art/sound/engine/V8_2/1579.flac", 1579],
                ["art/sound/engine/V8_2/1690.flac", 1690],
                ["art/sound/engine/V8_2/1808.flac", 1808],
                ["art/sound/engine/V8_2/1935.flac", 1935],
                ["art/sound/engine/V8_2/2070.flac", 2070],
                ["art/sound/engine/V8_2/2215.flac", 2215],
                ["art/sound/engine/V8_2/2370.flac", 2370],
                ["art/sound/engine/V8_2/2536.flac", 2536],
                ["art/sound/engine/V8_2/2714.flac", 2714],
                ["art/sound/engine/V8_2/2904.flac", 2904],
                ["art/sound/engine/V8_2/3107.flac", 3107],
                ["art/sound/engine/V8_2/3324.flac", 3324],
                ["art/sound/engine/V8_2/3557.flac", 3557],
                ["art/sound/engine/V8_2/3806.flac", 3806],
                ["art/sound/engine/V8_2/4073.flac", 4073],
                ["art/sound/engine/V8_2/4358.flac", 4358],
                ["art/sound/engine/V8_2/4663.flac", 4663],
                ["art/sound/engine/V8_2/4989.flac", 4989],
                ["art/sound/engine/V8_2/5338.flac", 5338],
                ["art/sound/engine/V8_2/5712.flac", 5712],
                ["art/sound/engine/V8_2/6112.flac", 6112],
                ["art/sound/engine/V8_2/6540.flac", 6540]
            ],
            [
                ["art/sound/engine/V8_2/859_P.flac", 859],
                ["art/sound/engine/V8_2/919_P.flac", 919],
                ["art/sound/engine/V8_2/984_P.flac", 984],
                ["art/sound/engine/V8_2/1052_P.flac", 1052],
                ["art/sound/engine/V8_2/1126_P.flac", 1126],
                ["art/sound/engine/V8_2/1205_P.flac", 1205],
                ["art/sound/engine/V8_2/1289_P.flac", 1289],
                ["art/sound/engine/V8_2/1380_P.flac", 1380],
                ["art/sound/engine/V8_2/1476_P.flac", 1476],
                ["art/sound/engine/V8_2/1579_P.flac", 1579],
                ["art/sound/engine/V8_2/1690_P.flac", 1690],
                ["art/sound/engine/V8_2/1808_P.flac", 1808],
                ["art/sound/engine/V8_2/1935_P.flac", 1935],
                ["art/sound/engine/V8_2/2070_P.flac", 2070],
                ["art/sound/engine/V8_2/2215_P.flac", 2215],
                ["art/sound/engine/V8_2/2370_P.flac", 2370],
                ["art/sound/engine/V8_2/2536_P.flac", 2536],
                ["art/sound/engine/V8_2/2714_P.flac", 2714],
                ["art/sound/engine/V8_2/2904_P.flac", 2904],
                ["art/sound/engine/V8_2/3107_P.flac", 3107],
                ["art/sound/engine/V8_2/3324_P.flac", 3324],
                ["art/sound/engine/V8_2/3557_P.flac", 3557],
                ["art/sound/engine/V8_2/3806_P.flac", 3806],
                ["art/sound/engine/V8_2/4073_P.flac", 4073],
                ["art/sound/engine/V8_2/4358_P.flac", 4358],
                ["art/sound/engine/V8_2/4663_P.flac", 4663],
                ["art/sound/engine/V8_2/4989_P.flac", 4989],
                ["art/sound/engine/V8_2/5338_P.flac", 5338],
                ["art/sound/engine/V8_2/5712_P.flac", 5712],
                ["art/sound/engine/V8_2/6112_P.flac", 6112],
                ["art/sound/engine/V8_2/6540_P.flac", 6540]
            ]
        ]
    }

    Edit: ogg files do work as well of course ;)
     
  4. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    339
    Also the pre-tag of the json file is corresponding to the sampleName of the soundConfig in the engine jbeam.

    So...

    Code:
    "soundConfig": {
            "sampleName": "I4_aljowen",
            "mainGain": -18,
            "maxLoadMix": 0.6,
            "minLoadMix": 0,
            "onLoadGain":1,
            "offLoadGain":0.65,
            "eqLowGain": -5,
            "eqLowFreq": 150,
            //"eqLowWidth": 0,
            "eqHighGain": -5,
            "eqHighFreq": 6000,
            //"eqHighWidth": 0,
            "lowCutFreq":90,
            //"eqFundamentalGain": -15,
        },
    ---> \art\sound\blends\I4_aljowen.sfxBlend2D.json


    Edit: Sound wiki
     
    #3 meywue, Aug 23, 2017
    Last edited: Aug 24, 2017
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice