pxt-ev3/libs/music/sounds.ts

281 lines
14 KiB
TypeScript
Raw Normal View History

2017-10-30 18:25:58 +01:00
namespace sounds {
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals cat purr"
2017-10-30 18:25:58 +01:00
export const animalsCatPurr = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals dog bark 1"
2017-10-30 18:25:58 +01:00
export const animalsDogBark1 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals dog bark 2"
2017-10-30 18:25:58 +01:00
export const animalsDogBark2 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals dog growl"
2017-10-30 18:25:58 +01:00
export const animalsDogGrowl = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals dog sniff"
2017-10-30 18:25:58 +01:00
export const animalsDogSniff = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals dog whine"
2017-10-30 18:25:58 +01:00
export const animalsDogWhine = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals elephant call"
2017-10-30 18:25:58 +01:00
export const animalsElephantCall = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals insect buzz1"
2017-10-30 18:25:58 +01:00
export const animalsInsectBuzz1 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals insect buzz2"
2017-10-30 18:25:58 +01:00
export const animalsInsectBuzz2 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals insect chirp"
2017-10-30 18:25:58 +01:00
export const animalsInsectChirp = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals snake hiss"
2017-10-30 18:25:58 +01:00
export const animalsSnakeHiss = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals snake rattle"
2017-10-30 18:25:58 +01:00
export const animalsSnakeRattle = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Animals trex roar"
2017-10-30 18:25:58 +01:00
export const animalsTRexRoar = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Colors black"
2017-10-30 18:25:58 +01:00
export const colorsBlack = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Colors blue"
2017-10-30 18:25:58 +01:00
export const colorsBlue = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Colors brown"
2017-10-30 18:25:58 +01:00
export const colorsBrown = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Colors green"
2017-10-30 18:25:58 +01:00
export const colorsGreen = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Colors red"
2017-10-30 18:25:58 +01:00
export const colorsRed = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Colors white"
2017-10-30 18:25:58 +01:00
export const colorsWhite = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Colors yellow"
2017-10-30 18:25:58 +01:00
export const colorsYellow = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Communication bravo"
2017-10-30 18:25:58 +01:00
export const communicationBravo = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Communication ev3"
2017-10-30 18:25:58 +01:00
export const communicationEv3 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Communication fantastic"
2017-10-30 18:25:58 +01:00
export const communicationFantastic = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Communication game over"
2017-10-30 18:25:58 +01:00
export const communicationGameOver = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="Communication go"
2017-10-30 18:25:58 +01:00
export const communicationGo = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communicationGoodJob"
2017-10-30 18:25:58 +01:00
export const communicationGoodJob = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication good"
2017-10-30 18:25:58 +01:00
export const communicationGood = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication goodbye"
2017-10-30 18:25:58 +01:00
export const communicationGoodbye = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication hello"
2017-10-30 18:25:58 +01:00
export const communicationHello = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication hi"
2017-10-30 18:25:58 +01:00
export const communicationHi = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication lego"
2017-10-30 18:25:58 +01:00
export const communicationLego = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication mindstorms"
2017-10-30 18:25:58 +01:00
export const communicationMindstorms = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication morning"
2017-10-30 18:25:58 +01:00
export const communicationMorning = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication no"
2017-10-30 18:25:58 +01:00
export const communicationNo = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication okay"
2017-10-30 18:25:58 +01:00
export const communicationOkay = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication okey dokey"
2017-10-30 18:25:58 +01:00
export const communicationOkeyDokey = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication sorry"
2017-10-30 18:25:58 +01:00
export const communicationSorry = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication thank you"
2017-10-30 18:25:58 +01:00
export const communicationThankYou = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication yes"
2017-10-30 18:25:58 +01:00
export const communicationYes = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions boing"
2017-10-30 18:25:58 +01:00
export const expressionsBoing = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions boo"
2017-10-30 18:25:58 +01:00
export const expressionsBoo = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions cheering"
2017-10-30 18:25:58 +01:00
export const expressionsCheering = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions crunching"
2017-10-30 18:25:58 +01:00
export const expressionsCrunching = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions crying"
2017-10-30 18:25:58 +01:00
export const expressionsCrying = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions fanfare"
2017-10-30 18:25:58 +01:00
export const expressionsFanfare = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions kung fu"
2017-10-30 18:25:58 +01:00
export const expressionsKungFu = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions laughing1"
2017-10-30 18:25:58 +01:00
export const expressionsLaughing1 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions laughing2"
2017-10-30 18:25:58 +01:00
export const expressionsLaughing2 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions magic wand"
2017-10-30 18:25:58 +01:00
export const expressionsMagicWand = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions ouch"
2017-10-30 18:25:58 +01:00
export const expressionsOuch = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions shouting"
2017-10-30 18:25:58 +01:00
export const expressionsShouting = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions smack"
2017-10-30 18:25:58 +01:00
export const expressionsSmack = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions sneezing"
2017-10-30 18:25:58 +01:00
export const expressionsSneezing = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions snoring"
2017-10-30 18:25:58 +01:00
export const expressionsSnoring = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions uh oh"
2017-10-30 18:25:58 +01:00
export const expressionsUhOh = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information activate"
2017-10-30 18:25:58 +01:00
export const informationActivate = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information analyze"
2017-10-30 18:25:58 +01:00
export const informationAnalyze = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information backwards"
2017-10-30 18:25:58 +01:00
export const informationBackwards = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information color"
2017-10-30 18:25:58 +01:00
export const informationColor = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information detected"
2017-10-30 18:25:58 +01:00
export const informationDetected = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information down"
2017-10-30 18:25:58 +01:00
export const informationDown = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information error alarm"
2017-10-30 18:25:58 +01:00
export const informationErrorAlarm = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information error"
2017-10-30 18:25:58 +01:00
export const informationError = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information flashing"
2017-10-30 18:25:58 +01:00
export const informationFlashing = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information forward"
2017-10-30 18:25:58 +01:00
export const informationForward = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information left"
2017-10-30 18:25:58 +01:00
export const informationLeft = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information object"
2017-10-30 18:25:58 +01:00
export const informationObject = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information right"
2017-10-30 18:25:58 +01:00
export const informationRight = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information searching"
2017-10-30 18:25:58 +01:00
export const informationSearching = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information start"
2017-10-30 18:25:58 +01:00
export const informationStart = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information stop"
2017-10-30 18:25:58 +01:00
export const informationStop = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information touch"
2017-10-30 18:25:58 +01:00
export const informationTouch = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information turn"
2017-10-30 18:25:58 +01:00
export const informationTurn = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information up"
2017-10-30 18:25:58 +01:00
export const informationUp = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical air release"
2017-10-30 18:25:58 +01:00
export const mechanicalAirRelease = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical airbrake"
2017-10-30 18:25:58 +01:00
export const mechanicalAirbrake = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical backing alert"
2017-10-30 18:25:58 +01:00
export const mechanicalBackingAlert = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical blip1"
2017-10-30 18:25:58 +01:00
export const mechanicalBlip1 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical blip2"
2017-10-30 18:25:58 +01:00
export const mechanicalBlip2 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical blip3"
2017-10-30 18:25:58 +01:00
export const mechanicalBlip3 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical blip4"
2017-10-30 18:25:58 +01:00
export const mechanicalBlip4 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical horn1"
2017-10-30 18:25:58 +01:00
export const mechanicalHorn1 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical horn2"
2017-10-30 18:25:58 +01:00
export const mechanicalHorn2 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical laser"
2017-10-30 18:25:58 +01:00
export const mechanicalLaser = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical motor idle"
2017-10-30 18:25:58 +01:00
export const mechanicalMotorIdle = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical motor start"
2017-10-30 18:25:58 +01:00
export const mechanicalMotorStart = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical motor stop"
2017-10-30 18:25:58 +01:00
export const mechanicalMotorStop = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical ratchet"
2017-10-30 18:25:58 +01:00
export const mechanicalRatchet = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block='"mechanical sonar"'
2017-10-30 18:25:58 +01:00
export const mechanicalSonar = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical tick tack"
2017-10-30 18:25:58 +01:00
export const mechanicalTickTack = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical walk"
2017-10-30 18:25:58 +01:00
export const mechanicalWalk = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements arm1"
2017-10-30 18:25:58 +01:00
export const movementsArm1 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements arm2"
2017-10-30 18:25:58 +01:00
export const movementsArm2 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements arm3"
2017-10-30 18:25:58 +01:00
export const movementsArm3 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements arm4"
2017-10-30 18:25:58 +01:00
export const movementsArm4 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements drop load"
2017-10-30 18:25:58 +01:00
export const movementsDropLoad = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements lift load"
2017-10-30 18:25:58 +01:00
export const movementsLiftLoad = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements servo1"
2017-10-30 18:25:58 +01:00
export const movementsServo1 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements servo2"
2017-10-30 18:25:58 +01:00
export const movementsServo2 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements servo3"
2017-10-30 18:25:58 +01:00
export const movementsServo3 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements servo4"
2017-10-30 18:25:58 +01:00
export const movementsServo4 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements slide load"
2017-10-30 18:25:58 +01:00
export const movementsSlideLoad = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements snap"
2017-10-30 18:25:58 +01:00
export const movementsSnap = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements speed down"
2017-10-30 18:25:58 +01:00
export const movementsSpeedDown = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements speed idle"
2017-10-30 18:25:58 +01:00
export const movementsSpeedIdle = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements speed up"
2017-10-30 18:25:58 +01:00
export const movementsSpeedUp = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements speeding"
2017-10-30 18:25:58 +01:00
export const movementsSpeeding = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers eight"
2017-10-30 18:25:58 +01:00
export const numbersEight = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers five"
2017-10-30 18:25:58 +01:00
export const numbersFive = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers four"
2017-10-30 18:25:58 +01:00
export const numbersFour = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers nine"
2017-10-30 18:25:58 +01:00
export const numbersNine = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers one"
2017-10-30 18:25:58 +01:00
export const numbersOne = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers seven"
2017-10-30 18:25:58 +01:00
export const numbersSeven = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers six"
2017-10-30 18:25:58 +01:00
export const numbersSix = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers ten"
2017-10-30 18:25:58 +01:00
export const numbersTen = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers three"
2017-10-30 18:25:58 +01:00
export const numbersThree = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers two"
2017-10-30 18:25:58 +01:00
export const numbersTwo = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers zero"
2017-10-30 18:25:58 +01:00
export const numbersZero = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system click"
2017-10-30 18:25:58 +01:00
export const systemClick = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system confirm"
2017-10-30 18:25:58 +01:00
export const systemConfirm = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system connect"
2017-10-30 18:25:58 +01:00
export const systemConnect = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system download"
2017-10-30 18:25:58 +01:00
export const systemDownload = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system general alert"
2017-10-30 18:25:58 +01:00
export const systemGeneralAlert = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system overpower"
2017-10-30 18:25:58 +01:00
export const systemOverpower = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system power down"
2017-10-30 18:25:58 +01:00
export const systemPowerDown = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system ready"
2017-10-30 18:25:58 +01:00
export const systemReady = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block=S
2017-10-30 18:25:58 +01:00
export const systemStartUp = music.fromWAV(hex``);
}
2017-11-17 08:28:44 +01:00
namespace music {
/**
* Plays a sound
* @param sound the sound to play
*/
//% blockId=music_play_sound_effect block="play %sound"
//% weight=98
export function playSoundEffect(sound: Sound) {
if (!sound) return;
sound.play();
}
/**
* A sound
* @param sound the sound
*/
//% blockId=music_sound_picker block="%sound" shim=TD_ID
//% weight=0 blockHidden=1
export function _soundPicker(sound: Sound): Sound {
return sound;
}
}