Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ This table is generated from `docs/data/supported-synths.yml` by `scripts/genera
| Yamaha | FS1R | alpha | adaptation | 2.10.2 | Thanks to @markusschlosser for testing! |
| Yamaha | reface DX | works | adaptation | 2.10.2 | |
| Yamaha | reface CP | beta | adaptation | 2.10.2 | Thanks to @milnak! |
| Yamaha | SY77 / TG77 (voices) | beta | adaptation | After 2.10.2 | Contributed and tested on TG77 by Giovanni Candiago. SY77 hardware testing pending. |
| Yamaha | TX7 | works | adaptation | 2.10.2 | Thanks to Gerome S! |
| Yamaha | TX81Z | works | adaptation | 2.10.2 | Contributed by @summersetter! |
| Yamaha | Yamaha YC61/YC73/YC88 | works | adaptation | 2.10.2 | Thanks to @milnak! |
Expand Down
3 changes: 2 additions & 1 deletion adaptations/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ set(adaptation_files
"Sequential_Fourm.py" "Sequential Pro 3.py" "Sequential Prophet 5 Rev4.py" "Sequential Prophet 6.py" "Sequential Prophet X.py" "Sequential_Take_5.py" "Sequential_Trigon6.py"
"Studiologic Sledge.py"
"Waldorf Blofeld.py" "Waldorf_Kyra.py" "Waldorf_MicroWave.py" "Waldorf_M.py" "Waldorf_Pulse.py"
"YamahaDX7.py" "YamahaDX7II.py" "Yamaha_TX7.py" "Yamaha_FS1R.py" "YamahaRefaceDX.py" "YamahaRefaceCP.py" "Yamaha_TX81Z.py" "Yamaha-YC-Series.py"
"YamahaDX7.py" "YamahaDX7II.py" "Yamaha_TX7.py" "Yamaha_FS1R.py" "YamahaRefaceDX.py" "YamahaRefaceCP.py" "Yamaha_TX81Z.py" "Yamaha-YC-Series.py" "Yamaha_SY77-TG77.py"
"Zoom_MS.py"
)

Expand All @@ -60,6 +60,7 @@ set(adaptation_files_test_shipped
"test_Sequential_Fourm.py"
"test_Sequential_Pro_3.py"
"test_YamahaRefaceDX.py"
"test_Yamaha_SY77_TG77.py"
)

set(adaptation_files_test_only
Expand Down
397 changes: 397 additions & 0 deletions adaptations/Yamaha_SY77-TG77.py

Large diffs are not rendered by default.

Binary file not shown.
43 changes: 43 additions & 0 deletions adaptations/test_Yamaha_SY77_TG77.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import importlib
from pathlib import Path

import knobkraft


yamaha = importlib.import_module("Yamaha_SY77-TG77")
FIXTURE = Path(__file__).parent / "testData" / "Yamaha_SY77-TG77" / "TG77_test_voices.syx"


def test_detection_requests_only_system_data():
assert yamaha.needsChannelSpecificDetection()
for device_number in range(16):
assert yamaha.createDeviceDetectMessage(device_number) == [
0xF0, 0x43, 0x20 | device_number, 0x7A,
*b"LM 8101SY", *([0] * 16), 0xF7,
]


def test_system_dump_sets_voice_receive_channel(monkeypatch):
monkeypatch.setattr(yamaha, "_voice_receive_channels", {})
system_data = [*b"LM 8101SY", *([0] * 80)]
system_data[80 - 6] = 8
reply = [0xF0, 0x43, 0x0F, 0x7A, 0, 90, *system_data, (-sum(system_data)) & 0x7F, 0xF7]

assert yamaha.channelIfValidDeviceResponse(reply) == 15
assert yamaha.createCustomProgramChange(15, 21) == [0xC8, 21]
assert yamaha.createCustomProgramChange(3, 21) == [0xC3, 21]

reply[80] = 4
assert yamaha.channelIfValidDeviceResponse(reply) == -1
assert yamaha.createCustomProgramChange(15, 21) == [0xC8, 21]


def test_large_voices_require_an_explicit_bank_d_slot():
voices = knobkraft.load_sysex(str(FIXTURE))
for index in (66, 71, 73, 74):
voice = voices[index]
assert yamaha.convertToProgramDump(5, voice, 47) == []
converted = yamaha.convertToProgramDump(5, voice, 48)
assert yamaha.numberFromDump(converted) == 48
assert converted[2] == 5
assert yamaha.calculateFingerprint(voice) == yamaha.calculateFingerprint(converted)
11 changes: 10 additions & 1 deletion data/supported-synths.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"source_revision": "76b39b7c767129eaeb01534008547e8a320b0886",
"release_checked": "2.10.2",
"count": 92,
"count": 93,
"synths": [
{
"manufacturer": "Access",
Expand Down Expand Up @@ -795,6 +795,15 @@
"kudos": "Thanks to @milnak!",
"availability": "2.10.2"
},
{
"manufacturer": "Yamaha",
"synth": "SY77 / TG77 (voices)",
"status": "beta",
"statusLabel": "Beta",
"type": "adaptation",
"kudos": "Contributed and tested on TG77 by Giovanni Candiago. SY77 hardware testing pending.",
"availability": "After 2.10.2"
},
{
"manufacturer": "Yamaha",
"synth": "TX7",
Expand Down
6 changes: 6 additions & 0 deletions docs/data/supported-synths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,12 @@ synths:
type: adaptation
kudos: Thanks to @milnak!
availability: 2.10.2
- manufacturer: Yamaha
synth: SY77 / TG77 (voices)
status: beta
type: adaptation
kudos: Contributed and tested on TG77 by Giovanni Candiago. SY77 hardware testing pending.
availability: After 2.10.2
- manufacturer: Yamaha
synth: TX7
status: works
Expand Down
1 change: 1 addition & 0 deletions docs/supported-synths.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ Use the <a href="../../#checker">searchable model filter</a>, or choose a manufa
| FS1R | alpha | adaptation | 2.10.2 | Thanks to @markusschlosser for testing! |
| reface DX | works | adaptation | 2.10.2 | |
| reface CP | beta | adaptation | 2.10.2 | Thanks to @milnak! |
| SY77 / TG77 (voices) | beta | adaptation | After 2.10.2 | Contributed and tested on TG77 by Giovanni Candiago. SY77 hardware testing pending. |
| TX7 | works | adaptation | 2.10.2 | Thanks to Gerome S! |
| TX81Z | works | adaptation | 2.10.2 | Contributed by @summersetter! |
| Yamaha YC61/YC73/YC88 | works | adaptation | 2.10.2 | Thanks to @milnak! |
Expand Down
Loading