131 |
totalVoiceCountChanged(SamplerEvent e) { |
totalVoiceCountChanged(SamplerEvent e) { |
132 |
int voices = CC.getSamplerModel().getTotalVoiceCount(); |
int voices = CC.getSamplerModel().getTotalVoiceCount(); |
133 |
int voicesMax = CC.getSamplerModel().getTotalVoiceCountMax(); |
int voicesMax = CC.getSamplerModel().getTotalVoiceCountMax(); |
134 |
|
|
135 |
|
// workaround for bug #223 in substance |
136 |
|
if(voicesMax == 0) voicesMax = 1; |
137 |
pbTotalVoices.setMaximum(voicesMax); |
pbTotalVoices.setMaximum(voicesMax); |
138 |
pbTotalVoices.setValue(voices); |
pbTotalVoices.setValue(voices); |
139 |
pbTotalVoices.setString(i18n.getLabel("Statusbar.pbTotalVoices", voices)); |
pbTotalVoices.setString(i18n.getLabel("Statusbar.pbTotalVoices", voices)); |