Jotham Kingston▸ Task 1 – Finding Objects!


BASS GUITAR AS AN 'OBJECT'

It's object-esque, and I'd probably set up the object differently, but here 'tis.

// Declare object
rbx = new Bass();

//Variables
rbx.E = 41.204; //Hz
rbx.A = 57; //Hz
rbx.D= 78.1 //Hz
rbx.G = 100.2 //Hz
rbx.treble = 0.7 // range from 0 to 1;
rbx.bass = 0.4 // range from 0 to 1;
rbx.volume = 0.8 // range from 0 to 1;
rbx.sweep = -1; // range from -1 to +1;

Functions

bass.tune(scale) {
// scale options include '// insert code here
}

bass.autoFunk(key) {
// e.g. Key = G
// insert code here
}

bass.batteryWarning() {
// insert code here
}

#exploreTask1


G+ Comments

one plus one, 1 comments

  • Jotham Kingston: Not bad for a Religion teacher, hey?

+ There are no comments

Add yours

Leave a Reply