It originated as a song type , then dialogue for characters was written into the tonadilla .
It expanded into a miniature opera lasting from 10 to 20 minutes .
It originated as a song type , then dialogue for characters was written into the tonadilla , and it expanded into a miniature opera lasting from 10 to 20 minutes .