-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,67 +186,77 @@ onUnmounted(() => { | |
<label for="multichannel">Multichannel-to-equave</label> | ||
</div> | ||
</div> | ||
<label>Settings for multichannel-to-equave mode</label> | ||
<div class="control multichannel-input-container"> | ||
<div> | ||
Center channel | ||
<input | ||
id="multichannel-center" | ||
class="control" | ||
type="number" | ||
min="1" | ||
max="16" | ||
v-model="midi.multichannelCenter" | ||
/> | ||
</div> | ||
<div> | ||
Total equaves | ||
<input | ||
id="multichannel-num-equaves" | ||
class="control" | ||
type="number" | ||
min="1" | ||
max="16" | ||
v-model="midi.multichannelNumEquaves" | ||
/> | ||
<template v-if="midi.multichannelToEquave"> | ||
<label>Settings for multichannel-to-equave mode</label> | ||
<div class="control multichannel-input-container"> | ||
<div> | ||
Center channel | ||
<input | ||
id="multichannel-center" | ||
class="control" | ||
type="number" | ||
min="1" | ||
max="16" | ||
v-model="midi.multichannelCenter" | ||
/> | ||
</div> | ||
<div> | ||
Total equaves | ||
<input | ||
id="multichannel-num-equaves" | ||
class="control" | ||
type="number" | ||
min="1" | ||
max="16" | ||
v-model="midi.multichannelNumEquaves" | ||
/> | ||
</div> | ||
<div> | ||
Equaves down | ||
<input | ||
id="multichannel-equaves-down" | ||
class="control" | ||
type="number" | ||
min="0" | ||
max="15" | ||
v-model="midi.multichannelEquavesDown" | ||
/> | ||
</div> | ||
</div> | ||
<div> | ||
Equaves down | ||
<input | ||
id="multichannel-equaves-down" | ||
class="control" | ||
type="number" | ||
min="0" | ||
max="15" | ||
v-model="midi.multichannelEquavesDown" | ||
/> | ||
</template> | ||
<template v-if="!midi.multichannelToEquave"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This could be a There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
<div class="control radio-group"> | ||
<label>Color mapping</label> | ||
<span> | ||
<input type="radio" id="white-off" value="off" v-model="midi.whiteMode" /> | ||
<label for="white-off">Chromatic</label> | ||
</span> | ||
<span> | ||
<input type="radio" id="white-simple" value="simple" v-model="midi.whiteMode" /> | ||
<label for="white-simple">White only</label> | ||
</span> | ||
<span> | ||
<input | ||
type="radio" | ||
id="white-black" | ||
value="blackAverage" | ||
v-model="midi.whiteMode" | ||
/> | ||
<label for="white-black">White w/ interpolation</label> | ||
</span> | ||
<span> | ||
<input type="radio" id="white-color" value="keyColors" v-model="midi.whiteMode" /> | ||
<label for="white-color">White key to white color</label> | ||
</span> | ||
</div> | ||
</div> | ||
<div class="control radio-group"> | ||
<label>Color mapping</label> | ||
<span> | ||
<input type="radio" id="white-off" value="off" v-model="midi.whiteMode" /> | ||
<label for="white-off">Chromatic</label> | ||
</span> | ||
<span> | ||
<input type="radio" id="white-simple" value="simple" v-model="midi.whiteMode" /> | ||
<label for="white-simple">White only</label> | ||
</span> | ||
<span> | ||
<input type="radio" id="white-black" value="blackAverage" v-model="midi.whiteMode" /> | ||
<label for="white-black">White w/ interpolation</label> | ||
</span> | ||
<span> | ||
<input type="radio" id="white-color" value="keyColors" v-model="midi.whiteMode" /> | ||
<label for="white-color">White key to white color</label> | ||
</span> | ||
</div> | ||
</template> | ||
</div> | ||
<div class="piano-container"> | ||
<MidiPiano | ||
:whiteModeOffset="scale.whiteModeOffset" | ||
:baseMidiNote="scale.baseMidiNote" | ||
:midiWhiteMode="midi.whiteMode" | ||
:multichannel="midi.multichannelToEquave" | ||
:keyColors="scale.colors" | ||
:activeKeys="activeKeys" | ||
/> | ||
|
There was a problem hiding this comment.
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
.