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:Rproject file used to manage and organize the project withinRStudio.Strophe_Automatic_Sampling.qmd: Notebook which create the new songs randomly.Strophe_Sampling_Functions.R:Rfile containing all functions used inStrophe_Automatic_Sampling.qmdfile.results: This is the folder where the audio files generated by theStrophe_Automatic_Sampling.qmdscript will be saved.Strophe_Bank_WAV: This folder have to contain the strophe audio files used for creating the complete bird songs. Although.wavformat is preferred here due to issues met with.mp3, the project can support.mp3files if the code is adjusted accordingly and a proper strophe bank is built.
- Clone or download the entire repository;
- Fill the
Strophe_Bank_WAVfolder with your chosen strophe audio files; - Open the
Sampling_Audio_Files.Rprojfile; - Run the
Strophe_Automatic_Sampling.qmdnotebook to generate the complete bird songs in theresultsfolder.
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.