-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Feat: Open sampler widget on sound sample drop #4453
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
Feat: Open sampler widget on sound sample drop #4453
Conversation
|
✅ All Jest tests passed! This PR is ready to merge. |
|
@walterbender everything seems to be working fine on the UI side but the audio sample is not playing, here are the logs: 0 261 0.5 electronic synth null null false undefined what could be the posible fix for this? |
|
@therealharshit I think the way you are passing values to "this.makeSamplerWidget" is not effective. |
|
I am interested in this, if you agree we can work together on this one. |
I worked on |
|
✅ All Jest tests passed! This PR is ready to merge. |
|
@walterbender I have fixed the issue which I was facing to play the sample files, now everything is working as suggested by @pikurasa . Vedio: Sampler-drop.mp4@Commanderk3 actually the issue was with the |
|
@therealharshit Yeah, nice work. I kind of reached the bottom of this problem but didn't know how readAsText and readAsDataURL works. |
|
Still i found one more issue. The existing blocks disappear when you drop the file. Did you notice? |
Yeah it's the default behavior of MB to clean canvas when a file is dropped, and since I used the existing workflow to implement this feature it's working as it should. |
|
We should not remove existing blocks when dropping a sound file onto the canvas. (Not sure we should even do it for project files, but that is a discussion for another time.) |
|
It does not happen when you drop midi files though. |
@walterbender there is a event |
|
trashsignal is invoked inside sendAllToTrash(). So the question is, why is sendAllToTrash() being called? |
|
✅ All Jest tests passed! This PR is ready to merge. |
@walterbender for now I fixed it for sound sample. vedio: sampler-drop.2.mp4Please review and let me know. |
This feature was suggested by @pikurasa in #4345
Vedio:
drop-2.mp4