@mfcc64/ytms 7.2.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.
- package/package.json +1 -1
- package/script.mjs +20 -2
package/package.json
CHANGED
package/script.mjs
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2024 Muhammad Faiz <mfcc64@gmail.com>
|
|
3
|
+
*
|
|
4
|
+
* This library is free software; you can redistribute it and/or
|
|
5
|
+
* modify it under the terms of the GNU Lesser General Public
|
|
6
|
+
* License as published by the Free Software Foundation; either
|
|
7
|
+
* version 3 of the License, or (at your option) any later version.
|
|
8
|
+
*
|
|
9
|
+
* This library is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
12
|
+
* Lesser General Public License for more details.
|
|
13
|
+
*
|
|
14
|
+
* You should have received a copy of the GNU Lesser General Public
|
|
15
|
+
* License along with this library; if not, write to the Free Software
|
|
16
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import {ShowCQTElement, AutoResumeAudioContext} from "../../showcqt-element@2/showcqt-element.mjs";
|
|
2
20
|
|
|
3
21
|
(async function(){
|
|
4
22
|
const current_script = import.meta.url;
|
|
@@ -113,7 +131,7 @@ import "../../showcqt-element@1.3.1/showcqt-element.mjs";
|
|
|
113
131
|
af_links.shadowRoot.getElementById("message").style.display = "block";
|
|
114
132
|
});
|
|
115
133
|
|
|
116
|
-
const cqt =
|
|
134
|
+
const cqt = new ShowCQTElement(new AutoResumeAudioContext({sampleRate: 48000}));
|
|
117
135
|
set_fixed_style(cqt, 9999999);
|
|
118
136
|
cqt.style.left = cqt.style.bottom = 0;
|
|
119
137
|
cqt.style.width = "100%";
|