Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot-fix for Pianoteq Blüthner #466

Merged
merged 2 commits into from
Jan 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions zyngine/zynthian_engine_pianoteq.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ class zynthian_engine_pianoteq(zynthian_engine):
# Banks
# ---------------------------------------------------------------------------

bank_list_v8_0_6 = [
('Classical Guitar', 0, 'Classical Guitar', 'Classical Guitar', 'Classical Guitar')
]

bank_list_v7_3 = [
('Petrof Mistral', 0, 'Petrof Mistral', 'Antpetrof:A', 'Petrof 284 Mistral')
]
Expand Down Expand Up @@ -508,6 +512,14 @@ def prepare_banks(self):

if PIANOTEQ_VERSION[0] > 7 or (PIANOTEQ_VERSION[0] == 7 and PIANOTEQ_VERSION[1] >= 3):
self.bank_list = self.bank_list_v7_3 + self.bank_list

if PIANOTEQ_VERSION[0] > 7:
for i, row in enumerate(self.bank_list):
if row[0] == "Bluethner":
self.bank_list[i] = ('Blüthner', 5, 'Blüthner', 'Blüthner:A')
break
if PIANOTEQ_VERSION[1] > 0 or PIANOTEQ_VERSION[2] > 5:
self.bank_list = self.bank_list_v8_0_6 + self.bank_list

self.bank_list = sorted(self.bank_list, key=lambda x: x[2])
if not PIANOTEQ_TRIAL:
Expand Down