Sound Blocks

Sounds

{"func":"blockSoundPlayUntilDone"}

Play Sound Until Done

"Play Sound Until Done" plays the specified sound and waits until it is finished before continuing the script.

Parameters:

Soundtrack: This parameter should be one of the sounds you have added to the project under the "sounds" tab.

Related Blocks:
{"func":"blockSoundPlay"} ,     {"func":"blockSoundStopAll"}

Sample Code:
{"func":"registerSpriteTrigger","next":{"func":"blockSoundPlayUntilDone","values":[{"type":"string","value":"female laugh"}]}} Add to my Backpack


{"func":"blockSoundPlay"}

Play Sound

"Play Sound" block plays the specified sound while the current script is executing.

Parameters:

Soundtrack: This parameter should be one of the sounds you have added to the project under the "sounds" tab.

Related Blocks:
{"func":"blockSoundPlayUntilDone"} ,     {"func":"blockSoundStopAll"}

Sample Code:
{"func":"registerBackgroundChange","values":[{"type":"string","value":"Game Over"}],"next":{"func":"blockSoundPlay","values":[{"type":"string","value":"gamesound8"}]}} Add to my Backpack


{"func":"blockSoundStopAll"}

Stop All Sounds

"Stop All Sounds" stops playing every sound in the current program.

Parameters:

None.

Related Blocks:
{"func":"blockSoundPlay"} ,     {"func":"blockSoundPlayUntilDone"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"Game Over"}],"next":{"func":"blockSoundStopAll"}} Add to my Backpack


{"func":"blockSoundChangeVolume"}

Change Volume

"Change Volume" increments the volume by the number specified.

Parameters:

Volume Change: "Change Volume" will increment the volume by the number specified by this parameter. Use a negative number to make the volume lower.

Related Blocks:
{"func":"blockSoundSetVolume"} ,     {"func":"valueSoundVolume"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockControlRepeatUntil","values":[{"type":"wrapper","func":"valueOpNot","values":[{"type":"wrapper","func":"valueVar","name":"Playing"}]}],"containers":[{"func":"blockSoundChangeVolume","values":[{"type":"number","value":"1"}]}]}} Add to my Backpack


{"func":"blockSoundSetVolume"}

Set Volume

"Set Volume" sets the volume as the specified percentage.

Parameters:

Percentage: This parameter is the percentage of the maximum volume that the volume will be set to. The maximum value is 100.

Related Blocks:
{"func":"blockSoundChangeVolume"} ,     {"func":"valueSoundVolume"}

Sample Code:
{"func":"registerSpriteTrigger","next":{"func":"blockSoundSetVolume","values":[{"type":"number","value":"100"}],"next":{"func":"blockSoundSetTempo","values":[{"type":"number","value":"60"}],"next":{"func":"blockSoundPlayDrum","values":[{"type":"choice","value":"35 Acoustic Bass Drum"},{"type":"number","value":"0.2"}]}}}} Add to my Backpack


{"func":"valueSoundVolume"}

Volume

"Volume" returns the project’s current volume.

Parameters:

None.

Related Blocks:
{"func":"blockSoundChangeVolume"} ,     {"func":"blockSoundSetVolume"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueSoundVolume"},{"type":"string","value":"100"}]}],"containers":[{"func":"blockSoundSetVolume","values":[{"type":"number","value":"0"}]}]} Add to my Backpack


{"func":"blockSoundPlayUntilDone"}

Tocar sonido hasta que termine

"Tocar sonido hasta que termine" reproduce el sonido especificado y espera a que termine de sonar antes de continuar con la secuencia de comandos.

Parameters:

Banda de sonido: este parámetro debe ser uno de los sonidos que añadiste al proyecto en la pestaña "Sonidos".

Related Blocks:
{"func":"blockSoundPlay"} ,     {"func":"blockSoundStopAll"}

Sample Code:
{"func":"registerSpriteTrigger","next":{"func":"blockSoundPlayUntilDone","values":[{"type":"string","value":"female laugh"}]}} Add to my Backpack


{"func":"blockSoundPlay"}

Tocar sonido

El bloque "tocar sonido" reproduce el sonido especificado mientras se ejecuta la secuencia de comandos actual.

Parameters:

Banda de sonido: este parámetro debe ser uno de los sonidos que añadiste al proyecto en la pestaña "Sonidos".

Related Blocks:
{"func":"blockSoundPlayUntilDone"} ,     {"func":"blockSoundStopAll"}

Sample Code:
{"func":"registerBackgroundChange","values":[{"type":"string","value":"Game Over"}],"next":{"func":"blockSoundPlay","values":[{"type":"string","value":"gamesound8"}]}} Add to my Backpack


{"func":"blockSoundStopAll"}

Detener todos los sonidos

"Detener todos los sonidos" deja de reproducir todos los sonidos del programa actual.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockSoundPlay"} ,     {"func":"blockSoundPlayUntilDone"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"Game Over"}],"next":{"func":"blockSoundStopAll"}} Add to my Backpack


{"func":"blockSoundChangeVolume"}

Cambiar volumen

"Cambiar volumen" incrementa el volumen en el valor indicado.

Parameters:

Cambiar volumen: "Cambiar volumen" incrementará el volumen en la cantidad indicada en este parámetro. Utiliza un número negativo para bajar el volumen.

Related Blocks:
{"func":"blockSoundSetVolume"} ,     {"func":"valueSoundVolume"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockControlRepeatUntil","values":[{"type":"wrapper","func":"valueOpNot","values":[{"type":"wrapper","func":"valueVar","name":"Playing"}]}],"containers":[{"func":"blockSoundChangeVolume","values":[{"type":"number","value":"1"}]}]}} Add to my Backpack


{"func":"blockSoundSetVolume"}

Fijar volumen

"Fijar volumen" fija el volumen al porcentaje especificado.

Parameters:

Porcentaje: este parámetro es el porcentaje en que aumentará el volumen. Utiliza un número menor a 100 para disminuir el volumen.

Related Blocks:
{"func":"blockSoundChangeVolume"} ,     {"func":"valueSoundVolume"}

Sample Code:
{"func":"registerSpriteTrigger","next":{"func":"blockSoundSetVolume","values":[{"type":"number","value":"100"}],"next":{"func":"blockSoundSetTempo","values":[{"type":"number","value":"60"}],"next":{"func":"blockSoundPlayDrum","values":[{"type":"choice","value":"35 Acoustic Bass Drum"},{"type":"number","value":"0.2"}]}}}} Add to my Backpack


{"func":"valueSoundVolume"}

Volumen

"Volumen" devuelve el volumen actual del proyecto.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockSoundChangeVolume"} ,     {"func":"blockSoundSetVolume"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueSoundVolume"},{"type":"string","value":"100"}]}],"containers":[{"func":"blockSoundSetVolume","values":[{"type":"number","value":"0"}]}]} Add to my Backpack


Hardware

{ "_id": "uDzLdMr9tn", "func": "blockSoundPlayDrum", "tags": [ "music" ], "values": [ { "type": "choice", "value": "35 Acoustic Bass Drum" }, { "type": "number", "value": "0.2" } ], "x": 40, "y": 409}

Play Drum for Beats until done

"Play Drum for Beats until done" plays the specified kind of drum for the specified number of beats, and waits until it is finished before continuing the script.

Parameters:

Drum type: This parameter is the type of drum you want to play. There are many options to choose from.

NumBeats: This parameter is the number of beats you want the drum to play for.

Related Blocks:
{"func":"blockSoundPlayDrumNonBlocking"} ,     {"func":"blockSoundRest"} ,     {"func":"blockSoundSetTempo"}

Sample Code:
{ "_id": "yJZioVqweQ", "func": "registerSpriteTrigger", "values": [], "next": { "_id": "MGzZjX6MmJ", "func": "blockSoundSetTempo", "values": [ { "type": "number", "value": 120 } ], "next": { "_id": "M2nhKVRu1W", "func": "blockSoundPlayDrum", "values": [ { "type": "choice", "value": "35 Acoustic Bass Drum" }, { "type": "number", "value": 0.5 } ], "next": { "_id": "TgPn7JAIrQ", "func": "blockSoundPlayDrum", "values": [ { "type": "choice", "value": "42 Closed Hi Hat" }, { "type": "number", "value": 0.5 } ], "next": { "_id": "5fGOfR3J5V", "func": "blockSoundPlayDrum", "values": [ { "type": "choice", "value": "39 Hand Clap" }, { "type": "number", "value": 0.5 } ], "next": { "_id": "47O3tJPsz2", "func": "blockSoundPlayDrum", "values": [ { "type": "choice", "value": "42 Closed Hi Hat" }, { "type": "number", "value": 0.5 } ] } } } } }, "x": 88, "y": 86.83334350585932} Add to my Backpack


{ "_id": "AW3YrKZCtD", "func": "blockSoundPlayDrumNonBlocking", "tags": [ "music" ], "values": [ { "type": "choice", "value": "35 Acoustic Bass Drum" }, { "type": "number", "value": "0.2" } ], "x": 40, "y": 350}

Play Drum for Beats

"Play Drum for Beats" plays the specified kind of drum for the specified number of beats while the current script is executing.

Parameters:

Drum type: This parameter is the type of drum you want to play. There are many options to choose from.

NumBeats: This parameter is the number of beats you want the drum to play for.

Related Blocks:
{"func":"blockSoundPlayDrum"} ,     {"func":"blockSoundRest"} ,     {"func":"blockSoundSetTempo"}

Sample Code:
{ "_id": "yJZioVqweQ", "func": "registerSpriteTrigger", "values": [], "next": { "_id": "MGzZjX6MmJ", "func": "blockSoundSetTempo", "values": [ { "type": "number", "value": 120 } ], "next": { "_id": "3Xa0028wPj", "func": "blockControlRepeat", "tags": [ "loop", "finite loop", "repitition" ], "values": [ { "type": "number", "value": 4 } ], "containers": [ { "_id": "gjSTV3nVSf", "func": "blockSoundPlayDrumNonBlocking", "tags": [ "music" ], "values": [ { "type": "choice", "value": "51 Ride Cymbal 1" }, { "type": "number", "value": 0.5 } ], "next": { "_id": "9qLFMaEpeS", "func": "blockSoundRest", "tags": [ "music" ], "values": [ { "type": "number", "value": 0.5 } ], "next": { "_id": "QMSOtiP7EL", "func": "blockSoundPlayDrumNonBlocking", "tags": [ "music" ], "values": [ { "type": "choice", "value": "51 Ride Cymbal 1" }, { "type": "number", "value": 0.5 } ], "next": { "_id": "aq0kXeQLbz", "func": "blockSoundPlayDrumNonBlocking", "tags": [ "music" ], "values": [ { "type": "choice", "value": "44 Pedal Hi-Hat" }, { "type": "number", "value": 0.5 } ], "next": { "_id": "5VMGIes6S5", "func": "blockSoundRest", "tags": [ "music" ], "values": [ { "type": "number", "value": 0.5 } ] } } } } } ] } }, "x": 88, "y": 6.149999999999949} Add to my Backpack


{ "_id": "8Lsck8PZOS", "func": "blockSoundRest", "tags": [ "music" ], "values": [ { "type": "number", "value": "0.2" } ], "x": 59, "y": 471.00000000000006}

Rest for Beats

"Rest for Beats" stops playing for the specified number of beats, and waits until that number of beats has passed before continuing the script.

Parameters:

NumBeats: This parameter is the number of beats you want the drums or instrument to rest for.

Related Blocks:
{"func":"blockSoundPlayDrum"} ,     {"func":"blockSoundPlayDrumNonBlocking"} ,     {"func":"blockSoundPlayNote"} ,     {"func":"blockSoundPlayNoteNonBlocking"}

Sample Code:
{ "_id": "yJZioVqweQ", "func": "registerSpriteTrigger", "values": [], "next": { "_id": "OB2UD6CiRg", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "1 Acoustic Grand Piano" } ], "next": { "_id": "J9JorQ257s", "func": "blockControlRepeat", "tags": [ "loop", "finite loop", "repitition" ], "values": [ { "type": "number", "value": 4 } ], "containers": [ { "_id": "8VBFKK0btC", "func": "blockSoundPlayNoteNonBlocking", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": "0.5" } ], "next": { "_id": "OowozOkubZ", "func": "blockSoundRest", "tags": [ "music" ], "values": [ { "type": "number", "value": 0.5 } ] } } ] } }, "x": 43, "y": 505.8333435058594} Add to my Backpack


{ "_id": "lW06lQtl5z", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": "0.5" } ], "x": 59, "y": 533}

Play Note for Beats until done

"Play Note for Beats until done" plays the specified note for the specified number of beats and waits until it is finished before continuing the script.

Parameters:

Pitch: This parameter is a number indicating how high or low you want to play a note on the scale.

NumBeats: This parameter is the number of beats you want to note to play.

Related Blocks:
{"func":"blockSoundRest"} ,     {"func":"blockSoundPlayNoteNonBlocking"} ,     {"func":"blockSoundSetInstrument"}

Sample Code:
{ "_id": "RmU1msccWf", "func": "registerSpriteTrigger", "values": [], "next": { "_id": "QQijUSuS6M", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "1 Acoustic Grand Piano" } ], "next": { "_id": "Dnn5cnsfhJ", "func": "blockControlRepeat", "tags": [ "loop", "finite loop", "repitition" ], "values": [ { "type": "number", "value": 4 } ], "containers": [ { "_id": "SQc7N7xS4v", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": "0.5" } ] } ] } }, "x": 371, "y": 449.5} Add to my Backpack


{ "_id": "RmazaVF7o5", "func": "blockSoundPlayNoteNonBlocking", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": "0.5" } ], "x": 399, "y": 523}

Play Note for Beats

"Play Note for Beats" plays the specified note for the specified number of beats while the script is executing.

Parameters:

Pitch: This parameter is a number indicating how high or low you want to play a note on the scale.

NumBeats: This parameter is the number of beats you want to note to play.

Related Blocks:
{"func":"blockSoundRest"} ,     {"func":"blockSoundPlayNote"} ,     {"func":"blockSoundSetInstrument"}

Sample Code:
{ "_id": "yJZioVqweQ", "func": "registerSpriteTrigger", "values": [], "next": { "_id": "OB2UD6CiRg", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "1 Acoustic Grand Piano" } ], "next": { "_id": "J9JorQ257s", "func": "blockControlRepeat", "tags": [ "loop", "finite loop", "repitition" ], "values": [ { "type": "number", "value": 4 } ], "containers": [ { "_id": "8VBFKK0btC", "func": "blockSoundPlayNoteNonBlocking", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": "0.5" } ], "next": { "_id": "OowozOkubZ", "func": "blockSoundRest", "tags": [ "music" ], "values": [ { "type": "number", "value": 0.5 } ] } } ] } }, "x": 43, "y": 505.8333435058594} Add to my Backpack


{ "_id": "IfwxsMjaKF", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "1 Acoustic Grand Piano" } ], "x": 40, "y": 645}

Set Instrument to

"Set Instrument to" sets the current instrument to the instrument specified by the parameter.

Parameters:

Instrument: you have many instrument options to choose from for this parameter, including "Acoustic Grand Piano," "Xylophone," "Percussive Organ," and more.

Related Blocks:
{"func":"blockSoundRest"} ,     {"func":"blockSoundPlayNote"} ,     {"func":"blockSoundPlayNoteNonBlocking"}

Sample Code:
{ "_id": "RmU1msccWf", "func": "registerSpriteTrigger", "values": [], "next": { "_id": "QQijUSuS6M", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "1 Acoustic Grand Piano" } ], "next": { "_id": "SQc7N7xS4v", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": 2 } ], "next": { "_id": "kQcoYwoLOL", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "41 Violin" } ], "next": { "_id": "0rWZF6xlaE", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": 64 }, { "type": "number", "value": 2 } ] } } } }, "x": 355.00000000000006, "y": 522.2999999999979} Add to my Backpack


{ "_id": "HisLeshTxo", "func": "blockSoundChangeTempo", "tags": [ "music" ], "values": [ { "type": "number", "value": "20" } ], "x": 40, "y": 704}

Change Tempo by

"Change Tempo by" changes the project's tempo by the specified number of beats per minute.

Parameters:

Tempo Change: The tempo will increase by this number. Use a negative number to make the tempo slower.

Related Blocks:
{"func":"blockSoundSetTempo"} ,     {"func":"valueSoundTempo"}

Sample Code:
{"func":"blockSoundChangeTempo","values":[{"type":"number","value":"20"}],"next":{"func":"blockSoundRest","values":[{"type":"number","value":"0.2"}],"next":{"func":"blockSoundSetInstrument","values":[{"type":"choice","value":"1 Acoustic Grand Piano"}],"next":{"func":"blockSoundPlayNote","values":[{"type":"number","value":"60"},{"type":"number","value":"10"}]}}}} Add to my Backpack


{ "_id": "9M6kv6NS7L", "func": "blockSoundSetTempo", "tags": [ "music" ], "values": [ { "type": "number", "value": "60" } ], "x": 39.999999999999986, "y": 763}

Set Tempo to BPM

"Set Tempo to BPM" sets the project's tempo to the specified number of beats per minute.

Parameters:

BPM: The tempo will be set to this parameter, a number that indicates how many beats per minute your instruments should play.

Related Blocks:
{"func":"blockSoundChangeTempo"} ,     {"func":"valueSoundTempo"}

Sample Code:
{ "_id": "RmU1msccWf", "func": "registerSpriteTrigger", "values": [], "next": { "_id": "zGaeAo7gdw", "func": "blockSoundSetTempo", "tags": [ "music" ], "values": [ { "type": "number", "value": 120 } ], "next": { "_id": "Dnn5cnsfhJ", "func": "blockControlRepeat", "tags": [ "loop", "finite loop", "repitition" ], "values": [ { "type": "number", "value": 4 } ], "containers": [ { "_id": "QQijUSuS6M", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "1 Acoustic Grand Piano" } ], "next": { "_id": "SQc7N7xS4v", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": 1 } ] } } ] } }, "x": 355.00000000000006, "y": 522.2999999999979} Add to my Backpack


{ "_id": "0veRweuSc5", "type": "wrapper", "func": "valueSoundTempo", "tags": [ "music" ], "values": [], "x": 40, "y": 822}

Tempo

"Tempo" returns the current project's tempo

Parameters:

None.

Related Blocks:
{"func":"blockSoundChangeTempo"} ,     {"func":"blockSoundSetTempo"}

Sample Code:
{ "_id": "YkrjRo2AXc", "func": "registerFlagTrigger", "tags": [ "hat block", "event", "start", "begin", "program", "play" ], "values": [], "next": { "_id": "vap1C3OpQ7", "func": "blockSoundSetTempo", "tags": [ "music" ], "values": [ { "type": "number", "value": 150 } ], "next": { "_id": "tHJwVDiz6G", "func": "blockLooksSayFor", "tags": [ "bubble", "talk", "output", "time" ], "values": [ { "_id": "NJnJFgfFt8", "type": "wrapper", "func": "valueSoundTempo", "tags": [ "music" ], "values": [] }, { "type": "number", "value": "2" } ] } }, "x": 26, "y": 741} Add to my Backpack


{ "_id": "0iPMwV8sna", "func": "blockSetEffectTo", "tags": [ "music" ], "values": [ { "type": "choice", "value": "Reverb" }, { "type": "number", "value": "100" } ], "x": 56, "y": 1023.6666870117188}

Set Effect to

"Set Effect to" sets the specified audio effect to the specified value.

Parameters:

Effect: This parameter indicates what type of audio effect you want to set. Options include "reverb", "echo", and "distortion".

Intensity: This parameter is a number that indicates the intensity of the effect.

Related Blocks:
{"func":"blockChangeEffectBy"} ,     {"func":"blockClearEffects"}

Sample Code:
{ "_id": "YkrjRo2AXc", "func": "registerFlagTrigger", "tags": [ "hat block", "event", "start", "begin", "program", "play" ], "values": [], "next": { "_id": "4Zg66iWey0", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "1 Acoustic Grand Piano" } ], "next": { "_id": "Z3HCHOk6qS", "func": "blockSetEffectTo", "tags": [ "music" ], "values": [ { "type": "choice", "value": "Reverb" }, { "type": "number", "value": 0 } ], "next": { "_id": "w8qOL7Qbe5", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": 1 } ], "next": { "_id": "7kZeCU3Z3H", "func": "blockSoundRest", "tags": [ "music" ], "values": [ { "type": "number", "value": 1 } ], "next": { "_id": "l9Bm9uHunV", "func": "blockSetEffectTo", "tags": [ "music" ], "values": [ { "type": "choice", "value": "Reverb" }, { "type": "number", "value": "100" } ], "next": { "_id": "z9FIB2tNFN", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": 60 }, { "type": "number", "value": 1 } ] } } } } } }, "x": 26, "y": 746.7249999999988} Add to my Backpack


{ "_id": "OqdAF9w61M", "func": "blockChangeEffectBy", "tags": [ "music" ], "values": [ { "type": "choice", "value": "Reverb" }, { "type": "number", "value": "10" } ], "x": 42, "y": 1095}

Change Effect by

"Change Effect by" changes the specified audio effect by the specified value.

Parameters:

Effect: This parameter indicates what type of audio effect you want to set. Options include "reverb", "echo", and "distortion".

Intensity: This parameter is a number that indicates the intensity of the effect.

Related Blocks:
{"func":"blockSetEffectTo"} ,     {"func":"blockClearEffects"}

Sample Code:
{ "_id": "3o5UBW1qUX", "func": "registerFlagTrigger", "values": [], "next": { "_id": "RDVBtoeNK5", "func": "blockClearEffects", "tags": [ "music" ], "values": [], "next": { "_id": "Va1wYOmr1S", "func": "blockSetEffectTo", "tags": [ "music" ], "values": [ { "type": "choice", "value": "Distortion" }, { "type": "number", "value": 0 } ], "next": { "_id": "wzSe3I52MG", "func": "blockControlRepeat", "tags": [ "loop", "finite loop", "repitition" ], "values": [ { "type": "number", "value": 4 } ], "containers": [ { "_id": "cAqicZy9xc", "func": "blockSoundPlayDrum", "tags": [ "music" ], "values": [ { "type": "choice", "value": "45 Low Tom" }, { "type": "number", "value": 1 } ], "next": { "_id": "llkG7IC8nL", "func": "blockChangeEffectBy", "tags": [ "music" ], "values": [ { "type": "choice", "value": "Distortion" }, { "type": "number", "value": 25 } ] } } ] } } }, "x": 54.00000000000006, "y": 1325.3333740234375} Add to my Backpack


{ "_id": "8vhPYhUXmM", "func": "blockClearEffects", "tags": [ "music" ], "values": [], "x": 48, "y": 1159.3333740234375}

Clear Effects

"Clear Effects" resets all the audio effects of the current script.

Parameters:

None.

Related Blocks:
{"func":"blockSetEffectTo"} ,     {"func":"blockChangeEffectBy"}

Sample Code:
{ "_id": "JxxXkdx2PM", "func": "registerFlagTrigger", "values": [], "next": { "_id": "UexetZ15Zo", "func": "blockClearEffects", "tags": [ "music" ], "values": [], "next": { "_id": "Gc9mROvUy0", "func": "blockSetEffectTo", "tags": [ "music" ], "values": [ { "type": "choice", "value": "Distortion" }, { "type": "number", "value": 50 } ], "next": { "_id": "xhFXdMrvEq", "func": "blockSoundPlayDrum", "tags": [ "music" ], "values": [ { "type": "choice", "value": "45 Low Tom" }, { "type": "number", "value": 2 } ], "next": { "_id": "KG8YfMxREq", "func": "blockClearEffects", "tags": [ "music" ], "values": [], "next": { "_id": "d5c0vGdNnc", "func": "blockSetEffectTo", "tags": [ "music" ], "values": [ { "type": "choice", "value": "Echo" }, { "type": "number", "value": 50 } ], "next": { "_id": "EnxWGRDRo4", "func": "blockSoundPlayDrum", "tags": [ "music" ], "values": [ { "type": "choice", "value": "45 Low Tom" }, { "type": "number", "value": 2 } ] } } } } } }, "x": 366, "y": 1608.5} Add to my Backpack


{ "_id": "LB7Bynxzbg", "func": "blockSetEchoDelayTo", "tags": [ "music" ], "values": [ { "type": "number", "value": "0.5" } ], "x": 34, "y": 1243.6666870117188}

Set Echo Delay to Beats

"Set Echo Delay to Beats" sets the echo delay time of the echo effect to the specified number of beats.

Parameters:

NumBeats: this parameter will determine how many beats behind a played note the echo will be.

Related Blocks:
{"func":"blockSetEffectTo"} ,     {"func":"blockChangeEffectBy"} ,     {"func":"blockClearEffects"}

Sample Code:
{ "_id": "JxxXkdx2PM", "func": "registerFlagTrigger", "values": [], "next": { "_id": "UexetZ15Zo", "func": "blockClearEffects", "tags": [ "music" ], "values": [], "next": { "_id": "d5c0vGdNnc", "func": "blockSetEffectTo", "tags": [ "music" ], "values": [ { "type": "choice", "value": "Echo" }, { "type": "number", "value": 50 } ], "next": { "_id": "t4xXRBwBoj", "func": "blockControlScriptVar", "tags": [ "variable", "variables" ], "cat": "var", "label": "script variables {scriptvar:i}{varargs:valueScriptVar}", "values": [ { "_id": "SaYlSg06tA", "type": "wrapper", "func": "valueScriptVar", "name": "i" } ], "next": { "_id": "BkJFIyVPZq", "func": "blockVarSet", "tags": [ "variable", "variables" ], "values": [ { "type": "string", "value": "i" }, { "type": "string", "value": "1" } ], "next": { "_id": "IJWs84OVs6", "func": "blockControlRepeat", "tags": [ "loop", "finite loop", "repitition" ], "values": [ { "type": "number", "value": "10" } ], "containers": [ { "_id": "EnxWGRDRo4", "func": "blockSoundPlayDrum", "tags": [ "music" ], "values": [ { "type": "choice", "value": "45 Low Tom" }, { "type": "number", "value": 2 } ], "next": { "_id": "OrQJtmf3pT", "func": "blockSetEchoDelayTo", "tags": [ "music" ], "values": [ { "_id": "tjKcVlK0nM", "type": "wrapper", "func": "valueOpDivide", "tags": [ "divide by", "division" ], "values": [ { "type": "number", "value": 1 }, { "_id": "aIKypfza4k", "type": "wrapper", "func": "valueScriptVar", "name": "i" } ] } ], "next": { "_id": "NHpAi2Lt2t", "func": "blockVarChangeBy", "tags": [ "variable", "variables" ], "values": [ { "type": "string", "value": "i" }, { "type": "number", "value": "1" } ] } } } ] } } } } }, "x": 19, "y": 1670.5} Add to my Backpack


{ "_id": "8dOiABAIMu", "type": "wrapper", "func": "valueSoundInstrumentId", "tags": [ "music" ], "values": [], "x": 81.98497009277344, "y": 496}

Instrument id

"Instrument id" returns the current instrument's id number as an integer. Returns 1 if no instrument was set.

Parameters:

None.

Related Blocks:
{"func":"blockSoundSetInstrument"} ,     {"func":"valueSoundInstrumentName"}

Sample Code:
{ "_id": "1mEQkBwbNb", "func": "registerFlagTrigger", "values": [], "next": { "_id": "NFF2zLfcFH", "func": "blockControlScriptVar", "tags": [ "variable", "variables" ], "cat": "var", "label": "script variables {scriptvar:instrument number}{varargs:valueScriptVar}", "values": [ { "_id": "2AqLBcGKDV", "type": "wrapper", "func": "valueScriptVar", "name": "instrument number" } ], "next": { "_id": "qToVYuzPjf", "func": "blockVarSet", "tags": [ "variable", "variables" ], "values": [ { "type": "string", "value": "instrument number" }, { "type": "string", "value": "1" } ], "next": { "_id": "UqAjXuf3xv", "func": "blockControlRepeat", "tags": [ "loop", "finite loop", "repitition" ], "values": [ { "type": "number", "value": 127 } ], "containers": [ { "_id": "QkUs7TBIVH", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "_id": "p2QEYusoLf", "type": "wrapper", "func": "valueScriptVar", "name": "instrument number" } ], "next": { "_id": "PAfTPZlv7o", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": 0.5 } ], "next": { "_id": "DEWC6yd7GS", "func": "blockLooksSay", "tags": [ "talk" ], "values": [ { "_id": "fhvjnnA1Uy", "type": "wrapper", "func": "valueSoundInstrumentId", "tags": [ "music" ], "values": [] }, { "type": "string", "value": ": " }, { "_id": "xAu3fgOW6Q", "type": "wrapper", "func": "valueSoundInstrumentName", "tags": [ "music" ], "values": [] } ], "next": { "_id": "P6tthKQvtL", "func": "blockVarChangeBy", "tags": [ "variable", "variables" ], "values": [ { "type": "string", "value": "instrument number" }, { "type": "number", "value": "1" } ] } } } } ] } } }, "x": 30, "y": 30} Add to my Backpack


{ "_id": "3LB1CprSxb", "type": "wrapper", "func": "valueSoundInstrumentName", "tags": [ "music" ], "values": [], "x": 206.7088623046875, "y": 496}

Instrument name

"Instrument name" returns the current instrument's name in the script as a string without the number prefix.

Parameters:

None.

Related Blocks:
{"func":"blockSoundSetInstrument"} ,     {"func":"valueSoundInstrumentId"}

Sample Code:
{ "_id": "1mEQkBwbNb", "func": "registerFlagTrigger", "values": [], "next": { "_id": "NFF2zLfcFH", "func": "blockControlScriptVar", "tags": [ "variable", "variables" ], "cat": "var", "label": "script variables {scriptvar:instrument number}{varargs:valueScriptVar}", "values": [ { "_id": "2AqLBcGKDV", "type": "wrapper", "func": "valueScriptVar", "name": "instrument number" } ], "next": { "_id": "qToVYuzPjf", "func": "blockVarSet", "tags": [ "variable", "variables" ], "values": [ { "type": "string", "value": "instrument number" }, { "type": "string", "value": "1" } ], "next": { "_id": "UqAjXuf3xv", "func": "blockControlRepeat", "tags": [ "loop", "finite loop", "repitition" ], "values": [ { "type": "number", "value": 127 } ], "containers": [ { "_id": "QkUs7TBIVH", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "_id": "p2QEYusoLf", "type": "wrapper", "func": "valueScriptVar", "name": "instrument number" } ], "next": { "_id": "PAfTPZlv7o", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": 0.5 } ], "next": { "_id": "DEWC6yd7GS", "func": "blockLooksSay", "tags": [ "talk" ], "values": [ { "_id": "fhvjnnA1Uy", "type": "wrapper", "func": "valueSoundInstrumentId", "tags": [ "music" ], "values": [] }, { "type": "string", "value": ": " }, { "_id": "xAu3fgOW6Q", "type": "wrapper", "func": "valueSoundInstrumentName", "tags": [ "music" ], "values": [] } ], "next": { "_id": "P6tthKQvtL", "func": "blockVarChangeBy", "tags": [ "variable", "variables" ], "values": [ { "type": "string", "value": "instrument number" }, { "type": "number", "value": "1" } ] } } } } ] } } }, "x": 30, "y": 30} Add to my Backpack


{ "_id": "uDzLdMr9tn", "func": "blockSoundPlayDrum", "tags": [ "music" ], "values": [ { "type": "choice", "value": "35 Acoustic Bass Drum" }, { "type": "number", "value": "0.2" } ], "x": 40, "y": 409}

Tocar percusión

"Tocar percusión" reproduce el tipo de sonido de percusión especificado durante el número indicado de pulsos.

Parameters:

Tipo de percusión: este parámetro es el tipo de percusión que deseas reproducir. Hay muchas opciones para elegir.

NumPulsos: este parámetro es el tiempo que quieres que suene la percusión, en pulsos.

Related Blocks:
{"func":"blockSoundPlayDrumNonBlocking"} ,     {"func":"blockSoundRest"} ,     {"func":"blockSoundSetTempo"}

Sample Code:
{ "_id": "yJZioVqweQ", "func": "registerSpriteTrigger", "values": [], "next": { "_id": "MGzZjX6MmJ", "func": "blockSoundSetTempo", "values": [ { "type": "number", "value": 120 } ], "next": { "_id": "M2nhKVRu1W", "func": "blockSoundPlayDrum", "values": [ { "type": "choice", "value": "35 Acoustic Bass Drum" }, { "type": "number", "value": 0.5 } ], "next": { "_id": "TgPn7JAIrQ", "func": "blockSoundPlayDrum", "values": [ { "type": "choice", "value": "42 Closed Hi Hat" }, { "type": "number", "value": 0.5 } ], "next": { "_id": "5fGOfR3J5V", "func": "blockSoundPlayDrum", "values": [ { "type": "choice", "value": "39 Hand Clap" }, { "type": "number", "value": 0.5 } ], "next": { "_id": "47O3tJPsz2", "func": "blockSoundPlayDrum", "values": [ { "type": "choice", "value": "42 Closed Hi Hat" }, { "type": "number", "value": 0.5 } ] } } } } }, "x": 88, "y": 86.83334350585932} Add to my Backpack


{ "_id": "8Lsck8PZOS", "func": "blockSoundRest", "tags": [ "music" ], "values": [ { "type": "number", "value": "0.2" } ], "x": 59, "y": 471.00000000000006}

Silencio por pulsos

"Silencio por pulsos" deja de tocar sonidos durante el número especificado de pulsos.

Parameters:

NumPulsos: este parámetro es el número de pulsos que quieres hacer silencio.

Related Blocks:
{"func":"blockSoundPlayDrum"} ,     {"func":"blockSoundPlayDrumNonBlocking"} ,     {"func":"blockSoundPlayNote"} ,     {"func":"blockSoundPlayNoteNonBlocking"}

Sample Code:
{ "_id": "yJZioVqweQ", "func": "registerSpriteTrigger", "values": [], "next": { "_id": "OB2UD6CiRg", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "1 Acoustic Grand Piano" } ], "next": { "_id": "J9JorQ257s", "func": "blockControlRepeat", "tags": [ "loop", "finite loop", "repitition" ], "values": [ { "type": "number", "value": 4 } ], "containers": [ { "_id": "8VBFKK0btC", "func": "blockSoundPlayNoteNonBlocking", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": "0.5" } ], "next": { "_id": "OowozOkubZ", "func": "blockSoundRest", "tags": [ "music" ], "values": [ { "type": "number", "value": 0.5 } ] } } ] } }, "x": 43, "y": 505.8333435058594} Add to my Backpack


{ "_id": "lW06lQtl5z", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": "0.5" } ], "x": 59, "y": 533}

Tocar nota

"Tocar nota" toca la nota especificada durante la cantidad indicada de pulsos.

Parameters:

Nota: este parámetro es una nota, indicada por un número. Cuanto mayor es el número, más aguda es la nota.

NumPulsos: este parámetro es la duración de la nota, en pulsos.

Related Blocks:
{"func":"blockSoundRest"} ,     {"func":"blockSoundPlayNoteNonBlocking"} ,     {"func":"blockSoundSetInstrument"}

Sample Code:
{ "_id": "RmU1msccWf", "func": "registerSpriteTrigger", "values": [], "next": { "_id": "QQijUSuS6M", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "1 Acoustic Grand Piano" } ], "next": { "_id": "Dnn5cnsfhJ", "func": "blockControlRepeat", "tags": [ "loop", "finite loop", "repitition" ], "values": [ { "type": "number", "value": 4 } ], "containers": [ { "_id": "SQc7N7xS4v", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": "0.5" } ] } ] } }, "x": 371, "y": 449.5} Add to my Backpack


{ "_id": "IfwxsMjaKF", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "1 Acoustic Grand Piano" } ], "x": 40, "y": 645}

Fijar instrumento

"Fijar instrumento" configura como instrumento actual al instrumento especificado por el parámetro.

Parameters:

Instrumento: puedes elegir entre varias opciones de instrumentos para este parámetro, incluyendo "Gran piano acústico", "Xilofón", "Órgano percusivo" y otros.

Related Blocks:
{"func":"blockSoundRest"} ,     {"func":"blockSoundPlayNote"} ,     {"func":"blockSoundPlayNoteNonBlocking"}

Sample Code:
{ "_id": "RmU1msccWf", "func": "registerSpriteTrigger", "values": [], "next": { "_id": "QQijUSuS6M", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "1 Acoustic Grand Piano" } ], "next": { "_id": "SQc7N7xS4v", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": 2 } ], "next": { "_id": "kQcoYwoLOL", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "41 Violin" } ], "next": { "_id": "0rWZF6xlaE", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": 64 }, { "type": "number", "value": 2 } ] } } } }, "x": 355.00000000000006, "y": 522.2999999999979} Add to my Backpack


{ "_id": "HisLeshTxo", "func": "blockSoundChangeTempo", "tags": [ "music" ], "values": [ { "type": "number", "value": "20" } ], "x": 40, "y": 704}

Cambiar tempo

"Cambiar tempo" cambia el tempo del proyecto al número especificado de pulsos por minutos.

Parameters:

Cambio de tempo: el tempo aumentará en este valor. Utiliza un valor negativo para hacer el tempo más lento.

Related Blocks:
{"func":"blockSoundSetTempo"} ,     {"func":"valueSoundTempo"}

Sample Code:
{"func":"blockSoundChangeTempo","values":[{"type":"number","value":"20"}],"next":{"func":"blockSoundRest","values":[{"type":"number","value":"0.2"}],"next":{"func":"blockSoundSetInstrument","values":[{"type":"choice","value":"1 Acoustic Grand Piano"}],"next":{"func":"blockSoundPlayNote","values":[{"type":"number","value":"60"},{"type":"number","value":"10"}]}}}} Add to my Backpack


{ "_id": "9M6kv6NS7L", "func": "blockSoundSetTempo", "tags": [ "music" ], "values": [ { "type": "number", "value": "60" } ], "x": 39.999999999999986, "y": 763}

Fijar tempo

"Fijar tempo" establece el número de pulsos por minutos indicado como tempo del proyecto.

Parameters:

BPM: el tempo se establece al valor de este parámetro, un número que indica cuántos pulsos por minuto (Beats Per Minute) van a sonar tus instrumentos.

Related Blocks:
{"func":"blockSoundChangeTempo"} ,     {"func":"valueSoundTempo"}

Sample Code:
{ "_id": "RmU1msccWf", "func": "registerSpriteTrigger", "values": [], "next": { "_id": "zGaeAo7gdw", "func": "blockSoundSetTempo", "tags": [ "music" ], "values": [ { "type": "number", "value": 120 } ], "next": { "_id": "Dnn5cnsfhJ", "func": "blockControlRepeat", "tags": [ "loop", "finite loop", "repitition" ], "values": [ { "type": "number", "value": 4 } ], "containers": [ { "_id": "QQijUSuS6M", "func": "blockSoundSetInstrument", "tags": [ "music" ], "values": [ { "type": "choice", "value": "1 Acoustic Grand Piano" } ], "next": { "_id": "SQc7N7xS4v", "func": "blockSoundPlayNote", "tags": [ "music" ], "values": [ { "type": "string", "value": "60" }, { "type": "number", "value": 1 } ] } } ] } }, "x": 355.00000000000006, "y": 522.2999999999979} Add to my Backpack


{ "_id": "0veRweuSc5", "type": "wrapper", "func": "valueSoundTempo", "tags": [ "music" ], "values": [], "x": 40, "y": 822}

Tempo

"Tempo" devuelve el tempo actual del proyecto.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockSoundChangeTempo"} ,     {"func":"blockSoundSetTempo"}

Sample Code:
{ "_id": "YkrjRo2AXc", "func": "registerFlagTrigger", "tags": [ "hat block", "event", "start", "begin", "program", "play" ], "values": [], "next": { "_id": "vap1C3OpQ7", "func": "blockSoundSetTempo", "tags": [ "music" ], "values": [ { "type": "number", "value": 150 } ], "next": { "_id": "tHJwVDiz6G", "func": "blockLooksSayFor", "tags": [ "bubble", "talk", "output", "time" ], "values": [ { "_id": "NJnJFgfFt8", "type": "wrapper", "func": "valueSoundTempo", "tags": [ "music" ], "values": [] }, { "type": "number", "value": "2" } ] } }, "x": 26, "y": 741} Add to my Backpack