Experiment 3A
Identical to the previous experiment, but with the additiona of more randomization in regards to:
- Loop Length (between 2.5 and 10 seconds)
- Loop Duration (Between 2 and 5 minutes)
In preparation for this experiemnt, I have added two audio files to the project that I will use to play with the tone.js sampler. These files are two long ambient demos called "4pos" and "Bathing Hands". The experiment will follow this basic order of operations:
- Randomly select one of the two files
- Find a random 5-second fragment of the file and assign it to a new Tone.Player
- Start the player with a fadein
- After 2 minutes, fade the player to infinity and stop the player
This does produce some very nice ambient results. There is some trickiness I do not yet understand with the Player.fadeIn and .fadeOut options and how those interact with playback. There is no cross-fade looping available with these players, so there are going to be noticible clicks when the players loop unless we get lucky with the start point.
For some additional continuity, I pipe the players through a Reverb.
Note that it can take a few moments for audio to begin as the audio file is loaded by the player. You can watch the activity of the players loading in the console.
Click the button to start a sample-based piece of music.