Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- laut = peripheral.wrap("back")
- inst = "Klavier"
- print (inst)
- while true do
- local event, key = os.pullEvent( "key" )
- if key == keys.y then
- if inst == "Klavier" then
- laut.playNote("harp",3,0)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,0)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,0)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,0)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,0)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,0)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,0)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,0)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,0)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,0)
- end
- end
- if key == keys.x then
- if inst == "Klavier" then
- laut.playNote("harp",3,1)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,1)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,1)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,1)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,1)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,1)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,1)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,1)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,1)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,1)
- end
- end
- if key == keys.c then
- if inst == "Klavier" then
- laut.playNote("harp",3,2)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,2)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,2)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,2)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,2)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,2)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,2)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,2)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,2)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,2)
- end
- end
- if key == keys.v then
- if inst == "Klavier" then
- laut.playNote("harp",3,3)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,3)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,3)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,3)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,3)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,3)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,3)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,3)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,3)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,3)
- end
- end
- if key == keys.b then
- if inst == "Klavier" then
- laut.playNote("harp",3,4)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,4)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,4)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,4)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,4)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,4)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,4)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,4)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,4)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,4)
- end
- end
- if key == keys.n then
- if inst == "Klavier" then
- laut.playNote("harp",3,5)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,5)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,5)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,5)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,5)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,5)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,5)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,5)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,5)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,5)
- end
- end
- if key == keys.m then
- if inst == "Klavier" then
- laut.playNote("harp",3,6)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,6)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,6)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,6)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,6)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,6)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,6)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,6)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,6)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,6)
- end
- end
- if key == keys.a then
- if inst == "Klavier" then
- laut.playNote("harp",3,7)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,7)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,7)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,7)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,7)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,7)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,7)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,7)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,7)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,7)
- end
- end
- if key == keys.s then
- if inst == "Klavier" then
- laut.playNote("harp",3,8)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,8)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,8)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,8)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,8)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,8)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,8)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,8)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,8)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,8)
- end
- end
- if key == keys.d then
- if inst == "Klavier" then
- laut.playNote("harp",3,9)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,9)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,9)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,9)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,9)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,9)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,9)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,9)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,9)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,9)
- end
- end
- if key == keys.f then
- if inst == "Klavier" then
- laut.playNote("harp",3,10)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,10)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,10)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,10)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,10)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,10)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,10)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,10)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,10)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,10)
- end
- end
- if key == keys.g then
- if inst == "Klavier" then
- laut.playNote("harp",3,11)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,11)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,11)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,11)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,11)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,11)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,11)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,11)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,11)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,11)
- end
- end
- if key == keys.h then
- if inst == "Klavier" then
- laut.playNote("harp",3,12)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,12)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,12)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,12)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,12)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,12)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,12)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,12)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,12)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,12)
- end
- end
- if key == keys.j then
- if inst == "Klavier" then
- laut.playNote("harp",3,13)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,13)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,13)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,13)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,13)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,13)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,13)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,13)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,13)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,13)
- end
- end
- if key == keys.k then
- if inst == "Klavier" then
- laut.playNote("harp",3,14)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,14)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,14)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,14)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,14)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,14)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,14)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,14)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,14)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,14)
- end
- end
- if key == keys.l then
- if inst == "Klavier" then
- laut.playNote("harp",3,15)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,15)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,15)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,15)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,15)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,15)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,15)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,15)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,15)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,15)
- end
- end
- if key == keys.q then
- if inst == "Klavier" then
- laut.playNote("harp",3,16)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,16)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,16)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,16)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,16)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,16)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,16)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,16)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,16)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,16)
- end
- end
- if key == keys.w then
- if inst == "Klavier" then
- laut.playNote("harp",3,17)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,17)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,17)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,17)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,17)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,17)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,17)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,17)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,17)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,17)
- end
- end
- if key == keys.e then
- if inst == "Klavier" then
- laut.playNote("harp",3,18)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,18)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,18)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,18)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,18)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,18)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,18)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,18)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,18)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,18)
- end
- end
- if key == keys.r then
- if inst == "Klavier" then
- laut.playNote("harp",3,19)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,19)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,19)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,19)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,19)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,19)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,19)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,19)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,19)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,19)
- end
- end
- if key == keys.t then
- if inst == "Klavier" then
- laut.playNote("harp",3,20)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,20)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,20)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,20)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,20)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,20)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,20)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,20)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,20)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,20)
- end
- end
- if key == keys.z then
- if inst == "Klavier" then
- laut.playNote("harp",3,21)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,21)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,21)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,21)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,21)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,21)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,21)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,21)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,21)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,21)
- end
- end
- if key == keys.u then
- if inst == "Klavier" then
- laut.playNote("harp",3,22)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,22)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,22)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,22)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,22)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,22)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,22)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,22)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,22)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,22)
- end
- end
- if key == keys.i then
- if inst == "Klavier" then
- laut.playNote("harp",3,23)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,23)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,23)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,23)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,23)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,23)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,23)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,23)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,23)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,23)
- end
- end
- if key == keys.o then
- if inst == "Klavier" then
- laut.playNote("harp",3,24)
- end
- if inst == "Glockenspiel" then
- laut.playNote("chime",3,24)
- end
- if inst == "Glocke" then
- laut.playNote("bell",3,24)
- end
- if inst == "Flöte" then
- laut.playNote("flute",3,24)
- end
- if inst == "Kontrabass" then
- laut.playNote("bass",3,24)
- end
- if inst == "kleine Trommel" then
- laut.playNote("snare",3,24)
- end
- if inst == "Klanghölzer" then
- laut.playNote("hat",3,24)
- end
- if inst == "große Trommel" then
- laut.playNote("basedrum",3,24)
- end
- if inst == "Gitarre" then
- laut.playNote("guitar",3,24)
- end
- if inst == "Xylofon" then
- laut.playNote("xylophone",3,24)
- end
- end
- if key == keys.one then
- inst = "Klavier"
- print (inst)
- end
- if key == keys.two then
- inst = "Glockenspiel"
- print (inst)
- end
- if key == keys.three then
- inst = "Glocke"
- print (inst)
- end
- if key == keys.four then
- inst = "Flöte"
- print (inst)
- end
- if key == keys.five then
- inst = "Kontrabass"
- print (inst)
- end
- if key == keys.six then
- inst = "kleine Trommel"
- print (inst)
- end
- if key == keys.seven then
- inst = "Klanghölzer"
- print (inst)
- end
- if key == keys.eight then
- inst = "große Trommel"
- print (inst)
- end
- if key == keys.nine then
- inst = "Gitarre"
- print (inst)
- end
- if key == keys.zero then
- inst = "Xylofon"
- print (inst)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement