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

made multichannel-to-equave settings and color mapping dependent on mode #657

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

000masa000
Copy link
Contributor

@000masa000 000masa000 commented Apr 17, 2024

made options visible depending on multichannel-to-equave checkbox

@000masa000 000masa000 requested a review from frostburn April 17, 2024 21:06
@frostburn
Copy link
Member

If you're hiding the color mapping stuff there should be a corresponding bypass in App.vue to make sure multichannel mode doesn't behave strangely.

v-model="midi.multichannelEquavesDown"
/>
</template>
<template v-if="!midi.multichannelToEquave">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be a v-else but then the template becomes more rigid. Maybe two separate v-ifs is better. Just wanted to point out the syntax.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, I noticed that possibility this morning while looking around other places where v-if pops up

@000masa000
Copy link
Contributor Author

000masa000 commented Apr 18, 2024

2nd commit adds changes to App.vue and Midi Piano so chromatic mode behaviour reverts when in multichannel-to-equave mode

@frostburn
Copy link
Member

Missing bypass near return (rawRelease?: number) => { in App.vue.

@000masa000
Copy link
Contributor Author

fixed...

@@ -156,7 +158,7 @@ function midiNoteOn(index: number, rawAttack?: number, channel?: number) {
if (!midi.velocityOn) {
rawRelease = 80
}
if (whiteMode === 'simple') {
if (whiteMode === 'simple' || multichannel) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is on me for writing bad code in the first place. Enough churn. I'll fix it on main.

@frostburn frostburn merged commit efac5f6 into main Apr 18, 2024
2 checks passed
@frostburn frostburn deleted the multichannel-to-equave branch April 18, 2024 13:34
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

Successfully merging this pull request may close these issues.

2 participants