displaying-musicalenvironment-content

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
displaying-musicalenvironment-content [2024/03/10 20:02] steve.wangdisplaying-musicalenvironment-content [2024/03/20 18:35] (current) – [Changing WebSocketServer Port] steve.wang
Line 6: Line 6:
 **Things To Note:** This tutorial assumes you have already installed Konduktiva successfully using the [[https://github.com/renickbell/konduktiva|Konduktiva installation]] instructions and have read through and understood the [[:first_steps|first steps tutorial]]. The tutorial also assumes 2 things. One, Konduktiva has been assigned to the //K// variable. Two, user created a Musical Environment using the //setUpMusicalEnvironment// function using //K.defaultConfigurationObject// as the first argument and //'exampleMidiPlayer'// as the third argument then, assigned the output to the //e// variable. **Things To Note:** This tutorial assumes you have already installed Konduktiva successfully using the [[https://github.com/renickbell/konduktiva|Konduktiva installation]] instructions and have read through and understood the [[:first_steps|first steps tutorial]]. The tutorial also assumes 2 things. One, Konduktiva has been assigned to the //K// variable. Two, user created a Musical Environment using the //setUpMusicalEnvironment// function using //K.defaultConfigurationObject// as the first argument and //'exampleMidiPlayer'// as the third argument then, assigned the output to the //e// variable.
 <code javascript> <code javascript>
-let K = require('./src/combined.js') +const K = require('konduktiva') 
-let e = K.setUpMusicalEnvironment(K.defaultConfigurationObject,4,'exampleMidiPlayer')+let e = K.setUpMusicalEnvironment(K.defaultConfigurationObject,4,'exampleMidiPlayer', K.exampleMusicalEnvironmentsExtraConfig)
 </code> </code>
  
Line 47: Line 47:
 Use the function called changeWebsocketServerPort like so: Use the function called changeWebsocketServerPort like so:
 <code javascript> <code javascript>
 +//assign the webscoket server to a variable:
 +K.wss = K.connectVariableToCurrentWss()
 +
 +//Change the port:
  K.wss = K.changeWebsocketServerPort(8081, K.wss)  K.wss = K.changeWebsocketServerPort(8081, K.wss)
 </code> </code>
  • displaying-musicalenvironment-content.1710126133.txt.gz
  • Last modified: 2024/03/10 20:02
  • by steve.wang