diff --git a/AkaiMPCChordProgressionGenerator/app.js b/AkaiMPCChordProgressionGenerator/app.js index 3804c8f..6ad9f98 100644 --- a/AkaiMPCChordProgressionGenerator/app.js +++ b/AkaiMPCChordProgressionGenerator/app.js @@ -1473,7 +1473,8 @@ function renderProgressions() { if (hasHover) { container.querySelectorAll('.download-btn').forEach(btn => { btn.addEventListener('pointerenter', function() { - showTooltip(this, i18n.t('buttons.download')); + const key = currentContext === 'midi' ? 'tooltips.downloadVariantMidi' : 'tooltips.downloadVariantProgression'; + showTooltip(this, i18n.t(key)); }); btn.addEventListener('pointerleave', function() { const tooltip = document.getElementById('chordTooltip'); @@ -1759,6 +1760,29 @@ document.addEventListener('DOMContentLoaded', async function() { if (tooltip) tooltip.classList.remove('visible'); }); + // Custom tooltip for the MPC Pads context tab + const mpcTab = document.querySelector('.context-tab[data-context="mpc"]'); + mpcTab.addEventListener('pointerenter', function() { + showTooltip(this, i18n.t('tooltips.mpcPads')); + }); + mpcTab.addEventListener('pointerleave', function() { + const tooltip = document.getElementById('chordTooltip'); + if (tooltip) tooltip.classList.remove('visible'); + }); + + // Custom tooltip for the download/print-all button (dynamic based on context) + const downloadAllBtn = document.getElementById('downloadAllBtn'); + downloadAllBtn.addEventListener('pointerenter', function() { + const key = currentContext === 'mpc' ? 'tooltips.downloadAllProgression' + : currentContext === 'midi' ? 'tooltips.downloadAllMidi' + : null; + if (key) showTooltip(this, i18n.t(key)); + }); + downloadAllBtn.addEventListener('pointerleave', function() { + const tooltip = document.getElementById('chordTooltip'); + if (tooltip) tooltip.classList.remove('visible'); + }); + // Custom tooltips for progressionSelect (dynamic based on state) const progressionSelect = document.getElementById('progressionSelect'); progressionSelect.addEventListener('pointerenter', function() { diff --git a/AkaiMPCChordProgressionGenerator/index.html b/AkaiMPCChordProgressionGenerator/index.html index 8071fd9..cb698f1 100644 --- a/AkaiMPCChordProgressionGenerator/index.html +++ b/AkaiMPCChordProgressionGenerator/index.html @@ -28,7 +28,7 @@
- Create musically intelligent chord progressions — view as piano, guitar tabs, or staff notation
+ Create musically intelligent chord progressions — view as piano, guitar tabs, or staff notation
Print chord sheets to jam with others, export MIDI files for DAWs, or export .progression files for Akai MPC
- Found a sample with great chords ? Enter them here to find compatible keys and modes for your production. + Found a sample with great chords ? Enter them here to find compatible keys and modes for your production.