Skip to content

Commit

Permalink
Merge pull request #466 from zynthian/hotfix/pianoteq_Blüthner
Browse files Browse the repository at this point in the history
Hot-fix for Pianoteq Blüthner
  • Loading branch information
jofemodo committed Jan 30, 2023
2 parents 694680e + 41b4332 commit 0b80b78
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit 0b80b78

Please sign in to comment.