Home > Steinberg > Music Production System > Steinberg WaveLab 7 Operation Manual Spanish Version

Steinberg WaveLab 7 Operation Manual Spanish Version

Here you can view all the pages of manual Steinberg WaveLab 7 Operation Manual Spanish Version. The Steinberg manuals for Music Production System are available online for free. You can easily download all the documents as PDF.

Page 91

4.9 Crear scripts 77
addMarker(type, name, comment) : añade un marcador en la posición del cursor. type
puede ser una de las opciones siguientes:
generic
temporary
cdTrackStart
cdTrackEnd
cdTrackFrontier
cdTrackIndex
loopStart
loopEnd
muteStart
muteEnd
playbackStarter
regionStart
regionEnd
errorStart
errorEnd
correctionStart
correctionEnd
Ejemplo:
activeWave.addMarker(generic, "SomeName", "SomeComment");
findNextMarkerPosition(posStartSearch, type) : busca el marcador siguiente del tipoa...

Page 92

78 WaveLab Conceptos
Esta función devuelve el ID del primer clip creado o 0.
clipWithName(name) : devuelve el ID del primer clip con nombre 'name' o 0.
clipWithFile(name) : devuelve el ID del primer clip que hace referencia a 'fileName' o 0.
firstClip() : devuelve el ID del primer clip de montaje o 0 si el montaje está vacío.
nextClip(clipId) : devuelve el ID del clip almacenado después de 'clipId' o 0. Los clips no
se colocan a partir de ningún orden especial. El uso de firstClip y...

Page 93

4.9 Crear scripts 79
Subconjunto de ECMAScript admitido
El objeto global
Valores
NaN
Infinity
undefined
Math
Funciones
eval(x)
parseInt(string, radix)
parseFloat(string)
isNaN(number)
isFinite(number)
decodeURI(encodedURI)
decodeURIComponent(encodedURIComponent)
encodeURI(uri)
encodeURIComponent(uriComponent)
Objetos
Object
Function
Array
String
Boolean
Number
Date
RegExp
Error
Ejemplos:
WaveLab 7 

Page 94

80 WaveLab Conceptos
//Test if a value is not a number
var isNumber = isNaN("this is a string");
//Print the result in the log window
logWindow.printInfo(isNumber); //Traces "true" because it is a String
//Convert a string to a number
var numStr = "2.345";
var num = parseFloat(numStr);
//Print the result in the log window
logWindow.printInfo(num);
//Encode a string into an internet valid ASCII String
var str = "a sentence with spaces";
var encodedStr = encodeURI(str);...

Page 95

4.9 Crear scripts 81
Objetos de matriz
Funciones
toString()
toLocaleString()
concat([item1 [, item2 [, ...]]])
join(separator)
pop()
push([item1 [, item2 [, ...]]])
reverse()
shift()
slice(start, end)
sort(comparefn)
splice(start, deleteCount[, item1 [, item2 [, ...]]])
unshift([item1 [, item2 [, ...]]])
Ejemplo:
//Create an empty array
var a = new Array();
//Add some items to it
a.push("first array item");
a.push("next array item", "last array item");
//Print them out in the Log...

Page 96

82 WaveLab Conceptos
match(regexp)
replace(searchValue, replaceValue)
search(regexp)
slice(start, end)
split(separator, limit)
substring(start, end)
toLowerCase()
toLocaleLowerCase()
toUpperCase()
toLocaleUpperCase()
Ejemplo:
//Create a string variable
var str = new String("WaveLab is a powerful editing tool");
//Make it all upper case
var capsStr = str.toUpperCase();
//View the results in the Log window
logWindow.printInfo(capsStr);
Objetos booleanos
Funciones
toString()
valueOf()
Ejemplo:...

Page 97

4.9 Crear scripts 83
Ejemplo:
//Convert a number into exponential notation
var num = new Number(13.3714);
//Show the result in the Log window
logWindow.printInfo(num.toExponential());
Objetos Math
Valores
E
LN10
LN2
LOG2E
LOG10E
PI
SQRT1 2
SQRT2
Funciones
abs(x)
acos(x)
asin(x)
atan(x)
atan2(y, x)
ceil(x)
cos(x)
exp(x)
floor(x)
log(x)
max([value1 [, value2 [, ...]]])
min([value1 [, value2 [, ...]]])
pow(x, y)
random()
round(x)
sin(x)
WaveLab 7 

Page 98

84 WaveLab Conceptos
sqrt(x)
tan(x)
Ejemplos:
//Get a random number from 0 to 1
var r = Math.random();
//Print it out in the log window
logWindow.printInfo(r);
//Trace out Pi in the log window
logWindow.printInfo(Math.PI);
Objetos Date
Funciones
toString()
toDateString()
toTimeString()
toLocaleString()
toLocaleDateString()
toLocaleTimeString()
valueOf()
getTime()
getFullYear()
getUTCFullYear()
getMonth()
getUTCMonth()
getDate()
getUTCDate()
getDay()
getUTCDay()
getHours()
getUTCHours()
getMinutes()...

Page 99

4.9 Crear scripts 85
getMilliseconds()
getUTCMilliseconds()
getTimeZoneOffset()
setTime(time)
setMilliseconds(ms)
setUTCMilliseconds(ms)
setSeconds(sec [, ms])
setUTCSeconds(sec [, ms])
setMinutes(min [, sec [, ms]])
setUTCMinutes(min [, sec [, ms]])
setHours(hour [, min [, sec [, ms]]])
setUTCHours(hour [, min [, sec [, ms]]])
setDate(date)
setUTCDate(date)
setMonth(month [, date])
setUTCMonth(month [, date])
setFullYear(year [, month [, date]])
setUTCFullYear(year [, month [, date]])
toUTCString()...

Page 100

86 WaveLab Conceptos
//Create a new regular expression defining a 5 digit number
var reg = new RegExp(/^\d{5}$/);
//Test a string with it to see if it contains a 5 digit number
var isFiveDigit = reg.test("12345");
//Trace the result to the log window
logWindow.printInfo(isFiveDigit);
Objetos Error
Valores
name
message
Funciones
toString()
Tipos de errores nativos disponibles
EvalError
RangeError
ReferenceError
SyntaxError
TypeError
URIError
Temas relacionados
Lenguaje de secuencia de comandos de...
Start reading Steinberg WaveLab 7 Operation Manual Spanish Version

Related Manuals for Steinberg WaveLab 7 Operation Manual Spanish Version

All Steinberg manuals