adding-midi-file-to-musical-environment

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
adding-midi-file-to-musical-environment [2024/02/23 23:48] – [Examples] steve.wangadding-midi-file-to-musical-environment [2024/03/20 18:37] (current) steve.wang
Line 3: Line 3:
 **Overview: ** A midi file can be played via Konduktiva. During this process, the midi data will also be convert in forms to normal Konduktiva information (Quantized maps etc.) **Overview: ** A midi file can be played via Konduktiva. During this process, the midi data will also be convert in forms to normal Konduktiva information (Quantized maps etc.)
  
-**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 that you have imported Konduktiva to the //K// variable and assigned any of the example MusicalEnvironments 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> 
 +const K = require('konduktiva'
 +let e = K.setUpMusicalEnvironment(K.defaultConfigurationObject,4,'exampleMidiPlayer', K.exampleMusicalEnvironmentsExtraConfig) 
 +</code>
  
 ===== addMidiFileToMusicalEnvironment ===== ===== addMidiFileToMusicalEnvironment =====
Line 72: Line 76:
 }) })
 </code> </code>
 +
 +CPlayers alone should sound like this:
 +{{ :midi-playback-two-cs.mp3 |}}
 +
 +bwvPlayers alone should sound like this:
 +{{ :midi-playback-bwv849.mp3 |}}
 +
 +scarFairPlayers alone should sound like this: 
 +{{ :midi-playback-scarbrofair.mp3 |}}
 +scarBroPlayers alone should sound like this: 
 +
 +{{ :midi-playback-scarbro.mp3 |}}
  • adding-midi-file-to-musical-environment.1708760907.txt.gz
  • Last modified: 2024/02/23 23:48
  • by steve.wang