Changeset 3356711
- Timestamp:
- 09/05/2025 12:39:20 PM (7 months ago)
- Location:
- ptpiano/tags/1.2.5
- Files:
-
- 40 copied
-
. (copied) (copied from ptpiano/trunk)
-
PT-piano-icon.png (copied) (copied from ptpiano/trunk/PT-piano-icon.png)
-
PT_Piano_Player.php (copied) (copied from ptpiano/trunk/PT_Piano_Player.php) (5 diffs)
-
PT_Piano_Setting.php (copied) (copied from ptpiano/trunk/PT_Piano_Setting.php)
-
functions.php (copied) (copied from ptpiano/trunk/functions.php) (13 diffs)
-
icon.png (copied) (copied from ptpiano/trunk/icon.png)
-
ir (copied) (copied from ptpiano/trunk/ir)
-
js (copied) (copied from ptpiano/trunk/js)
-
js/admin-settings.js (copied) (copied from ptpiano/trunk/js/admin-settings.js)
-
js/control.js (copied) (copied from ptpiano/trunk/js/control.js)
-
js/piano.augmented.mark.js (copied) (copied from ptpiano/trunk/js/piano.augmented.mark.js)
-
js/piano.diminished.mark.js (copied) (copied from ptpiano/trunk/js/piano.diminished.mark.js)
-
js/piano.major.mark.js (copied) (copied from ptpiano/trunk/js/piano.major.mark.js)
-
js/piano.major.scale.js (copied) (copied from ptpiano/trunk/js/piano.major.scale.js)
-
js/piano.minor.mark.js (copied) (copied from ptpiano/trunk/js/piano.minor.mark.js)
-
js/piano.minor.scale.js (copied) (copied from ptpiano/trunk/js/piano.minor.scale.js)
-
js/piano.reverb.js (copied) (copied from ptpiano/trunk/js/piano.reverb.js)
-
js/piano.sound.js (copied) (copied from ptpiano/trunk/js/piano.sound.js) (1 diff)
-
ptpiano.php (copied) (copied from ptpiano/trunk/ptpiano.php) (1 diff)
-
readme.txt (copied) (copied from ptpiano/trunk/readme.txt) (2 diffs)
-
speaker.png (copied) (copied from ptpiano/trunk/speaker.png)
-
styles (copied) (copied from ptpiano/trunk/styles)
-
styles/admin-settings.css (copied) (copied from ptpiano/trunk/styles/admin-settings.css)
-
styles/frontend-dynamic.css (copied) (copied from ptpiano/trunk/styles/frontend-dynamic.css) (1 diff)
-
styles/piano.css (copied) (copied from ptpiano/trunk/styles/piano.css) (1 diff)
-
theme (copied) (copied from ptpiano/trunk/theme)
-
tunes (copied) (copied from ptpiano/trunk/tunes)
-
tunes/4.wav (copied) (copied from ptpiano/trunk/tunes/4.wav)
-
tunes/5.wav (copied) (copied from ptpiano/trunk/tunes/5.wav)
-
tunes/6.wav (copied) (copied from ptpiano/trunk/tunes/6.wav)
-
tunes/b.wav (copied) (copied from ptpiano/trunk/tunes/b.wav)
-
tunes/c.wav (copied) (copied from ptpiano/trunk/tunes/c.wav)
-
tunes/k.wav (copied) (copied from ptpiano/trunk/tunes/k.wav)
-
tunes/l.wav (copied) (copied from ptpiano/trunk/tunes/l.wav)
-
tunes/n.wav (copied) (copied from ptpiano/trunk/tunes/n.wav)
-
tunes/o.wav (copied) (copied from ptpiano/trunk/tunes/o.wav)
-
tunes/p.wav (copied) (copied from ptpiano/trunk/tunes/p.wav)
-
tunes/v.wav (copied) (copied from ptpiano/trunk/tunes/v.wav)
-
tunes/x.wav (copied) (copied from ptpiano/trunk/tunes/x.wav)
-
tunes/z.wav (copied) (copied from ptpiano/trunk/tunes/z.wav)
Legend:
- Unmodified
- Added
- Removed
-
ptpiano/tags/1.2.5/PT_Piano_Player.php
r3356455 r3356711 38 38 39 39 <div class="col col-center"> 40 <canvas id="equalizer" width="300" height="100"></canvas> 41 <div class="volume-slider"> 42 <span class="volume-icon">🔊</span> 43 <input type="range" id="volumeControl" min="0" max="1" value="0.5" step="any"> 44 <span id="volumeRValue">50</span> 45 </div> 46 </div> 40 <div class="equalizer-notes-row"> 41 <div class="equalizer-wrapper"> 42 <canvas id="equalizer" width="220" height="100"></canvas> 43 </div> 44 45 <div class="note-display-wrapper"> 46 <div class="note-display" id="played-notes"> 47 <!-- Played notes will be added here --> 48 </div> 49 </div> 50 </div> 51 <div class="vol-notes-row"> 52 <div class="volume-slider"> 53 <span class="volume-icon">🔊</span> 54 <input type="range" id="volumeControl" min="0" max="1" value="0.5" step="any"> 55 <span id="volumeRValue">50</span> 56 </div> 57 <div class="button-box"> 58 <!--<button id="playBtn" type="button" title="Play">▶️ Play</button>--> 59 <button id="clearBtn" type="button" title="Clear">❌ Clear</button> 60 </div> 61 </div> 62 </div> 63 64 47 65 48 66 <div class="col col-right"> … … 203 221 <span class="note-label"><?php echo esc_html(ptpian_note_label($key['note'], $note_display, $solfege_map, $indian_map)); ?></span> 204 222 <!-- Keyboard key label (e.g., A, W, S) --> 205 <span class="key-label"> 206 <?php echo esc_html(strtoupper($key['key'])); ?>223 <span class="key-label"> 224 <?php echo strtoupper(esc_html($key['key'])); ?> 207 225 </span> 208 226 </li> … … 224 242 text-align: center; 225 243 padding: .6em; 244 margin:0 auto; 226 245 color: <?php echo esc_attr($res_txt_color); ?>;" /> 227 246 <?php endif; ?> … … 229 248 <div class="toggle-box"> 230 249 <div class="keys-checkbox"> 231 <span> ShowNotes</span>250 <span>Notes</span> 232 251 <label class="switch"> 233 252 <input type="checkbox" id="show-notes-toggle" checked> 234 253 <span class="slider round"></span> 235 254 </label> 236 <span> ShowKeys</span>255 <span>Keys</span> 237 256 <label class="switch"> 238 257 <input type="checkbox" id="show-keys-toggle" checked> … … 248 267 <span class="slider round"></span> 249 268 </label> 250 <label for="ptpian_reverb_ir"> ChooseIR:</label>269 <label for="ptpian_reverb_ir">IR:</label> 251 270 <select id="ptpian_reverb_ir" name="ptpian_reverb_ir"> 252 271 <option value="hall">Hall</option> -
ptpiano/tags/1.2.5/functions.php
r3356455 r3356711 56 56 PTPIAN_PLUGIN_URL . 'styles/admin-settings.css', 57 57 array(), 58 '1.2. 4'58 '1.2.5' 59 59 ); 60 60 … … 63 63 PTPIAN_PLUGIN_URL . 'js/admin-settings.js', 64 64 array(), 65 '1.2. 4',65 '1.2.5', 66 66 true 67 67 ); … … 80 80 PTPIAN_PLUGIN_URL . 'styles/piano.css', 81 81 array(), 82 '1.2. 4',82 '1.2.5', 83 83 'all' 84 84 ); … … 88 88 PTPIAN_PLUGIN_URL . 'styles/frontend-dynamic.css', 89 89 array(), 90 '1.2. 4',90 '1.2.5', 91 91 'all' 92 92 ); … … 118 118 PTPIAN_PLUGIN_URL . 'js/piano.sound.js', 119 119 array(), 120 '1.2. 4',120 '1.2.5', 121 121 true 122 122 ); … … 134 134 PTPIAN_PLUGIN_URL . 'js/control.js', 135 135 array(), 136 '1.2. 4',136 '1.2.5', 137 137 true 138 138 ); … … 143 143 PTPIAN_PLUGIN_URL . 'js/piano.major.scale.js', 144 144 array(), 145 '1.2. 4',145 '1.2.5', 146 146 true 147 147 ); … … 152 152 PTPIAN_PLUGIN_URL . 'js/piano.minor.scale.js', 153 153 array(), 154 '1.2. 4',154 '1.2.5', 155 155 true 156 156 ); … … 161 161 PTPIAN_PLUGIN_URL . 'js/piano.major.mark.js', 162 162 array(), 163 '1.2. 4',163 '1.2.5', 164 164 true 165 165 ); … … 170 170 PTPIAN_PLUGIN_URL . 'js/piano.minor.mark.js', 171 171 array(), 172 '1.2. 4',172 '1.2.5', 173 173 true 174 174 ); … … 179 179 PTPIAN_PLUGIN_URL . 'js/piano.diminished.mark.js', 180 180 array(), 181 '1.2. 4',181 '1.2.5', 182 182 true 183 183 ); … … 188 188 PTPIAN_PLUGIN_URL . 'js/piano.augmented.mark.js', 189 189 array(), 190 '1.2. 4',190 '1.2.5', 191 191 true 192 192 ); … … 198 198 PTPIAN_PLUGIN_URL . 'js/piano.reverb.js', // create this file 199 199 array('ptpian-sound'), // make sure sound is loaded first 200 '1.2. 4',200 '1.2.5', 201 201 true 202 202 ); -
ptpiano/tags/1.2.5/js/piano.sound.js
r3356455 r3356711 1 document.addEventListener('DOMContentLoaded',()=>{const pianoKeys=document.querySelectorAll(".piano-keys .key"),volumeSlider=document.querySelector(".volume-slider input"),notesCheckbox=document.querySelector("#show-notes-toggle"),keysCheckbox=document.querySelector("#show-keys-toggle"),equalizerCanvas=document.getElementById("equalizer"),canvasCtx=equalizerCanvas.getContext("2d");const audioContext=new(window.AudioContext||window.webkitAudioContext)();const analyser=audioContext.createAnalyser();analyser.fftSize=128;const bufferLength=20;const dataArray=new Uint8Array(64);let allKeys=[],audioCache={},audioSources={},isDrawing=!1;const pluginBaseUrl=ptpianData.pluginsUrl+'/ptpiano/tunes/';if(window.ptpReverb){ptpReverb.initReverb(audioContext);ptpReverb.loadReverb(ptpianReverbData?.irs?.hall)}1 document.addEventListener('DOMContentLoaded',()=>{const pianoKeys=document.querySelectorAll(".piano-keys .key"),volumeSlider=document.querySelector(".volume-slider input"),notesCheckbox=document.querySelector("#show-notes-toggle"),keysCheckbox=document.querySelector("#show-keys-toggle"),equalizerCanvas=document.getElementById("equalizer"),canvasCtx=equalizerCanvas.getContext("2d");const noteDisplay=document.getElementById("played-notes");const clearBtn=document.getElementById("clearBtn");const audioContext=new(window.AudioContext||window.webkitAudioContext)();const analyser=audioContext.createAnalyser();analyser.fftSize=128;const bufferLength=20;const dataArray=new Uint8Array(64);let allKeys=[],audioCache={},audioSources={},isDrawing=!1;const pluginBaseUrl=ptpianData.pluginsUrl+'/ptpiano/tunes/';if(window.ptpReverb){ptpReverb.initReverb(audioContext);ptpReverb.loadReverb(ptpianReverbData?.irs?.hall)} 2 2 pianoKeys.forEach(key=>{const keyData=key.dataset.key;const audio=new Audio(pluginBaseUrl+`${keyData}.wav`);audio.preload='auto';audioCache[keyData]=audio});const playTune=async(key)=>{try{await audioContext.resume();const audio=audioCache[key].cloneNode();const source=audioContext.createMediaElementSource(audio);if(window.ptpReverb){ptpReverb.applyReverb(source,analyser)}else{source.connect(analyser)} 3 analyser.connect(audioContext.destination);audio.volume=volumeSlider.value;audio.play();audioSources[key]=source;const clickedKey=document.querySelector(`[data-key="${key}"]`);if(clickedKey){clickedKey.classList.add("active");setTimeout(()=>clickedKey.classList.remove("active"),150) }3 analyser.connect(audioContext.destination);audio.volume=volumeSlider.value;audio.play();audioSources[key]=source;const clickedKey=document.querySelector(`[data-key="${key}"]`);if(clickedKey){clickedKey.classList.add("active");setTimeout(()=>clickedKey.classList.remove("active"),150);const noteLabel=clickedKey.querySelector(".note-label")?.textContent||clickedKey.dataset.note;const noteSpan=document.createElement("span");noteSpan.textContent=noteLabel;noteSpan.classList.add("played-note");noteDisplay.appendChild(noteSpan);noteDisplay.scrollLeft=noteDisplay.scrollWidth;if(noteDisplay.childNodes.length>120){noteDisplay.removeChild(noteDisplay.firstChild)}} 4 4 if(!isDrawing)drawEqualizer();}catch(err){console.error("Error playing sound:",err)}};const drawEqualizer=()=>{isDrawing=!0;const renderFrame=()=>{analyser.getByteFrequencyData(dataArray);canvasCtx.clearRect(0,0,equalizerCanvas.width,equalizerCanvas.height);const canvasWidth=equalizerCanvas.width;const canvasHeight=equalizerCanvas.height;const barCount=bufferLength;const barGap=2;const totalGapWidth=(barCount-1)*barGap;const barWidth=(canvasWidth-totalGapWidth)/barCount;let x=0;for(let i=0;i<barCount;i++){const barHeight=dataArray[i]/2;canvasCtx.fillStyle=`rgb(${barHeight + 100}, 50, 200)`;canvasCtx.fillRect(x,canvasHeight-barHeight,barWidth,barHeight);x+=barWidth+barGap} 5 requestAnimationFrame(renderFrame)};renderFrame()};pianoKeys.forEach(key=>{allKeys.push(key.dataset.key);key.addEventListener("click",()=>{playTune(key.dataset.key);key.classList.add("glow");setTimeout(()=>{key.classList.remove("glow")},500)})});volumeSlider.addEventListener("input",()=>{});notesCheckbox.addEventListener("click",()=>{pianoKeys.forEach(key=>{const noteLabel=key.querySelector(".note-label");if(noteLabel)noteLabel.classList.toggle("hide");})});keysCheckbox.addEventListener("click",()=>{pianoKeys.forEach(key=>{const keyLabel=key.querySelector(".key-label");if(keyLabel)keyLabel.classList.toggle("hide");})});document.addEventListener("keydown",e=>{ if(allKeys.includes(e.key)){playTune(e.key);const keyElement=document.querySelector(`.key[data-key="${e.key}"]`);if(keyElement){keyElement.classList.add("glow");setTimeout(()=>{keyElement.classList.remove("glow")},500)}}})})5 requestAnimationFrame(renderFrame)};renderFrame()};pianoKeys.forEach(key=>{allKeys.push(key.dataset.key);key.addEventListener("click",()=>{playTune(key.dataset.key);key.classList.add("glow");setTimeout(()=>{key.classList.remove("glow")},500)})});volumeSlider.addEventListener("input",()=>{});notesCheckbox.addEventListener("click",()=>{pianoKeys.forEach(key=>{const noteLabel=key.querySelector(".note-label");if(noteLabel)noteLabel.classList.toggle("hide");})});keysCheckbox.addEventListener("click",()=>{pianoKeys.forEach(key=>{const keyLabel=key.querySelector(".key-label");if(keyLabel)keyLabel.classList.toggle("hide");})});document.addEventListener("keydown",e=>{const pressedKey=e.key.toLowerCase();if(allKeys.includes(pressedKey)){playTune(pressedKey);const keyElement=document.querySelector(`.key[data-key="${pressedKey}"]`);if(keyElement){keyElement.classList.add("glow");setTimeout(()=>{keyElement.classList.remove("glow")},500)}}});clearBtn.addEventListener("click",()=>{noteDisplay.innerHTML=""})}) -
ptpiano/tags/1.2.5/ptpiano.php
r3356455 r3356711 8 8 * Plugin Name: PTPiano 9 9 * Description: An interactive, browser-based piano plugin for learning and exploring chords and notes. 10 * Version: 1.2. 410 * Version: 1.2.5 11 11 * Author: santechidea 12 12 * Author URI: https://wordpress.santechidea.net -
ptpiano/tags/1.2.5/readme.txt
r3356455 r3356711 5 5 Tested up to: 6.8 6 6 Requires PHP: 8.0 7 Stable tag: 1.2. 47 Stable tag: 1.2.5 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 49 49 50 50 == Changelog == 51 52 = 1.2.5 = 53 *New Feature: 54 - Added a Note Display Box : As you play the piano, the corresponding notes are displayed in a scrollable area. 55 56 - Introduced a Clear Button to easily clear the note display box. 57 58 - UI Enhancements: Improved responsiveness and layout for a better mobile experience. 51 59 52 60 = 1.2.4 = -
ptpiano/tags/1.2.5/styles/frontend-dynamic.css
r3356455 r3356711 1 :root{--ptpian-control-txt-color:#ffffff;--ptpian-txt-piano-color:#ffffff;--ptpian-mark-bg-color:#000000;--ptpian-mark-text-color:#ffffff;--ptpian-theme-bg:url( ../theme/default-theme.png);--ptpian-keylight-color:#fff}.control span{color:var(--ptpian-control-txt-color)}.piano-keys.key span{color:var(--ptpian-txt-piano-color)}.mark{background-color:var(--ptpian-mark-bg-color);color:var(--ptpian-mark-text-color)}.columnboxpiano{background-image:var(--ptpian-theme-bg);background-repeat:repeat}.hidden{display:none!important}.key.glow{box-shadow:0 5px 25px 8px var(--ptpian-keylight-color);border-radius:6px}1 :root{--ptpian-control-txt-color:#ffffff;--ptpian-txt-piano-color:#ffffff;--ptpian-mark-bg-color:#000000;--ptpian-mark-text-color:#ffffff;--ptpian-theme-bg:url('../theme/default-theme.png');--ptpian-keylight-color:#fff}.control span{color:var(--ptpian-control-txt-color)}.piano-keys.key span{color:var(--ptpian-txt-piano-color)}.mark{background-color:var(--ptpian-mark-bg-color);color:var(--ptpian-mark-text-color)}.columnboxpiano{background-image:var(--ptpian-theme-bg);background-repeat:repeat}.hidden{display:none!important}.key.glow{box-shadow:0 5px 25px 8px var(--ptpian-keylight-color);border-radius:6px} -
ptpiano/tags/1.2.5/styles/piano.css
r3356455 r3356711 1 *{margin:0;padding:0;box-sizing:border-box;font-family:sans-serif}.wrapper{padding:15px 35px 15px 35px;border-radius:20px}.wrapper header{display:flex;color:#B2B2B2;align-items:center;justify-content:space-between;padding:15px}.columnbox{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:15px 20px;background-color:#252424;border-radius:20px;width:100%}.col-left{display:flex;flex-direction:column}.piano-header{display:flex;align-items:center;gap:10px}.piano-title h2{margin:0;font-size:18px;font-weight:700;color:gold}.piano-title .version{font-size:12px;color:#7ecfff;margin-left:6px}.piano-speaker img{margin-top:5px;max-width:150px}.col-center{display:flex;flex-direction:column;align-items:center;justify-content:center}.col-right{display:flex;justify-content:flex-end;padding-top:30px}#equalizer{margin-left:30px}.volume-slider{display:flex;align-items:center;background:#555;padding:10px 15px;border-radius:40px;width:320px;gap:12px;font-family:sans-serif;color:#00fdfd}.volume-icon{font-size:20px}#volumeControl{-webkit-appearance:none;appearance:none;width:100%;height:6px;background:#00fdfd;border-radius:3px;cursor:pointer}#volumeControl::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;background:#000;border:4px solid #00fdfd;border-radius:50%;margin-top:-2px;transition:background 0.3s}#volumeControl::-moz-range-thumb{width:14px;height:14px;background:#000;border:4px solid #00fdfd;border-radius:50%}#volumeControl::-moz-range-track{height:6px;background:#00fdfd;border-radius:3px}#volumeRValue{font-weight:700;min-width:32px;text-align:right;color:gold}.chord-group{display:inline-block;text-align:center;position:relative;margin:0 20px}.chord-label{position:absolute;top:-18px;left:50%;transform:translateX(-50%);color:#252424;font-size:18px;font-weight:700;background:#070707;z-index:2;padding:5px 10px 0 10px;border-radius:10px 10px 0 0}.chord-option{display:inline-flex;gap:10px;padding:15px;border-radius:0 0 10px 10px;background:#070707;position:relative}.chord-option::before{content:"";position:absolute;top:-2px;left:0;width:100%;height:2px;background:#252424}.chord-option select{background-color:#252424;color:gold;border:2px solid cyan;border-radius:8px;padding:10px 16px;font-weight:700;font-family:Arial,Helvetica,sans-serif;font-size:14px;outline:none;transition:background-color 0.3s,color 0.3s;width:155px}select option{background-color:#252424;color:gold;font-weight:400}select:hover,select:focus{background-color:#252424;color:cyan;border-color:gold;cursor:pointer}.columnboxpiano{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-start;padding:15px 0 0 0;background-color:#252424;border-radius:20px;width:100%;box-sizing:border-box;gap:10px}.left-column{width:73%}.left-column,.right-column{display:flex;flex-direction:column;gap:10px;color:#fff;box-sizing:border-box}.wrapper .control{display:flex;color:#252424;align-items:center;justify-content:space-between;padding:15px}.control .column{display:flex;align-items:center;gap:5px}.control span{font-weight:500;margin-right:15px;font-size:1.19rem}.control input{outline:none;border-radius:30px}.piano-keys{display:flex;list-style:none;margin-top:40px;padding:20px}ul.piano-keys{list-style-type:none!important}.piano-keys .key{cursor:pointer;user-select:none;position:relative;text-transform:uppercase}.piano-keys .black{z-index:2;width:44px;height:140px;margin:0 -22px 0 -22px;border-radius:0 0 5px 5px;background:linear-gradient(#333,#000)}.piano-keys .black.active{box-shadow:inset -5px -10px 10px rgb(255 255 255 / .1);background:linear-gradient(to bottom,#000,#434343)}.piano-keys .white{height:230px;width:70px;border-radius:8px;border:1px solid #000;background:linear-gradient(#fff 96%,#eee 4%)}.piano-keys .white.active{box-shadow:inset -5px 5px 20px rgb(0 0 0 / .2);background:linear-gradient(to bottom,#fff 0%,#eee 100%)}.piano-keys .key span{position:absolute;bottom:20px;width:80%;font-size:1.13rem;text-align:center}.piano-keys .black span{bottom:21px;color:#888}.mark{height:25px;width:20px;border-radius:50%}.piano-keys .key span.fullmark{background-color:rgb(255 255 0 / .3);border-radius:4px;padding:2px 4px;transition:background-color 0.3s ease}.hide{display:none!important}.piano-keys .key span.note-label{display:block;bottom:29px}.piano-keys .key span.key-label{display:block;font-size:12px;color:#888;bottom:9px}.toggle-box{background:#252424;padding:10px 10px 20px 10px;border-radius:40px;font-family:sans-serif;color:#00fdfd}.keys-checkbox{display:flex;align-items:center;gap:10px;margin:10px 0;font-family:sans-serif;width:100%}.keys-checkbox input{height:30px;width:60px;cursor:pointer;appearance:none;position:relative;background:#4B4B4B}.keys-checkbox input::before{content:"";position:absolute;top:50%;left:5px;width:20px;height:20px;border-radius:50%;background:#8c8c8c;transform:translateY(-50%);transition:all 0.3s ease}.keys-checkbox input:checked::before{left:35px;background:#fff}.switch input{opacity:0;width:0;height:0}.switch{position:relative;display:inline-block;width:65px;height:26px}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:0.4s;border-radius:26px;width:50px}.slider::before{content:"";position:absolute;height:20px;width:20px;left:3px;bottom:3px;background-color:#fff;transition:0.4s;border-radius:50%}.switch input:checked+.slider{background-color:cyan;width:50px}.switch input:checked+.slider::before{transform:translateX(24px)}.reverb-box{background:#252424;padding:10px 10px 20px 10px;border-radius:40px;font-family:sans-serif;color:#00fdfd}.reverb-box select{background-color:#252424;color:gold;border:2px solid cyan;border-radius:8px;padding:10px 16px;font-weight:700;font-family:Arial,Helvetica,sans-serif;font-size:14px;outline:none;transition:background-color 0.3s,color 0.3s;width:95px}.ptpiano-wrapper{position:relative;min-height:300px;background:#fff0}.ptpiano-loader{position:absolute;top:0;left:0;width:100%;height:100%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:10}.ptpiano-loader p{margin-top:15px;font-size:14px;font-weight:700;color:#333}.spinner{width:40px;height:40px;border:4px solid #ddd;border-top:4px solid cyan;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@media screen and (max-width:1280px){.wrapper{padding:5px}header{flex-direction:column}header :where(h2,.column){margin-bottom:13px}.piano-header{width:170px!important}.piano-speaker{display:none}.col-center{grid-column:1 / -1;width:100%;padding-left:0;align-items:center}.wrapper .control{flex-direction:column;align-items:flex-start;gap:15px;align-items:center}.chord-group{margin:0 auto!important}.control .column{width:100%}.chord-option{width:100%!important;align-items:center}.chord-option select{display:block;width:100%!important;margin-left:0}.chord-option::before{display:none}.chord-label{display:none}.left-column{width:95%!important}.columnboxpiano{flex-direction:column;align-items:center}.piano-keys .black{height:100px;width:44px;margin:0 -20px 0 -20px}.piano-keys .white{height:180px;width:70px}.piano-keys{display:flex;justify-content:space-between;flex-wrap:nowrap;margin:0!important;padding:0 5px}.piano-keys .white{width:9.5vw;height:140px}.piano-keys .black{width:5vw;height:100px;margin:0 -2.5vw}.right-column{padding:10px 0}.reverb-box{width:100%}canvas#equalizer{width:95%!important;height:auto!important}.piano-keys .key span{font-size:10px}}1 *{margin:0;padding:0;box-sizing:border-box;font-family:sans-serif}.wrapper{padding:15px 35px 15px 35px;border-radius:20px}.wrapper header{display:flex;color:#B2B2B2;align-items:center;justify-content:space-between;padding:15px}.columnbox{display:grid;grid-template-columns:1fr 4fr 1fr;align-items:center;padding:15px 20px;background-color:#252424;border-radius:20px;width:100%}.col-left{display:flex;flex-direction:column}.piano-header{display:flex;align-items:center;gap:10px}.piano-title h2{margin:0;font-size:18px;font-weight:700;color:gold}.piano-title .version{font-size:12px;color:#7ecfff;margin-left:6px}.piano-speaker img{margin-top:5px;max-width:150px}.col-center{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:15px}.equalizer-notes-row{display:flex;flex-direction:row;gap:5px;align-items:center;justify-content:center;width:100%;max-width:100%}.note-display-wrapper{background:#1e1e1e;border-radius:12px;padding:10px 15px;min-height:100px;box-shadow:inset 0 0 6px rgb(0 0 0 / .6);border:1px solid #444;display:flex;align-items:center;justify-content:flex-start;flex-grow:1;width:90%;min-height:125px}.equalizer-wrapper{background:#1e1e1e;border-radius:12px;padding:10px 15px;box-shadow:inset 0 0 6px rgb(0 0 0 / .6);border:1px solid #444;display:flex;align-items:center;justify-content:center;width:220px;min-height:100px}.note-display{width:100%;height:100px;overflow-x:hidden;overflow-y:auto;white-space:normal;padding:8px 12px;background:#121212;border-radius:8px;color:#eee;font-family:monospace,monospace;font-size:16px;user-select:text;box-sizing:border-box}#played-notes{width:100%;height:100px;overflow-x:hidden;overflow-y:auto;white-space:normal;padding:8px 12px;background:#121212;border-radius:8px;color:#eee;font-family:monospace,monospace;font-size:16px;user-select:text;box-sizing:border-box}#equalizer{width:220px}.col-right{display:flex;justify-content:flex-end;padding-top:30px}.vol-notes-row{display:flex;flex-wrap:wrap;align-items:center;gap:15px;margin-top:10px;justify-content:center}.volume-slider{display:flex;align-items:center;background:#555;padding:10px 15px;border-radius:40px;width:320px;gap:12px;font-family:sans-serif;color:#00fdfd}.volume-icon{font-size:20px}#volumeControl{-webkit-appearance:none;appearance:none;width:100%;height:6px;background:#00fdfd;border-radius:3px;cursor:pointer}#volumeControl::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;background:#000;border:4px solid #00fdfd;border-radius:50%;margin-top:-2px;transition:background 0.3s}#volumeControl::-moz-range-thumb{width:14px;height:14px;background:#000;border:4px solid #00fdfd;border-radius:50%}#volumeControl::-moz-range-track{height:6px;background:#00fdfd;border-radius:3px}#volumeRValue{font-weight:700;min-width:32px;text-align:right;color:gold}.button-box{display:flex;gap:10px;background:#555;padding:10px 20px;border-radius:40px;font-family:sans-serif}.button-box button{background:#fff0;border:2px solid #00fdfd;color:#00fdfd;font-weight:600;padding:6px 14px;border-radius:30px;cursor:pointer;display:flex;align-items:center;gap:6px;transition:background-color 0.3s,color 0.3s;font-size:14px}.button-box button:hover{background:#00fdfd;color:#000}.chord-group{display:inline-block;text-align:center;position:relative;margin:0 20px}.chord-label{position:absolute;top:-18px;left:50%;transform:translateX(-50%);color:#252424;font-size:18px;font-weight:700;background:#070707;z-index:2;padding:5px 10px 0 10px;border-radius:10px 10px 0 0}.chord-option{display:inline-flex;gap:10px;padding:15px;border-radius:0 0 10px 10px;background:#070707;position:relative}.chord-option::before{content:"";position:absolute;top:-2px;left:0;width:100%;height:2px;background:#252424}.chord-option select{background-color:#252424;color:gold;border:2px solid cyan;border-radius:8px;padding:10px 16px;font-weight:700;font-family:Arial,Helvetica,sans-serif;font-size:14px;outline:none;transition:background-color 0.3s,color 0.3s;width:155px}select option{background-color:#252424;color:gold;font-weight:400}select:hover,select:focus{background-color:#252424;color:cyan;border-color:gold;cursor:pointer}.columnboxpiano{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-start;padding:15px 0 0 0;background-color:#252424;border-radius:20px;width:100%;box-sizing:border-box;gap:10px}.left-column{width:72%}.right-column{width:26%}.left-column,.right-column{display:flex;flex-direction:column;gap:10px;color:#fff;box-sizing:border-box}.wrapper .control{display:flex;color:#252424;align-items:center;justify-content:space-between;padding:15px}.control .column{display:flex;align-items:center;gap:5px}.control span{font-weight:500;margin-right:15px;font-size:1.19rem}.control input{outline:none;border-radius:30px}.piano-keys{display:flex;list-style:none;margin-top:40px;padding:20px}ul.piano-keys{list-style-type:none!important}.piano-keys .key{cursor:pointer;user-select:none;position:relative;text-transform:uppercase}.piano-keys .black{z-index:2;width:44px;height:140px;margin:0 -22px 0 -22px;border-radius:0 0 5px 5px;background:linear-gradient(#333,#000)}.piano-keys .black.active{box-shadow:inset -5px -10px 10px rgb(255 255 255 / .1);background:linear-gradient(to bottom,#000,#434343)}.piano-keys .white{height:230px;width:70px;border-radius:8px;border:1px solid #000;background:linear-gradient(#fff 96%,#eee 4%)}.piano-keys .white.active{box-shadow:inset -5px 5px 20px rgb(0 0 0 / .2);background:linear-gradient(to bottom,#fff 0%,#eee 100%)}.piano-keys .key span{position:absolute;bottom:20px;width:80%;font-size:1.13rem;text-align:center}.piano-keys .black span{bottom:21px;color:#888}.mark{height:25px;width:20px;border-radius:50%}.piano-keys .key span.fullmark{background-color:rgb(255 255 0 / .3);border-radius:4px;padding:2px 4px;transition:background-color 0.3s ease}.hide{display:none!important}.piano-keys .key span.note-label{display:block;bottom:29px}.piano-keys .key span.key-label{display:block;font-size:12px;color:#888;bottom:9px}.toggle-box{background:#252424;padding:10px 15px 20px 15px;border-radius:40px;font-family:sans-serif;color:#00fdfd;margin:0 auto}.keys-checkbox{display:flex;align-items:center;gap:10px;margin:10px 0;font-family:sans-serif;width:100%}.keys-checkbox input{height:30px;width:60px;cursor:pointer;appearance:none;position:relative;background:#4B4B4B}.keys-checkbox input::before{content:"";position:absolute;top:50%;left:5px;width:20px;height:20px;border-radius:50%;background:#8c8c8c;transform:translateY(-50%);transition:all 0.3s ease}.keys-checkbox input:checked::before{left:35px;background:#fff}.switch input{opacity:0;width:0;height:0}.switch{position:relative;display:inline-block;width:65px;height:26px}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:0.4s;border-radius:26px;width:50px}.slider::before{content:"";position:absolute;height:20px;width:20px;left:3px;bottom:3px;background-color:#fff;transition:0.4s;border-radius:50%}.switch input:checked+.slider{background-color:cyan;width:50px}.switch input:checked+.slider::before{transform:translateX(24px)}.reverb-box{background:#252424;padding:10px 15px 20px 15px;border-radius:40px;font-family:sans-serif;color:#00fdfd;margin:0 auto}.reverb-box select{background-color:#252424;color:gold;border:2px solid cyan;border-radius:8px;padding:10px 16px;font-weight:700;font-family:Arial,Helvetica,sans-serif;font-size:14px;outline:none;transition:background-color 0.3s,color 0.3s;width:95px}.ptpiano-wrapper{position:relative;min-height:300px;background:#fff0}.ptpiano-loader{position:absolute;top:0;left:0;width:100%;height:100%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:10}.ptpiano-loader p{margin-top:15px;font-size:14px;font-weight:700;color:#333}.spinner{width:40px;height:40px;border:4px solid #ddd;border-top:4px solid cyan;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@media screen and (max-width:1280px){.wrapper{padding:5px}header{flex-direction:column}header :where(h2,.column){margin-bottom:13px}.piano-header{width:170px!important}.piano-speaker{display:none}.col-center{grid-column:1 / -1;width:100%;padding-left:0;align-items:center}#played-notes{width:120px!important}.wrapper .control{display:block!important}.chord-group{display:block!important;margin:0!important}.chord-option select{display:block;width:100%!important;margin-left:0}.chord-option::before{display:none}.chord-label{display:none}.left-column{width:99%!important}.columnboxpiano{flex-direction:column;align-items:center}.piano-keys .black{height:100px;width:44px;margin:0 -20px 0 -20px}.piano-keys .white{height:180px;width:70px}.piano-keys{display:flex;justify-content:space-between;flex-wrap:nowrap;margin:0!important;padding:0 5px}.piano-keys .white{width:9.5vw;height:140px}.piano-keys .black{width:5vw;height:100px;margin:0 -2.5vw}.right-column{width:98%!important;padding:10px 0}canvas#equalizer{width:95%!important;height:auto!important}.piano-keys .key span{font-size:10px}}
Note: See TracChangeset
for help on using the changeset viewer.