Skip to content

leahemerson/GPS-Jingle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GPS-Jingle

Takes in a .gpx file and creates a jingle based on elevation change. The idea is to be able to create a song based on your run, bike. Warning: the songs are generally not easy on the ears, but the idea is that it is unique to each excursion.

I implemented this idea by expanding on exsisting code:

Extracting elevation change data from a gpx file was adopted from: www.madpickles.org/rokjoo/2010/08/11/gpx-elevation-profile-plotting-with-the-google-chart-api/

I have added a return statment in gpxstats.py, so you will need to use my version rather than the one in the link!

Music created using PySynth: https://mdoege.github.io/PySynth/

My code exsists in GpxJingle.py

To Run:

Download gpxlib.py and gpxstats.py

Download PySynth https://mdoege.github.io/PySynth/

In the terminal run GpxJingle.gpx and any gpx files you'd like to create a song from :

(If you use MapMyRun you can export gpx files of your workouts from their website)

EX: python3 GpxJingle.gpx Run.gpx Bike.gpx Hike.gpx

This will create a file called "FINAL0.wav" in the folder of gpxstats.gpx If you have multiple gpx files the song names will be incremented in the order they are entered (FINAL0, FINAL1, FINAL2...)

Issues:

Pysynth is a very simple synthesizer and can only have one sound at once. In order to achieve more than one sound, .wav files must be combined. Therefore multiple .wav files are created for each song, but FINAL.wav is the sounds combined

Please let me know if you find any issues or have questions.

About

Takes in a .gpx file and creates a song

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages