Skip to content

Commit 0bacd99

Browse files
committed
s/widget/api/g
1 parent 27743d7 commit 0bacd99

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"devDependencies": {},
1212
"dependencies": {
1313
"@types/node": "^4.2.11",
14-
"songle-widget": "^1.0.0",
14+
"songle-api": "^1.0.0",
1515
"webmo-client-nodejs": "^0.2.2",
1616
"websocket": "^1.0.24"
1717
}

webmo.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ var WebmoWs = require("webmo-client-nodejs").ws;
33
var motor = new WebmoWs("webmo.local");
44
motor.onopen = onMotorConnected;
55
// motor.onmessage = (json) => console.log(json);
6-
var SongleWidget = require("songle-widget");
6+
var Songle = require("songle-api");
77
// トークンの情報を取ってくる
88
var settings = require("./settings");
9-
// Songle Widget IoMT APIのエンドポイント指定
10-
SongleWidget.System.defaultEndpointWebClientProtocol = "https:";
11-
SongleWidget.System.defaultEndpointWebClientHost = "api.songle.jp";
12-
SongleWidget.System.defaultEndpointWebSocketProtocol = "https:";
13-
SongleWidget.System.defaultEndpointWebSocketHost = "api.songle.jp";
14-
SongleWidget.System.showLogMode = true;
9+
// Songle IoMT APIのエンドポイント指定
10+
Songle.System.defaultEndpointWebClientProtocol = "https:";
11+
Songle.System.defaultEndpointWebClientHost = "api.songle.jp";
12+
Songle.System.defaultEndpointWebSocketProtocol = "https:";
13+
Songle.System.defaultEndpointWebSocketHost = "api.songle.jp";
14+
Songle.System.showLogMode = true;
1515
// ビート情報と基本情報をもらってくる
16-
var player = new SongleWidget.Player({
16+
var player = new Songle.Player({
1717
accessToken: settings.tokens.access
1818
});
19-
player.addPlugin(new SongleWidget.Plugin.Beat());
20-
// player.addPlugin(new SongleWidget.Plugin.Chord());
21-
// player.addPlugin(new SongleWidget.Plugin.Melody());
22-
player.addPlugin(new SongleWidget.Plugin.Chorus());
23-
player.addPlugin(new SongleWidget.Plugin.SongleSync());
19+
player.addPlugin(new Songle.Plugin.Beat());
20+
// player.addPlugin(new Songle.Plugin.Chord());
21+
// player.addPlugin(new Songle.Plugin.Melody());
22+
player.addPlugin(new Songle.Plugin.Chorus());
23+
player.addPlugin(new Songle.Plugin.SongleSync());
2424
var initialized = false;
2525
function onMotorConnected() {
2626
console.log("Webmo: connected");

webmo.ts

+13-13
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@ var motor = new WebmoWs("webmo.local");
44
motor.onopen = onMotorConnected;
55
// motor.onmessage = (json) => console.log(json);
66

7-
var SongleWidget = require("songle-widget");
7+
var Songle = require("songle-api");
88

99
// トークンの情報を取ってくる
1010
var settings = require("./settings");
1111

12-
// Songle Widget IoMT APIのエンドポイント指定
13-
SongleWidget.System.defaultEndpointWebClientProtocol = "https:";
14-
SongleWidget.System.defaultEndpointWebClientHost = "api.songle.jp";
15-
SongleWidget.System.defaultEndpointWebSocketProtocol = "https:";
16-
SongleWidget.System.defaultEndpointWebSocketHost = "api.songle.jp";
17-
SongleWidget.System.showLogMode = true;
12+
// Songle IoMT APIのエンドポイント指定
13+
Songle.System.defaultEndpointWebClientProtocol = "https:";
14+
Songle.System.defaultEndpointWebClientHost = "api.songle.jp";
15+
Songle.System.defaultEndpointWebSocketProtocol = "https:";
16+
Songle.System.defaultEndpointWebSocketHost = "api.songle.jp";
17+
Songle.System.showLogMode = true;
1818

1919
// ビート情報と基本情報をもらってくる
20-
var player = new SongleWidget.Player({
20+
var player = new Songle.Player({
2121
accessToken: settings.tokens.access
2222
});
23-
player.addPlugin(new SongleWidget.Plugin.Beat());
24-
// player.addPlugin(new SongleWidget.Plugin.Chord());
25-
// player.addPlugin(new SongleWidget.Plugin.Melody());
26-
player.addPlugin(new SongleWidget.Plugin.Chorus());
27-
player.addPlugin(new SongleWidget.Plugin.SongleSync());
23+
player.addPlugin(new Songle.Plugin.Beat());
24+
// player.addPlugin(new Songle.Plugin.Chord());
25+
// player.addPlugin(new Songle.Plugin.Melody());
26+
player.addPlugin(new Songle.Plugin.Chorus());
27+
player.addPlugin(new Songle.Plugin.SongleSync());
2828

2929
var initialized = false;
3030
function onMotorConnected() {

0 commit comments

Comments
 (0)