コード例 #1
0
def main():
    beep25 = rb.Beep()
    beep25.play()

    fun_song = [(392, 350, 100), (392, 350, 100), (392, 350, 100),
                (311.1, 250, 100), (466.2, 25, 100), (392, 350, 100),
                (311.1, 250, 100), (466.2, 25, 100), (392, 700, 100),
                (587.32, 350, 100), (587.32, 350, 100), (587.32, 350, 100),
                (622.26, 250, 100), (466.2, 25, 100), (369.99, 350, 100),
                (311.1, 250, 100), (466.2, 25, 100), (392, 700, 100),
                (784, 350, 100), (392, 250, 100), (392, 25, 100),
                (784, 350, 100), (739.98, 250, 100), (698.46, 25, 100),
                (659.26, 25, 100), (622.26, 25, 100), (659.26, 50, 400),
                (415.3, 25, 200), (554.36, 350, 100), (523.25, 250, 100),
                (493.88, 25, 100), (466.16, 25, 100), (440, 25, 100),
                (466.16, 50, 400), (311.13, 25, 200), (369.99, 350, 100),
                (311.13, 250, 100), (392, 25, 100), (466.16, 350, 100),
                (392, 250, 100), (466.16, 25, 100), (587.32, 700, 100),
                (784, 350, 100), (392, 250, 100), (392, 25, 100),
                (784, 350, 100), (739.98, 250, 100), (698.46, 25, 100),
                (659.26, 25, 100), (622.26, 25, 100), (659.26, 50, 400),
                (415.3, 25, 200), (554.36, 350, 100), (523.25, 250, 100),
                (493.88, 25, 100), (466.16, 25, 100), (440, 25, 100),
                (466.16, 50, 400), (311.13, 25, 200), (392, 350, 100),
                (311.13, 250, 100), (466.16, 25, 100), (392.00, 300, 150),
                (311.13, 250, 100), (466.16, 25, 100), (392, 700)]

    speak1 = rb.Speech("Hello everyone")
    speak1.play()
コード例 #2
0
def main():
    beepboop = rb.Beep()
    beepboop.play()
    noise = rb.Speech
    noise.speak('hello jacob')

    make_sounds()
コード例 #3
0
def main():

    What_you_sound_like = rb.Beep()
    Other_sound = rb.Speech('take me apart')
    my_sound = rb.Tone(200)
    What_you_sound_like.play()
    Other_sound.play()
    my_sound.play()

    fun_song = [(392, 350, 100), (392, 350, 100), (392, 350, 100),
                (311.1, 250, 100), (466.2, 25, 100), (392, 350, 100),
                (311.1, 250, 100), (466.2, 25, 100), (392, 700, 100),
                (587.32, 350, 100), (587.32, 350, 100), (587.32, 350, 100),
                (622.26, 250, 100), (466.2, 25, 100), (369.99, 350, 100),
                (311.1, 250, 100), (466.2, 25, 100), (392, 700, 100),
                (784, 350, 100), (392, 250, 100), (392, 25, 100),
                (784, 350, 100), (739.98, 250, 100), (698.46, 25, 100),
                (659.26, 25, 100), (622.26, 25, 100), (659.26, 50, 400),
                (415.3, 25, 200), (554.36, 350, 100), (523.25, 250, 100),
                (493.88, 25, 100), (466.16, 25, 100), (440, 25, 100),
                (466.16, 50, 400), (311.13, 25, 200), (369.99, 350, 100),
                (311.13, 250, 100), (392, 25, 100), (466.16, 350, 100),
                (392, 250, 100), (466.16, 25, 100), (587.32, 700, 100),
                (784, 350, 100), (392, 250, 100), (392, 25, 100),
                (784, 350, 100), (739.98, 250, 100), (698.46, 25, 100),
                (659.26, 25, 100), (622.26, 25, 100), (659.26, 50, 400),
                (415.3, 25, 200), (554.36, 350, 100), (523.25, 250, 100),
                (493.88, 25, 100), (466.16, 25, 100), (440, 25, 100),
                (466.16, 50, 400), (311.13, 25, 200), (392, 350, 100),
                (311.13, 250, 100), (466.16, 25, 100), (392.00, 300, 150),
                (311.13, 250, 100), (466.16, 25, 100), (392, 700)]
コード例 #4
0
def main():
    beep1 = rb.Beep()
    beep1.play()
    tone1 = rb.Tone(2500, 3)
    tone1.play()
    fun_song = [(392, 350, 100), (392, 350, 100), (392, 350, 100),
                (311.1, 250, 100), (466.2, 25, 100), (392, 350, 100),
                (311.1, 250, 100), (466.2, 25, 100), (392, 700, 100),
                (587.32, 350, 100), (587.32, 350, 100), (587.32, 350, 100),
                (622.26, 250, 100), (466.2, 25, 100), (369.99, 350, 100),
                (311.1, 250, 100), (466.2, 25, 100), (392, 700, 100),
                (784, 350, 100), (392, 250, 100), (392, 25, 100),
                (784, 350, 100), (739.98, 250, 100), (698.46, 25, 100),
                (659.26, 25, 100), (622.26, 25, 100), (659.26, 50, 400),
                (415.3, 25, 200), (554.36, 350, 100), (523.25, 250, 100),
                (493.88, 25, 100), (466.16, 25, 100), (440, 25, 100),
                (466.16, 50, 400), (311.13, 25, 200), (369.99, 350, 100),
                (311.13, 250, 100), (392, 25, 100), (466.16, 350, 100),
                (392, 250, 100), (466.16, 25, 100), (587.32, 700, 100),
                (784, 350, 100), (392, 250, 100), (392, 25, 100),
                (784, 350, 100), (739.98, 250, 100), (698.46, 25, 100),
                (659.26, 25, 100), (622.26, 25, 100), (659.26, 50, 400),
                (415.3, 25, 200), (554.36, 350, 100), (523.25, 250, 100),
                (493.88, 25, 100), (466.16, 25, 100), (440, 25, 100),
                (466.16, 50, 400), (311.13, 25, 200), (392, 350, 100),
                (311.13, 250, 100), (466.16, 25, 100), (392.00, 300, 150),
                (311.13, 250, 100), (466.16, 25, 100), (392, 700)]
コード例 #5
0
def main():
    beep1 = rb.Beep()
    beep1.play()
    quote = rb.Speech("join us")
    quote.play()

    fun_song = [(392, 350, 100), (392, 350, 100), (392, 350, 100),
                (311.1, 250, 100), (466.2, 25, 100), (392, 350, 100),
                (311.1, 250, 100), (466.2, 25, 100), (392, 700, 100),
                (587.32, 350, 100), (587.32, 350, 100), (587.32, 350, 100),
                (622.26, 250, 100), (466.2, 25, 100), (369.99, 350, 100),
                (311.1, 250, 100), (466.2, 25, 100), (392, 700, 100),
                (784, 350, 100), (392, 250, 100), (392, 25, 100),
                (784, 350, 100), (739.98, 250, 100), (698.46, 25, 100),
                (659.26, 25, 100), (622.26, 25, 100), (659.26, 50, 400),
                (415.3, 25, 200), (554.36, 350, 100), (523.25, 250, 100),
                (493.88, 25, 100), (466.16, 25, 100), (440, 25, 100),
                (466.16, 50, 400), (311.13, 25, 200), (369.99, 350, 100),
                (311.13, 250, 100), (392, 25, 100), (466.16, 350, 100),
                (392, 250, 100), (466.16, 25, 100), (587.32, 700, 100),
                (784, 350, 100), (392, 250, 100), (392, 25, 100),
                (784, 350, 100), (739.98, 250, 100), (698.46, 25, 100),
                (659.26, 25, 100), (622.26, 25, 100), (659.26, 50, 400),
                (415.3, 25, 200), (554.36, 350, 100), (523.25, 250, 100),
                (493.88, 25, 100), (466.16, 25, 100), (440, 25, 100),
                (466.16, 50, 400), (311.13, 25, 200), (392, 350, 100),
                (311.13, 250, 100), (466.16, 25, 100), (392.00, 300, 150),
                (311.13, 250, 100), (466.16, 25, 100), (392, 700)]
    fun_song.play()
コード例 #6
0
def main():


    make_sounds()
    yeet = rb.Beep()
    yeet.play()
    yeet.play()
    yeet.play()
コード例 #7
0
def main():
    beep1 = rb.Beep()
    beep1.play()
    make_sounds()
コード例 #8
0
def main():
    beep1 = rb.Beep()
    beep1.play()
    father = rb.Speech('I am your fatherrrrr')
    father.play()
    make_sounds()