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

musickeyboard only saves default synth #1860

Closed
walterbender opened this issue Oct 13, 2019 · 8 comments
Closed

musickeyboard only saves default synth #1860

walterbender opened this issue Oct 13, 2019 · 8 comments
Labels
Milestone

Comments

@walterbender
Copy link
Member

We should honor the synth set as per:

Screenshot from 2019-10-13 13-32-11

@walterbender
Copy link
Member Author

DEFAULTVOICE is hardwired throughout the code.

@walterbender
Copy link
Member Author

It works when composing, but the voice is ignored when playing back and when saving.

@walterbender walterbender changed the title musickeyboard only plays default synth musickeyboard only saves default synth Oct 14, 2019
@walterbender
Copy link
Member Author

It tracks the voice except during save.

@walterbender walterbender added this to the GCI 2019 milestone Nov 10, 2019
@aviral243
Copy link
Member

@walterbender What exactly do we need to do here? Please guide.

@walterbender
Copy link
Member Author

Each key can be assigned to a unique instrument. When we save, we don't wrap the set instrument block around the individual notes. (It would be best to group multiple notes using the same instrument, eg, piano do piano re piano mi guitar fa piano sol piano la piano ti --> piano [do re mi] guitar fa piano [la ti]

The relevant code is here:
https://github.com/sugarlabs/musicblocks/blob/master/js/widgets/musickeyboard.js#L1744

@walterbender walterbender modified the milestones: GCI 2019, future Feb 10, 2020
@sksum
Copy link
Member

sksum commented May 28, 2020

@walterbender
I am working on this issue and a design question came up . how would we want to use "set-instrument" for chords with keys that have been assigned different instruments

Screenshot (83)

would something like this work ?

@walterbender
Copy link
Member Author

Looks like an appropriate way to do it. No idea if it works. But we should try to make it work.
(Similar to dropping a drum block into a note along with a pitch.) Probably we need to tweak the way __playnote works in processNotes in logo.js

@pikurasa
Copy link
Collaborator

Had no idea that this was implemented. This is very nice.

@walterbender Perhaps we should have the synth in the macros to make this feature more evident.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants