@@ -3,24 +3,24 @@ var WebmoWs = require("webmo-client-nodejs").ws;
3
3
var motor = new WebmoWs ( "webmo.local" ) ;
4
4
motor . onopen = onMotorConnected ;
5
5
// motor.onmessage = (json) => console.log(json);
6
- var SongleWidget = require ( "songle-widget " ) ;
6
+ var Songle = require ( "songle-api " ) ;
7
7
// トークンの情報を取ってくる
8
8
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 ;
15
15
// ビート情報と基本情報をもらってくる
16
- var player = new SongleWidget . Player ( {
16
+ var player = new Songle . Player ( {
17
17
accessToken : settings . tokens . access
18
18
} ) ;
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 ( ) ) ;
24
24
var initialized = false ;
25
25
function onMotorConnected ( ) {
26
26
console . log ( "Webmo: connected" ) ;
0 commit comments