As part of a practical ecology course in the first year of biology at the ENS of Lyon, we used recorded bird strophes from various species to create audio files for broadcast to S. atricapilla males, enabling the study of their territorial behavior in response to both conspecific and heterospecific males.
- Objective: Analyze the territorial behavior of S. atricapilla males using synthesized bird songs.
- Method: Create bird songs by mixing strophes from individual birds to produce new songs with specific structures, repeated on different individuals of several species.
Sampling_Audio_Files.Rproj
:R
project file used to manage and organize the project withinRStudio
.Strophe_Automatic_Sampling.qmd
: Notebook which create the new songs randomly.Strophe_Sampling_Functions.R
:R
file containing all functions used inStrophe_Automatic_Sampling.qmd
file.results
: This is the folder where the audio files generated by theStrophe_Automatic_Sampling.qmd
script will be saved.Strophe_Bank_WAV
: This folder have to contain the strophe audio files used for creating the complete bird songs. Although.wav
format is preferred here due to issues met with.mp3
, the project can support.mp3
files if the code is adjusted accordingly and a proper strophe bank is built.
- Clone or download the entire repository;
- Fill the
Strophe_Bank_WAV
folder with your chosen strophe audio files; - Open the
Sampling_Audio_Files.Rproj
file; - Run the
Strophe_Automatic_Sampling.qmd
notebook to generate the complete bird songs in theresults
folder.
If you encounter any issues while using this repository, you may contact me at paul.petit@ens-lyon.fr.
Feel free to explore, modify, and enhance the project as needed for your research and educational purposes.