Hello,
In the help of Sonic-Pi in French (congratulations for this great work!), I noticed an error in the chapter: “Echantillons Externes”. Windows paths are made with backslashes. User: \ and no User: /, as in linux. It is little but we understand better anyway!
Bonjour, j’en étais resté à l’époque où Windows ne supportait pas le slash. Au temps pour moi!
Alors comment faire pour jouer n’importe quel fichier WAV, AIFF ou FLAC sur votre ordinateur ? Tout ce dont vous avez besoin est de passer le chemin de ce fichier à sample :
Apologies, I don’t speak French, so I hope an English answer is OK.
In the host language, Ruby, the backslash has a special meaning in strings - it “escapes” characters. This makes it more cumbersome to use when describing file paths.
Ruby therefore allows you to use / in paths to all operating systems and converts it automatically to \ on Windows. The only major difference between the two forms of OS is that Windows needs a disk prefix such as C: and the others start with a simple /.