mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 13:04:25 -04:00
parent
5fd78d8362
commit
f72f29188b
@ -25,8 +25,8 @@ func (s NativeSynther) Synth(patch sointu.Patch, bpm int) (sointu.Synth, error)
|
||||
|
||||
func Synth(patch sointu.Patch, bpm int) (*NativeSynth, error) {
|
||||
s := new(C.Synth)
|
||||
if n := patch.NumDelayLines(); n > 64 {
|
||||
return nil, fmt.Errorf("native bridge has currently a hard limit of 64 delaylines; patch uses %v", n)
|
||||
if n := patch.NumDelayLines(); n > 128 {
|
||||
return nil, fmt.Errorf("native bridge has currently a hard limit of 128 delaylines; patch uses %v", n)
|
||||
}
|
||||
comPatch, err := vm.NewBytecode(patch, vm.AllFeatures{}, bpm)
|
||||
if err != nil {
|
||||
@ -124,8 +124,8 @@ func (bridgesynth *NativeSynth) Release(voice int) {
|
||||
// Update
|
||||
func (bridgesynth *NativeSynth) Update(patch sointu.Patch, bpm int) error {
|
||||
s := (*C.Synth)(bridgesynth)
|
||||
if n := patch.NumDelayLines(); n > 64 {
|
||||
return fmt.Errorf("native bridge has currently a hard limit of 64 delaylines; patch uses %v", n)
|
||||
if n := patch.NumDelayLines(); n > 128 {
|
||||
return fmt.Errorf("native bridge has currently a hard limit of 128 delaylines; patch uses %v", n)
|
||||
}
|
||||
comPatch, err := vm.NewBytecode(patch, vm.AllFeatures{}, bpm)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user