-
Notifications
You must be signed in to change notification settings - Fork 966
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
"AccidentalBlockBug" #3773
"AccidentalBlockBug" #3773
Conversation
I don't think this is the best way to fix this problem. Rather than letting text and number args match, better to make the accidental block accept any input. |
@walterbender As suggested ,Type1 is the moving block which can be any of these three(["numberout", "anyout","textout"]) as we want to insert.And type2 corresponds to the nonmoving block which is accidental block(numberin),Just added textout to alreday existing condition. |
The basic types are number in <---> number out and string in <---> string out. There is another type, any in <----> number or string type. I am suggesting that since we can use either a number or a string with the accidental block, it should be any in. The change you had made in your commit would impact every block that has number in, which is not what we want. |
@walterbender without changing the conditions of testConnections(As it may effect other blocks),I changed the the second dockType of accidental block from "numberin" to "anyin".And it works fine. |
Err... still not quite correct. You are overriding every number arg with your commit. We only want to override connection one of the accidental block. The file you want to edit is js/blocks/PitchBlocks.js |
@walterbender Was bit a confused ,I think it is fine now.Plz review. |
Close, but not quite correct. The output of the accidental name block should remain text out. But the input of the acidental block should accept any in. |
@walterbender Is that okay Sir? |
Solves #3772 .
@walterbender Plz review.
Music.Blocks.is.a.collection.of.tools.for.exploring.fundamental.musical.concepts.in.a.fun.way.-.Google.Chrome.2024-02-24.20-32-26.mp4