Changeset 3357466
- Timestamp:
- 09/07/2025 05:17:43 PM (7 months ago)
- Location:
- ptpiano/tags/1.2.7
- Files:
-
- 1 added
- 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) (2 diffs)
-
PT_Piano_Setting.php (copied) (copied from ptpiano/trunk/PT_Piano_Setting.php)
-
functions.php (copied) (copied from ptpiano/trunk/functions.php) (3 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.recorder.js (added)
-
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) (2 diffs)
-
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.7/PT_Piano_Player.php
r3356948 r3357466 55 55 <span id="volumeRValue">50</span> 56 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> 57 <div class="button-box"> 58 <button id="recordBtn" type="button" title="Record" class="record-btn"> 59 <span class="record-icon">⏺️</span> Record 60 </button> 61 62 <button id="playBtn" type="button" class="play-btn"> 63 <span class="play-icon">▶️</span> 64 <span class="play-label">Play</span> 65 </button> 66 67 <button id="clearBtn" type="button" title="Clear">❌ Clear</button> 60 68 </div> 61 69 </div> … … 226 234 </li> 227 235 <?php endforeach; ?> 228 </ul> 229 230 231 </div> 236 </ul> 237 </div> 238 232 239 <div class="right-column"> 233 240 -
ptpiano/tags/1.2.7/functions.php
r3356709 r3357466 113 113 114 114 115 / /JS - piano sound115 /* JS - piano sound 116 116 wp_register_script( 117 117 'ptpian-sound', … … 120 120 '1.2.5', 121 121 true 122 ); 122 );*/ 123 124 wp_register_script( 125 'ptpian-sound', 126 PTPIAN_PLUGIN_URL . 'js/piano.sound.js', 127 array('ptpian-recorder'), // ✅ recorder must load first 128 '1.2.5', 129 true 130 ); 123 131 124 132 wp_localize_script('ptpian-sound', 'ptpianData', array( … … 200 208 '1.2.5', 201 209 true 202 ); 210 ); 211 212 // - Record --- 213 //wp_enqueue_script('jsmidgen', 'https://cdn.jsdelivr.net/npm/jsmidgen@0.2.2/jsmidgen.min.js', [], '0.2.2', true); 214 wp_enqueue_script('ptpian-recorder', plugin_dir_url(__FILE__) . 'js/piano.recorder.js', array(), '1.2.7', true); 215 216 wp_localize_script('ptpian-main', 'ajaxurl', admin_url('admin-ajax.php')); 203 217 204 218 -
ptpiano/tags/1.2.7/js/piano.sound.js
r3356709 r3357466 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)}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 pianoRecorder=new PianoRecorder();const recordBtn=document.getElementById("recordBtn");const playBtn=document.getElementById("playBtn");const playIcon=playBtn.querySelector(".play-icon");const playLabel=playBtn.querySelector(".play-label");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);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)}} 3 analyser.connect(audioContext.destination);audio.volume=volumeSlider.value;audio.play();audioSources[key]=source;audio.onended=()=>{source.disconnect();delete audioSources[key]};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 const note=clickedKey?.dataset.note||key;pianoRecorder.recordNote(key,note)} 4 5 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=>{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=""})}) 6 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)}}});recordBtn.addEventListener("click",()=>{if(!pianoRecorder.isRecording){noteDisplay.innerHTML="";pianoRecorder.startRecording();recordBtn.textContent="⏹️ Stop";recordBtn.classList.add("recording");playBtn.disabled=!0;clearBtn.disabled=!0}else{pianoRecorder.stopRecording();recordBtn.textContent="⏺️ Record";recordBtn.classList.remove("recording");playBtn.disabled=!1;clearBtn.disabled=!1}});let isPlaying=!1;noteDisplay.innerHTML="";playBtn.addEventListener("click",()=>{if(!isPlaying){if(noteDisplay.innerHTML!==""){isPlaying=!0;playBtn.classList.add("playing");playIcon.textContent="⏹️";playLabel.textContent="Stop";recordBtn.disabled=!0;clearBtn.disabled=!0;noteDisplay.innerHTML="";pianoRecorder.playRecording(playTune,()=>{isPlaying=!1;playBtn.classList.remove("playing");playIcon.textContent="▶️";playLabel.textContent="Play";recordBtn.disabled=!1;clearBtn.disabled=!1})}else{noteDisplay.innerHTML="No notes to play"}}else{if(isPlaying){isPlaying=!1;pianoRecorder.stopPlayback();playBtn.classList.remove("playing");playIcon.textContent="▶️";playLabel.textContent="Play";recordBtn.disabled=!1;clearBtn.disabled=!1}}});clearBtn.addEventListener("click",()=>{noteDisplay.innerHTML="";if(pianoRecorder.isRecording){pianoRecorder.stopRecording();recordBtn.textContent="⏺️ Record";recordBtn.classList.remove("recording");playBtn.disabled=!1} 7 if(isPlaying){isPlaying=!1;pianoRecorder.stopPlayback();playBtn.classList.remove("playing");playIcon.textContent="▶️";playLabel.textContent="Play";recordBtn.disabled=!1} 8 for(const key in audioSources){try{audioSources[key].disconnect();delete audioSources[key]}catch(e){console.warn(`Error disconnecting source for key ${key}:`,e)}}})}) -
ptpiano/tags/1.2.7/ptpiano.php
r3356948 r3357466 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. 610 * Version: 1.2.7 11 11 * Author: santechidea 12 12 * Author URI: https://wordpress.santechidea.net … … 46 46 $minor_hidden_class = !$res_chordminor ? 'hidden' : ''; 47 47 $dim_hidden_class = !$res_chorddim ? 'hidden' : ''; 48 $agu_hidden_class = !$res_chordagu ? 'hidden' : ''; 48 $agu_hidden_class = !$res_chordagu ? 'hidden' : ''; 49 49 50 50 // Output player wrapper -
ptpiano/tags/1.2.7/readme.txt
r3356948 r3357466 5 5 Tested up to: 6.8 6 6 Requires PHP: 8.0 7 Stable tag: 1.2. 67 Stable tag: 1.2.7 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 47 47 2. Settings Control Option in the admin dashboard. 48 48 3. Settings Piano Option in the admin dashboard. 49 4. Record and Play Piano session in real time. 49 50 50 51 == Changelog == 52 53 = 1.2.7 = 54 55 * UI Enhancements : 56 - Improved the user interface of the PTPiano plugin for better usability and appearance. 57 58 * New Feature : 59 - Record Button : Added a Record button to allow users to record their piano sessions in real-time. 60 61 - Play Button :Introduced a Play button to instantly listen to your recording after capturing it. 62 63 * Security Updates : 64 - Implemented security improvements to make the PTPiano plugin more secure and stable. 51 65 52 66 = 1.2.6 = -
ptpiano/tags/1.2.7/styles/frontend-dynamic.css
r3356948 r3357466 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 .note-label{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 .note-label{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.7/styles/piano.css
r3356948 r3357466 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;max-width:100%;overflow-x:hidden}.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{display:flex;flex-wrap:wrap;align-items:flex-start;overflow-x:hidden;overflow-y:auto;background:#121212;border-radius:8px;padding:8px 12px;height:100px;color:#eee;font-family:monospace;font-size:16px;box-sizing:border-box;gap:6px 8px;line-height:1}#played-notes::-webkit-scrollbar{width:10px}#played-notes::-webkit-scrollbar-track{background:#1e1e1e;border-radius:10px}#played-notes::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#ff6ec4,#7873f5);border-radius:10px;border:2px solid #1e1e1e}#played-notes::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#ff8ec4,#9893f5)}.played-note{display:inline-block;padding:2px 6px;background-color:#2a2a2a;border-radius:4px;white-space:nowrap;margin:0;line-height:1}#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}}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;max-width:100%;overflow-x:hidden}.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{display:flex;flex-wrap:wrap;align-items:flex-start;overflow-x:hidden;overflow-y:auto;background:#121212;border-radius:8px;padding:8px 12px;height:100px;color:#eee;font-family:monospace;font-size:16px;box-sizing:border-box;gap:6px 8px;line-height:1}#played-notes::-webkit-scrollbar{width:10px}#played-notes::-webkit-scrollbar-track{background:#1e1e1e;border-radius:10px}#played-notes::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#ff6ec4,#7873f5);border-radius:10px;border:2px solid #1e1e1e}#played-notes::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#ff8ec4,#9893f5)}.played-note{display:inline-block;padding:2px 6px;background-color:#2a2a2a;border-radius:4px;white-space:nowrap;margin:0;line-height:1}#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}.record-btn{font-size:16px;padding:8px 16px;border:none;background-color:#f0f0f0;color:#333;border-radius:5px;margin:4px;cursor:pointer;transition:background-color 0.2s ease,color 0.2s ease}.record-btn:disabled{background-color:#ccc;color:#888;opacity:.6;cursor:not-allowed}.record-btn:disabled .record-icon{color:#888}.record-btn.recording .record-icon{color:red}.play-btn:disabled{background-color:#ccc;color:#888;border:none;opacity:.6;cursor:not-allowed}.play-btn:disabled .play-icon,.play-btn:disabled .play-label{color:#888}#clearBtn:disabled{background-color:#ccc;color:#888;opacity:.6;cursor:not-allowed;border:none}#clearBtn{transition:background-color 0.2s ease,color 0.2s ease,opacity 0.2s ease}.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.