@mfcc64/ytms 8.0.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/script.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mfcc64/ytms",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "description": "YouTube Musical Spectrum",
5
5
  "main": "script.mjs",
6
6
  "scripts": {
package/script.mjs CHANGED
@@ -16,7 +16,7 @@
16
16
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
  */
18
18
 
19
- import "../../showcqt-element@1.3.1/showcqt-element.mjs";
19
+ import {ShowCQTElement, AutoResumeAudioContext} from "../../showcqt-element@2/showcqt-element.mjs";
20
20
 
21
21
  (async function(){
22
22
  const current_script = import.meta.url;
@@ -131,7 +131,7 @@ import "../../showcqt-element@1.3.1/showcqt-element.mjs";
131
131
  af_links.shadowRoot.getElementById("message").style.display = "block";
132
132
  });
133
133
 
134
- const cqt = document.createElement("showcqt-element");
134
+ const cqt = new ShowCQTElement(new AutoResumeAudioContext({sampleRate: 48000}));
135
135
  set_fixed_style(cqt, 9999999);
136
136
  cqt.style.left = cqt.style.bottom = 0;
137
137
  cqt.style.width = "100%";