smallbasic / SmallBASIC

SmallBASIC is a fast and easy to learn BASIC language interpreter ideal for everyday calculations, scripts and prototypes. SmallBASIC includes trigonometric, matrices and algebra functions, a built in IDE, a powerful string library, system, sound, and graphic commands along with structured programming syntax
https://smallbasic.github.io
GNU General Public License v3.0
209 stars 37 forks source link

Problem with playing an audio file on android #231

Open chrisws opened 3 weeks ago

chrisws commented 11 hours ago
I have been playing around with PLAY [string], but I run into this: When using the PLAY command for a string, it seems that SmallBASIC omits all pauses of any kind:

Not only does pause (play "Pn") not have any effect at all, but with regards to note length (play "Ln") or the articulation ("MS"/"MN"/"ML") the pauses before the start of each next note are omitted.

Thus play "Ln" or play "MS"/"MN"/"ML" change not only the lengths of the notes, but also the overall speed at which the whole string is played through, because each note just plays immediately after the previous note ends without any delay between them.

I assume that tempo (play "Tn") may also be affected by this, but I don't know much about formal music theory, so i can't say.