This is an old revision of the document!
Basic Tools
Overview: Konduktiva comes with some useful tools not just for music but also for programming in general.
Things To Note: This tutorial assumes you have already installed Konduktiva successfully using the Konduktiva installation instructions and have read through and understood the 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.
All
The All function does what the JavaScript Object.keys does but it has a shorter function call.
The All function takes 1 argument in form of an object and it will return all the keys/variables names in that object.
K.All({a: 2, b: 3, c: 4})
array-toolkit
array-toolkit is a collection of tools that are made for manipulating JavaScript arrays.
It is assigned to the A variable in Konduktiva:
K.A
Run this code to see all functions that come with array-toolkit:
K.all(K.A)
emptyConfigObj
The emptyConfigObj function returns an empty configuration object.
Running the code below will inform you of what each configuration option expects as input.
emptyConfigObj.toString()