In my later teens I experimented a lot with making music with music trackers (https://en.wikipedia.org/wiki/Music_tracker) They produced what are called MOD files. The way MOD music works is you take samples, usually short WAV files, and use a beat-style layout to lay them down. You import the samples at a specific key, and the program handles playing the correct note by speeding them up or slowing them down. Below is my Mod Album, a small collection of the least terrible MOD songs I wrote. In my later music I often utilized MOD tracks as drums, and occasionally even most of the orchestration.