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

arp 3.1 appears to play too many notes #34

Closed
dag2099 opened this issue Sep 6, 2019 · 12 comments
Closed

arp 3.1 appears to play too many notes #34

dag2099 opened this issue Sep 6, 2019 · 12 comments
Assignees

Comments

@dag2099
Copy link

dag2099 commented Sep 6, 2019

Windows 7 64
VCVrack 1.1.4

I've been using Arp 3.1 for a while but I've just noticed that it appears to play an extra note.
Using Merge to put together an 8 part polyphonic signal and then play a melody yields 9 notes instead of 8 when in either "left" or "right" mode. The extra note appears to be have a value of 0.000. Going back over some of my other patches (some of which i've even made videos of) they seem to exhibit the same behavior.
Thx.

@AmalgamatedHarmonics
Copy link

HI,

Thanks for feedback. Let me have a look at it and see what's up.

cheers,

john

@jhoar
Copy link
Owner

jhoar commented Sep 6, 2019

I can't reproduce it, with a simple patch (attached) it seems to be ok. Can you give me a patch to test with?

Arp31test.zip

john

@dag2099
Copy link
Author

dag2099 commented Sep 8, 2019

I tried your test patch and it counted 9 numbers one of which was 0.000. for whatever reason it displayed the 0.000 as yellow. Let me just try and redownload your module...
...no it still counts 9 steps rather than 8.

@jhoar
Copy link
Owner

jhoar commented Sep 10, 2019

I am baffled. I'm not sure what else to suggest.

Capture

((oops, wrong image))

@AmalgamatedHarmonics
Copy link

AmalgamatedHarmonics commented Sep 10, 2019 via email

@jhoar jhoar self-assigned this Sep 13, 2019
@paulpiko
Copy link

This might show the same problem. It plays C4 A4 B4, even though there are only 2 notes, A4 and B4, in the poly cable.

image

@zyx
Copy link

zyx commented Nov 20, 2019

I've been seeing this issue under Linux - Debugging with GDB shows that Arp3.1 is actually calling RightArp::isArpeggioFinished() from ArpeggiatorMkII.cpp. This copy of RightArp::isArpeggioFinished() seems to have an off-by-one bug that causes an extra note to be played.

Removing ArpeggiatorMkII from the plugin fixes the issue, but just renaming Arpeggio and subclasses in ArpeggiatorMkII should also do the trick.

This may also explain VCVRack/library#570

As to the root cause, I'll hazard a guess and say that this may be a linking issue - perhaps there's some link time optimization going on?

@jhoar
Copy link
Owner

jhoar commented Nov 21, 2019

Hi!

Great! Thanks for tracking that down - I was not getting anywhere with that.

john

@zyx
Copy link

zyx commented Nov 29, 2019

Hi John, I tried your change but just get a segfault when adding the Arp3.1 module from the browser. Renaming the arpeggiator subclasses (LeftArp -> LeftArp2 etc) in addition to the parent class fixes the issue though.

@AmalgamatedHarmonics
Copy link

AmalgamatedHarmonics commented Nov 29, 2019 via email

@jhoar
Copy link
Owner

jhoar commented Dec 15, 2019

Fixed for next release.

@jhoar
Copy link
Owner

jhoar commented Dec 23, 2019

Closed in 1.0.4

@jhoar jhoar closed this as completed Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants