Frequently Asked Questions

Hi Yang, we might need to move this discussion to its own topic to avoid filling up the FAQ but hopefully we can clear it up here. How long is the sound? You can increase the duration of a sample/note in foxdot by using the dur keyword:

d1 >> play("T", dur=8, sample=3)

The reason I have set sample to 3 is because, in your first image, the file Ted Demo 16.wav is the 4th file alphabetically in the folder but the first file would be accessed using sample=0.

If you have a longer file and you want to “slice” it up into sections, you can put the file in the _loop_ folder and specify the name with no “.wav” extension, or you can specify the file explicitly. This way you can specify the starting position to play the audio in terms of beats. There is some more detailed info on this in the docs. If this doesn’t work for you, would you mind opening a new topic and we can discuss further there? Hope this helps - let me know how you get on