mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-29 00:03:57 +08:00
Ioniq 5N Ignition
This commit is contained in:
@@ -23515,6 +23515,10 @@ msgstr ""
|
||||
msgid "Hellcat"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr ""
|
||||
|
||||
@@ -23534,6 +23534,10 @@ msgstr "Ferrari F136"
|
||||
msgid "Hellcat"
|
||||
msgstr "Hellcat"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr "Ioniq 5N Ignition"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr "Jaguar F-Type"
|
||||
|
||||
@@ -23534,6 +23534,10 @@ msgstr "Ferrari F136"
|
||||
msgid "Hellcat"
|
||||
msgstr "Hellcat"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr "Ioniq 5N Ignition"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr "Jaguar F-Type"
|
||||
|
||||
@@ -23534,6 +23534,10 @@ msgstr "Ferrari F136"
|
||||
msgid "Hellcat"
|
||||
msgstr "Hellcat"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr "Ioniq 5N Ignition"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr "Jaguar F-Type"
|
||||
|
||||
@@ -23530,6 +23530,10 @@ msgstr "Ferrari F136"
|
||||
msgid "Hellcat"
|
||||
msgstr "Hellcat"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr "Ioniq 5N Ignition"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr "Jaguar F-Type"
|
||||
|
||||
@@ -23530,6 +23530,10 @@ msgstr "Ferrari F136"
|
||||
msgid "Hellcat"
|
||||
msgstr "Hellcat"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr "Ioniq 5N Ignition"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr "Jaguar F-Type"
|
||||
|
||||
@@ -23530,6 +23530,10 @@ msgstr "Ferrari F136"
|
||||
msgid "Hellcat"
|
||||
msgstr "Hellcat"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr "Ioniq 5N Ignition"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr "Jaguar F-Type"
|
||||
|
||||
@@ -18,6 +18,11 @@ From recordings of real cars supplied for this project, built with tools/bank_fr
|
||||
|
||||
hellcat hellcat.wav: --cylinders 8 --anchor 14 700 --idle 10.5-17.5 --on 25-94 --off 94-119,
|
||||
then equalised with tools/lower_bank.py --pitch 1.0 --off-mix 0 --off-mid 0
|
||||
ioniq_5n Ioniq5.mp3 (the Ioniq 5 N's Ignition sound), its closing video fade from 52 s divided back out first:
|
||||
--cylinders 6 (the comb's strongest line is the 6th) --half-orders --anchor 6 6180 --anchor 20.5 7140
|
||||
--on 4.6-6.8 10.2-11.7 16-17.3 17.6-21.3 31.5-33.4 34-35.2 35.6-37.9 41.5-43.3 43.5-44.6 46-48.2
|
||||
--off 12-14.3 22.6-25.1 48.5-49.9 50.3-57.9 --idle 57.9-59.7 --denoise 15, leaving out the stretches with
|
||||
tyre squeal
|
||||
jaguar_ftype Jaguar2.wav: --cylinders 8 --half-orders --anchor 17 721 --anchor 40 5122 --anchor 66 4402
|
||||
--idle 14.5-19.5 --on 20.5-45.8 52-77 --denoise 10, not equalised (the in-car recording is already
|
||||
bass-heavy); the 750 rpm loop (a second idle) and the 3500 rpm loop (dominated by crank-rate boom) removed
|
||||
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"version": 1,
|
||||
"source": "recording Ioniq5.mp3",
|
||||
"layers": {
|
||||
"off": [
|
||||
{
|
||||
"rpm": 2250,
|
||||
"file": "off_2250.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 2346,
|
||||
"file": "off_2346.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 2500,
|
||||
"file": "off_2500.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 2750,
|
||||
"file": "off_2750.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 3000,
|
||||
"file": "off_3000.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 3250,
|
||||
"file": "off_3250.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 3500,
|
||||
"file": "off_3500.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 3750,
|
||||
"file": "off_3750.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 4000,
|
||||
"file": "off_4000.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 4250,
|
||||
"file": "off_4250.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 4500,
|
||||
"file": "off_4500.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 4750,
|
||||
"file": "off_4750.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 5000,
|
||||
"file": "off_5000.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 5250,
|
||||
"file": "off_5250.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 5500,
|
||||
"file": "off_5500.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 5750,
|
||||
"file": "off_5750.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 6000,
|
||||
"file": "off_6000.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 6250,
|
||||
"file": "off_6250.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 6500,
|
||||
"file": "off_6500.wav"
|
||||
}
|
||||
],
|
||||
"on": [
|
||||
{
|
||||
"rpm": 2250,
|
||||
"file": "on_2250.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 2346,
|
||||
"file": "on_2346.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 2500,
|
||||
"file": "on_2500.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 4000,
|
||||
"file": "on_4000.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 4250,
|
||||
"file": "on_4250.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 4500,
|
||||
"file": "on_4500.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 4750,
|
||||
"file": "on_4750.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 5000,
|
||||
"file": "on_5000.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 5250,
|
||||
"file": "on_5250.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 5500,
|
||||
"file": "on_5500.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 5750,
|
||||
"file": "on_5750.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 6000,
|
||||
"file": "on_6000.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 6250,
|
||||
"file": "on_6250.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 6500,
|
||||
"file": "on_6500.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 6750,
|
||||
"file": "on_6750.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 7000,
|
||||
"file": "on_7000.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 7250,
|
||||
"file": "on_7250.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 7500,
|
||||
"file": "on_7500.wav"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -89,6 +89,9 @@ PROFILES: dict[str, Profile] = {profile.name: profile for profile in (
|
||||
_recorded('ferrari_f136', 'Ferrari F136', cylinders=8, idle=1000.0, redline=9000.0, trim_db=3.0),
|
||||
# Banks from real recordings that end at 3000 and 5250 rpm; above about 1.5 times that the loops sound sped up.
|
||||
_recorded('hellcat', 'Hellcat', cylinders=8, idle=700.0, redline=4500.0, trim_db=3.5),
|
||||
# Recorded at idle and from 4000 rpm up (coasting from 2250), so it is geared short like the Super GTs.
|
||||
_recorded('ioniq_5n', 'Ioniq 5N Ignition', cylinders=4, idle=2346.0, redline=7500.0, upshift=0.62, downshift=0.45,
|
||||
gearing=1.2, trim_db=3.2),
|
||||
_recorded('jaguar_ftype', 'Jaguar F-Type', cylinders=8, idle=721.0, redline=6500.0, pops=1.0, burble=True, trim_db=6.6),
|
||||
_recorded('lfa', 'LFA', cylinders=10, idle=1000.0, redline=9000.0, trim_db=2.5),
|
||||
# Recorded only at idle and from 3250 rpm up, so it is geared short and shifts like a race car to stay in that range.
|
||||
|
||||
@@ -9,13 +9,13 @@ from openpilot.starpilot.engine_sound.profiles import PROFILES, RACE_GEARS, RACE
|
||||
from openpilot.starpilot.engine_sound.synth import Synth
|
||||
|
||||
DT = 0.01
|
||||
SUPER_GT_RECORDED_FROM = 3250.0
|
||||
SHORT_GEARED_CRUISE_FLOOR = 3250.0
|
||||
|
||||
|
||||
SUPER_GTS = ('nissan_super_gt', 'nissan_super_gt2')
|
||||
SHORT_GEARED = ('ioniq_5n', 'nissan_super_gt', 'nissan_super_gt2')
|
||||
|
||||
|
||||
@pytest.mark.parametrize('name', [name for name in PROFILES if name not in SUPER_GTS])
|
||||
@pytest.mark.parametrize('name', [name for name in PROFILES if name not in SHORT_GEARED])
|
||||
def test_default_gearing_and_shift_points(name):
|
||||
p = PROFILES[name]
|
||||
assert p.upshift_rpm == pytest.approx((0.38 * p.redline_rpm, 0.96 * p.redline_rpm))
|
||||
@@ -23,8 +23,8 @@ def test_default_gearing_and_shift_points(name):
|
||||
assert p.gears == pytest.approx(tuple(ratio * p.redline_rpm / RACE_REDLINE for ratio in RACE_GEARS))
|
||||
|
||||
|
||||
@pytest.mark.parametrize('name', SUPER_GTS)
|
||||
def test_super_gt_is_geared_short_and_holds_revs(name):
|
||||
@pytest.mark.parametrize('name', SHORT_GEARED)
|
||||
def test_short_geared_holds_revs(name):
|
||||
p = PROFILES[name]
|
||||
assert p.gears[0] == pytest.approx(RACE_GEARS[0] * p.redline_rpm / RACE_REDLINE * 1.2)
|
||||
assert p.upshift_rpm[0] == pytest.approx(0.62 * p.redline_rpm)
|
||||
@@ -47,8 +47,8 @@ def test_trim_scales_the_whole_voice(voice):
|
||||
assert level(6.0) / level(0.0) == pytest.approx(10 ** (6 / 20), rel=0.02)
|
||||
|
||||
|
||||
@pytest.mark.parametrize('name', SUPER_GTS)
|
||||
def test_super_gt_light_pedal_stays_in_the_recorded_range_and_clear_of_redline(name):
|
||||
@pytest.mark.parametrize('name', SHORT_GEARED)
|
||||
def test_short_geared_light_pedal_stays_in_the_recorded_range_and_clear_of_redline(name):
|
||||
p = PROFILES[name]
|
||||
model = EngineModel(p)
|
||||
speed, revs = 0.0, []
|
||||
@@ -56,6 +56,6 @@ def test_super_gt_light_pedal_stays_in_the_recorded_range_and_clear_of_redline(n
|
||||
speed += 1.2 * DT
|
||||
revs.append(model.update(DT, 0.25, speed, 1.2, True)[0])
|
||||
cruising = [rpm for rpm, v in zip(revs, (DT * 1.2 * i for i in range(len(revs))), strict=True) if v > 8.0]
|
||||
assert min(cruising) > SUPER_GT_RECORDED_FROM
|
||||
assert min(cruising) > SHORT_GEARED_CRUISE_FLOOR
|
||||
assert max(revs) < 0.75 * p.redline_rpm
|
||||
assert model.gear >= 3
|
||||
|
||||
@@ -272,7 +272,7 @@ assert.equal(previewVolume.vm.soundError, "Keep the comma offroad")
|
||||
assert.equal(previewVolume.vm.previewLabel, "Test alert")
|
||||
|
||||
{
|
||||
const engine = control({ label: "Engine Type", value: "LFA", choices: ["BMW M3", "BMW M3 Deep", "F1 Car","Ferrari F136", "Hellcat", "Jaguar F-Type", "LFA", "Nissan Super GT1", "Nissan Super GT2", "Supra Turbo"],
|
||||
const engine = control({ label: "Engine Type", value: "LFA", choices: ["BMW M3", "BMW M3 Deep", "F1 Car","Ferrari F136", "Hellcat", "Ioniq 5N Ignition", "Jaguar F-Type", "LFA", "Nissan Super GT1", "Nissan Super GT2", "Supra Turbo"],
|
||||
available: true, action: true, previewSound: "EngineSoundProfile" })
|
||||
assert.equal(settingControl(engine.vm.row), "select")
|
||||
assert.equal(engine.vm.previewLabel, "Rev engine")
|
||||
|
||||
@@ -122,7 +122,7 @@ class SoundsSettingsTests(unittest.TestCase):
|
||||
self.params.put("EngineSoundProfile", "race_car", block=True)
|
||||
row = self.row("EngineSoundProfile")
|
||||
self.assertEqual((row.value, row.repair_value), ("LFA", ""))
|
||||
self.assertEqual([r.value for r in self.owner.engine_type_snapshot().rows], ["", "", "", "", "", "", "Active", "", "", ""])
|
||||
self.assertEqual([r.value for r in self.owner.engine_type_snapshot().rows], ["", "", "", "", "", "", "", "Active", "", "", ""])
|
||||
self.assertTrue(self.owner.apply(FeatureSettingsRequest("EngineSoundProfile", row.source, "F1 Car")))
|
||||
self.assertEqual(self.params.get("EngineSoundProfile"), "f1_car")
|
||||
|
||||
@@ -160,7 +160,7 @@ class SoundsSettingsTests(unittest.TestCase):
|
||||
self.assertEqual([(row.label, row.value, row.actions) for row in picker.rows],
|
||||
[("BMW M3", "", (("Use", True),)), ("BMW M3 Deep", "", (("Use", True),)),
|
||||
("F1 Car", "", (("Use", True),)), ("Ferrari F136", "", (("Use", True),)), ("Hellcat", "", (("Use", True),)),
|
||||
("Jaguar F-Type", "", (("Use", True),)), ("LFA", "Active", (("Active", True),)),
|
||||
("Ioniq 5N Ignition", "", (("Use", True),)), ("Jaguar F-Type", "", (("Use", True),)), ("LFA", "Active", (("Active", True),)),
|
||||
("Nissan Super GT1", "", (("Use", True),)), ("Nissan Super GT2", "", (("Use", True),)),
|
||||
("Supra Turbo", "", (("Use", True),))])
|
||||
stale = picker.rows[2]
|
||||
@@ -169,7 +169,7 @@ class SoundsSettingsTests(unittest.TestCase):
|
||||
self.assertTrue(owner.apply(request))
|
||||
self.assertEqual((self.params.get("EngineSoundProfile"), revs), ("f1_car", [1]))
|
||||
picker = owner.engine_type_snapshot()
|
||||
self.assertEqual([row.value for row in picker.rows], ["", "", "Active", "", "", "", "", "", "", ""])
|
||||
self.assertEqual([row.value for row in picker.rows], ["", "", "Active", "", "", "", "", "", "", "", ""])
|
||||
replay = owner.engine_choice_request(picker.rows[2])
|
||||
assert replay is not None
|
||||
self.assertTrue(owner.apply(replay))
|
||||
|
||||
@@ -32236,6 +32236,12 @@
|
||||
"openpilot/starpilot/engine_sound/profiles.py"
|
||||
]
|
||||
},
|
||||
{
|
||||
"source": "Ioniq 5N Ignition",
|
||||
"refs": [
|
||||
"openpilot/starpilot/engine_sound/profiles.py"
|
||||
]
|
||||
},
|
||||
{
|
||||
"source": "Jaguar F-Type",
|
||||
"refs": [
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"protected_inventory_sha256": "49d52c748fe6cfe4a8858c51f574263ef51bf40655479dc5e34ab02a3058da46", "schema_version": 1}
|
||||
{"protected_inventory_sha256": "8c4f84be94591581b9b31b287f24798db4343e3d2fe5fbb8611ec4cde39c6de9", "schema_version": 1}
|
||||
|
||||
Reference in New Issue
Block a user