I am trying hard to use the audio recording extension newly added to the beta micro:bit editor, and it gives me an error saying “Program error: e.fn is not a function”. 1. What does “e.fn” mean, and 2. How do I get my program to work?
Please send help.
It may help if you share your code so other people can look at it and try it out. Here are the instructions for sharing projects: https://support.microbit.org/support/solutions/articles/19000086289-sharing-a-makecode-project
Ok. I will send it to you as JavaScript.
input.onButtonPressed(Button.A, function () {
if (sens == 1) {
music.playMelody("C - C - - - - - ", 120)
sens = 2
} else if (sens == 2) {
sens = 3
music.playMelody("C - C - C - - - ", 120)
} else if (sens == 3) {
sens = 1
music.playMelody("C - - - - - - - ", 120)
}
})
let sens = 0
sens = 1
music.playMelody("C - - - - - - - ", 120)
basic.forever(function () {
record.startRecording()
record.playAudio()
})
basic.forever(function () {
led.plotBarGraph(
input.soundLevel(),
0
)
})
*Note: it isn’t crashing anymore but I can’t get it to record now.