basic-tools

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.

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 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)

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()
  • basic-tools.1709858143.txt.gz
  • Last modified: 2024/03/07 16:35
  • by steve.wang